[Ecls-list] A fatally-looking bug.

Samium Gromoff _deepfire at feelingofgreen.ru
Tue Apr 29 13:10:49 UTC 2008


At Tue, 29 Apr 2008 09:35:25 +0200,
Juan Jose Garcia-Ripoll wrote:
> >  What would be your suggestion for me to proceed with the situation?
> 
> You can run ECL in the debugger, GDB with something like "gdb run" and
> then proceed as in a normal lisp image. At some point you will get a
> SIGSEGV and enter the debugger again. Producing a backtrace with "bt"
> should give you an idea of what functions were called last.

That's what I get (seems to be reliable across runs):

Program received signal SIGSEGV, Segmentation fault.
GC_allochblk_nth (sz=425985, kind=0, flags=1 '\001', n=60)
    at /home/deepfire/source/ecl/src/gc/allchblk.c:591
591                 size_avail = hhdr->hb_sz;
(gdb) bt
#0  GC_allochblk_nth (sz=425985, kind=0, flags=1 '\001', n=60)
    at /home/deepfire/source/ecl/src/gc/allchblk.c:591
#1  0xb7eb1b82 in GC_allochblk (sz=425985, kind=0, flags=1)
    at /home/deepfire/source/ecl/src/gc/allchblk.c:561
#2  0xb7ea9a76 in GC_alloc_large (lw=425985, k=0, flags=1) at /home/deepfire/source/ecl/src/gc/malloc.c:55
#3  0xb7eaa546 in GC_generic_malloc_ignore_off_page (lb=1703936, k=0)
    at /home/deepfire/source/ecl/src/gc/mallocx.c:197
#4  0xb7eaa645 in GC_malloc_atomic_ignore_off_page (lb=1703936)
    at /home/deepfire/source/ecl/src/gc/mallocx.c:242
#5  0xb7e5f05f in cl_stack_set_size (new_size=425984) at /home/deepfire/source/ecl/src/c/interpreter.d:42
#6  0xb7e5f208 in cl_stack_grow () at /home/deepfire/source/ecl/src/c/interpreter.d:67
#7  0xb7e5f2ec in cl_stack_push_va_list (args=0xbfa5e454)
    at /home/deepfire/source/ecl/src/c/interpreter.d:137
#8  0xb7e5e7d8 in cl_funcall (narg=3, function=0x8c70078) at /home/deepfire/source/ecl/src/c/eval.d:212
#9  0xb7e2c0dd in LC4__g16685 (narg=2, env0=0x8c247d0, V1=0xbfa5e670, V2=0xb7ede820)
    at /home/deepfire/source/ecl/build/clos/combin.c:138
#10 0xb7ea1a48 in APPLY_closure (n=60, fn=0xb7e2c091 <LC4__g16685>, cl=0x8c247d0, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:351
#11 0xb7e5e69f in ecl_apply_from_stack_frame (frame=0xbfa5e630, x=0x8c70060)
    at /home/deepfire/source/ecl/src/c/eval.d:83
#12 0xb7e6765c in _ecl_standard_dispatch (frame=0xbfa5e670, gf=0x852da68)
    at /home/deepfire/source/ecl/src/c/gfun.d:374
#13 0xb7e5e3dc in _ecl_link_call (sym=0x85a1d60, pLK=0xb7bf67e8, cblock=0x8189310, narg=1, args=0xbfa5e6b0)
    at /home/deepfire/source/ecl/src/c/eval.d:157
#14 0xb7b7a1bb in LKF3port_base (narg=1) at /mnt/ext/home/deepfire/local/mdb/common-db/graft-epp.c:539
#15 0xb7b7acb3 in L15_setf_port_ (V1=0x392, V2=0x8c282b8, V3=0xa)
    at /mnt/ext/home/deepfire/local/mdb/common-db/graft-epp.c:213
#16 0xb7ea6165 in APPLY_fixed (n=3, fn=0xb7b7ac71 <L15_setf_port_>, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:677
#17 0xb7e5e6d0 in ecl_apply_from_stack_frame (frame=0xbfa5e880, x=0x8502720)
    at /home/deepfire/source/ecl/src/c/eval.d:78
#18 0xb7e5e7a9 in cl_funcall (narg=4, function=0x8502720) at /home/deepfire/source/ecl/src/c/eval.d:213
#19 0xb7b47d9c in L103_setf_device_register_ (V1=0x392, V2=0x8c282b8, V3=0x85026d8, V4=0x852beb8)
    at /mnt/ext/home/deepfire/local/mdb/common-db/regvaldefs/regvaldefs.c:3872
#20 0xb7ea614a in APPLY_fixed (n=4, fn=0xb7b47ceb <L103_setf_device_register_>, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:678
#21 0xb7e5e6d0 in ecl_apply_from_stack_frame (frame=0xbfa5ea30, x=0x8355fd8)
    at /home/deepfire/source/ecl/src/c/eval.d:78
#22 0xb7e5e7a9 in cl_funcall (narg=5, function=0x8355fd8) at /home/deepfire/source/ecl/src/c/eval.d:213
#23 0xb7b7b0cb in L19_setf_dir_ (V1=0x850f1a0, V2=0x8c282b8)
    at /mnt/ext/home/deepfire/local/mdb/common-db/graft-epp.c:285
#24 0xb7ea6179 in APPLY_fixed (n=2, fn=0xb7b7af2a <L19_setf_dir_>, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:676
#25 0xb7e5e6d0 in ecl_apply_from_stack_frame (frame=0xbfa5ebe0, x=0x8502660)
    at /home/deepfire/source/ecl/src/c/eval.d:78
#26 0xb7e5e7a9 in cl_funcall (narg=3, function=0x8502660) at /home/deepfire/source/ecl/src/c/eval.d:213
#27 0xb7b7c578 in L16_setf_port_dir_ (V1=0x850f1a0, V2=0x8c70768)
    at /mnt/ext/home/deepfire/local/mdb/common-db/interface.c:158
#28 0xb7b7c5b0 in L17status_accessor (V1=0x8c70768, V2=0xb7ede820)
    at /mnt/ext/home/deepfire/local/mdb/common-db/interface.c:168
#29 0xb7ea6179 in APPLY_fixed (n=2, fn=0xb7b7c582 <L17status_accessor>, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:676
#30 0xb7e5e6d0 in ecl_apply_from_stack_frame (frame=0xbfa5eda0, x=0x8177810)
    at /home/deepfire/source/ecl/src/c/eval.d:78
#31 0xb7e5e7a9 in cl_funcall (narg=3, function=0x8177810) at /home/deepfire/source/ecl/src/c/eval.d:213
#32 0xb7b47e53 in L102device_register (V1=0x8c70768, V2=0x81777e0, V3=0x859e8e8)
    at /mnt/ext/home/deepfire/local/mdb/common-db/regvaldefs/regvaldefs.c:3855
#33 0xb7ea6165 in APPLY_fixed (n=3, fn=0xb7b47da9 <L102device_register>, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:677
#34 0xb7e5e3c6 in _ecl_link_call (sym=0x82ef7a0, pLK=0xb7bf6888, cblock=0x8510f88, narg=3, args=0xbfa5ef60)
    at /home/deepfire/source/ecl/src/c/eval.d:138
#35 0xb7b87c83 in LKF11device_register (narg=3) at /mnt/ext/home/deepfire/local/mdb/common-db/target.c:773
#36 0xb7b8814d in L18bus_extent (narg=7, V1=0x9120080, V2=0xaafc82, V3=0x5f72, V4=0x85a1de0, V5=0x8c97180)
    at /mnt/ext/home/deepfire/local/mdb/common-db/target.c:570
#37 0xb7bad0bb in L1prepare_loadable_for_execution (narg=4, V1=0x8cd5b70, V2=0x85e39c0)
    at /mnt/ext/home/deepfire/local/mdb/common-db/executable.c:44
#38 0xb7baffb8 in L2loadelf (narg=1, V1=0x90a1168)
    at /mnt/ext/home/deepfire/local/mdb/common-db/commands-io.c:22
#39 0xb7e9cec8 in APPLY (n=60, fn=0xb7bafebe <L2loadelf>, x=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/apply.d:25
#40 0xb7e5e72e in ecl_apply_from_stack_frame (frame=0xbfa5f230, x=0x8d0b260)
    at /home/deepfire/source/ecl/src/c/eval.d:81
#41 0xb7e5eeaf in interpret_funcall (narg=<value optimized out>, fun=0xa9d9000)
    at /home/deepfire/source/ecl/src/c/interpreter.d:466
#42 0xb7e5fb19 in ecl_interpret (bytecodes=0x8d10c00, pc=0x807ced8)
    at /home/deepfire/source/ecl/src/c/interpreter.d:742
#43 0xb7e6342e in si_eval_with_env (narg=1, form=0x9c230d0)
    at /home/deepfire/source/ecl/src/c/compiler.d:2571
#44 0xb7e5e195 in cl_eval (form=0x9c230d0) at /home/deepfire/source/ecl/src/c/eval.d:263
#45 0xb7f88305 in ecl_process_command (command=0x80a5078 "(loadelf \"/home/mcuser/kernel/vmlinux\")")
    at src/cmd.c:86
#46 0xb7f8d895 in mdb_ui (argc=<value optimized out>, argv=0xbfa5f6e4) at src/mdbui.c:272
#47 0x08048638 in main (argc=Cannot access memory at address 0x3c) at mdb.c:12


Feel free to point me in various, potentially conflicting, directions :-)


regards, Samium Gromoff




More information about the ecl-devel mailing list