[Ecls-list] [PATCH RESEND] Fix the value of the print-function depth parameter in defstruct.

Alexander Gavrilov angavrilov at gmail.com
Wed Oct 7 09:19:48 UTC 2009


> I was not really interested in a piece of the backtrace (which indeed
> does not show the offending code, just an infinite recursion due to
> problems that originated much earlier), but rather _how_ you cause the
> Ctrl-C to break ECL. Just typing (loop) at the prompt and issuing
> Ctrl-C? Or does it happen inside a more complicated piece of code.

I just start it and immediately press Ctrl-C as soon as I see the
prompt. In fact, if it is actually running any kind of loop, it just
enters the debugger and then hangs when I tell it to :continue.

It also crashes if I enter (read) and then press Ctrl-C.

If ecl-readline is used, it does not crash even while doing (read).

Alexander


P.S. This is the beginning of the recursion:

#47 0x00007f1d4218ed58 in writestr_stream (
    s=0x7f1d4221a9b1 ";;;\n;;; Detected access to protected memory,
also kwown as 'segmentation fault'.\n;;; Jumping to the outermost
toplevel prompt\n;;;\n\n", strm=0x1c82a00) at
/home/sasha/SysAdm/ProgramAdm/ecl/src/c/file.d:4094
#48 0x00007f1d421c33d7 in jump_to_sigsegv_handler
(the_env=0x7f1d42580000, message=0x2 <Address 0x2 out of bounds>)
    at /home/sasha/SysAdm/ProgramAdm/ecl/src/c/unixint.d:265
#49 <signal handler called>
#50 restartable_io_error (strm=0x1c82b40) at
/home/sasha/SysAdm/ProgramAdm/ecl/src/c/file.d:4899
#51 0x00007f1d4218b2b3 in io_file_read_byte8 (strm=0x1c82b40,
c=0x7fff058ca180 "", n=1)
    at /home/sasha/SysAdm/ProgramAdm/ecl/src/c/file.d:2561
#52 0x00007f1d4218e40c in utf_8_decoder (stream=0x1c82b40,
read_byte8=0x7f1d4218b220 <io_file_read_byte8>, source=0x1c82b40)
    at /home/sasha/SysAdm/ProgramAdm/ecl/src/c/file.d:1068
#53 0x00007f1d42189d55 in eformat_read_char (strm=0x0) at
/home/sasha/SysAdm/ProgramAdm/ecl/src/c/file.d:587
#54 0x00007f1d4218f02d in generic_peek_char (strm=0x0) at
/home/sasha/SysAdm/ProgramAdm/ecl/src/c/file.d:434
#55 0x00007f1d42193841 in cl_peek_char (narg=4) at
/home/sasha/SysAdm/ProgramAdm/ecl/src/c/read.d:1706
#56 0x00007f1d4216fc30 in L24tpl_read () at
/home/sasha/SysAdm/ProgramAdm/ecl/build/clos/top.c:1039
#57 0x00007f1d421720a2 in LC17rep (narg=0) at
/home/sasha/SysAdm/ProgramAdm/ecl/build/clos/top.c:857
#58 0x00007f1d42172ac4 in L22tpl (narg=0) at
/home/sasha/SysAdm/ProgramAdm/ecl/build/clos/top.c:772
#59 0x00007f1d421732e9 in L1top_level () at
/home/sasha/SysAdm/ProgramAdm/ecl/build/clos/top.c:42
#60 0x00007f1d4217e7bf in ecl_interpret (frame=<value optimized out>,
env=<value optimized out>, bytecodes=<value optimized out>)
    at /home/sasha/SysAdm/ProgramAdm/ecl/src/c/interpreter.d:461
#61 0x00007f1d42181ed1 in si_eval_with_env (narg=1, form=<value
optimized out>) at
/home/sasha/SysAdm/ProgramAdm/ecl/src/c/compiler.d:2867
#62 0x00007f1d421701a4 in si_safe_eval (narg=3, V1=0x3162fc1, V2=0x1)
at /home/sasha/SysAdm/ProgramAdm/ecl/build/clos/top.c:3479
#63 0x0000000000400909 in main (argc=<value optimized out>,
argv=<value optimized out>) at /tmp/ECLINITvmsiqV.c:55




More information about the ecl-devel mailing list