#18 readline crashes when system::completion returns junk

segfault
closed-fixed
clisp (524)
1
2001-03-07
2000-11-08
fsc
No

Hi,
when you do a

(setf (symbol-function 'system::completion) #'whatsoever)

and whatsoever returns a simple string (not a list of strings) you get

*** - handle_fault error2 ! address = 0x0 not in [0x2025B000,0x2032055C) !
SIGSEGV cannot be cured. Fault address = 0x0.
Segmentation fault (core dumped)

Yes, I know: I'm not supposed to mess around with
system::any-of-here
but it's kind of usefull for my current problem.

Probably an easy fix and an error message instead of a core dump would be nice.

Frank.

==========================================
~/hipwac/control-software$ clisp
[1]> (lisp-implementation-version)
"2000-03-06 (March 2000)"
[2]>
Bye.
~/hipwac/control-software$ uname -a
Linux xxxx 2.2.14-6.1.1 #1 Thu Apr 13 20:01:58 EDT 2000 i686 unknown

Discussion

  • Sam Steingold

    Sam Steingold - 2000-12-04
    • assigned_to: nobody --> haible
     
  • Sam Steingold

    Sam Steingold - 2001-03-06

    Logged In: YES
    user_id=5735

    thanks - a fix has just been comitted to CVS

     
  • Sam Steingold

    Sam Steingold - 2001-03-06
    • assigned_to: haible --> sds
    • status: open --> closed-fixed
     
  • Bruno Haible

    Bruno Haible - 2001-03-07

    Logged In: YES
    user_id=5923

    We've fixed it, but note it's not a bug.
    If you replace a system function, you must expect core
    dumps.

     
  • Bruno Haible

    Bruno Haible - 2001-03-07
    • priority: 5 --> 1
     

Log in to post a comment.