unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* abort() in vm-engine.c
@ 2011-03-19 19:18 Andreas Rottmann
  2011-03-19 23:36 ` Andy Wingo
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Rottmann @ 2011-03-19 19:18 UTC (permalink / raw)
  To: Guile Bugs

Hi!

I encountered an "abort()" during compilation of my code.  Bisecting
Guile seems to indicate that the commit responsible is
9b709b0fe1... Here is a backtrace from GDB; note the innermost
stackframe seems suspicious -- the arguments to `vm_regular_engine'
certainly don't look normal:

(gdb) run -x .guile.sls -x .sls -c '(use-modules (spells test-runner))'
Starting program: /home/rotty/.system/bin/guile -x .guile.sls -x .sls -c '(use-modules (spells test-runner))'
;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=0
;;;       or pass the --no-auto-compile argument to disable.
;;; compiling /home/rotty/src/spe/systems/spells/spells/test-runner.sls
;;; compiling /home/rotty/src/spe/systems/spells/spells/misc.sls
;;; compiling /home/rotty/src/spe/systems/spells/spells/include.sls
;;; compiling /home/rotty/src/spe/systems/spells/spells/include/helpers.sls
;;; compiling /home/rotty/src/spe/systems/spells/spells/filesys.sls
;;; compiling /home/rotty/src/spe/systems/spells/spells/process.sls
;;; compiling /home/rotty/src/spe/systems/spells/spells/pathname.sls
[Thread debugging using libthread_db enabled]
(gdb) bt
#0  0x00007ffff7061165 in raise (sig=<value optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007ffff7063f70 in abort () at abort.c:92
#2  0x00007ffff7b46d42 in vm_regular_engine (vm=0x6d7940, program=0xffffffffffffffff, argv=0x6dc320, nargs=24341280) at ../../libguile/vm-engine.c:295
#3  0x00007ffff7ae3461 in do_try_auto_compile (data=0x142abe0) at ../../libguile/load.c:709
#4  0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0x142ab40, argv=0x6dbcd8, nargs=1) at ../../libguile/vm-i-system.c:956
#5  0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#6  0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#7  scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#8  0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6dbc30, nargs=7191592) at ../../libguile/vm-i-system.c:888
#9  0x00007ffff7ac4f07 in scm_call_1 (proc=0x8b5660, arg1=0x14105a0) at ../../libguile/eval.c:455
#10 0x00007ffff7ac557b in scm_map (proc=0x8b5660, arg1=0x1411680, args=0x304) at ../../libguile/eval.c:631
#11 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6dba50, nargs=7191096) at ../../libguile/vm-i-system.c:894
#12 0x00007ffff7ae3461 in do_try_auto_compile (data=0x13efbc0) at ../../libguile/load.c:709
#13 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0x13efb20, argv=0x6db428, nargs=1) at ../../libguile/vm-i-system.c:956
#14 0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#15 0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#16 scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#17 0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6db380, nargs=7189368) at ../../libguile/vm-i-system.c:888
#18 0x00007ffff7ac4f07 in scm_call_1 (proc=0x8b5660, arg1=0x139c6f0) at ../../libguile/eval.c:455
#19 0x00007ffff7ac557b in scm_map (proc=0x8b5660, arg1=0x139d3b0, args=0x304) at ../../libguile/eval.c:631
#20 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6db160, nargs=7188808) at ../../libguile/vm-i-system.c:894
#21 0x00007ffff7ae3461 in do_try_auto_compile (data=0x136df60) at ../../libguile/load.c:709
#22 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0x136dec0, argv=0x6dab38, nargs=1) at ../../libguile/vm-i-system.c:956
#23 0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#24 0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#25 scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#26 0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6daa90, nargs=7187080) at ../../libguile/vm-i-system.c:888
#27 0x00007ffff7ac4f07 in scm_call_1 (proc=0x8b5660, arg1=0xfd2a20) at ../../libguile/eval.c:455
#28 0x00007ffff7ac557b in scm_map (proc=0x8b5660, arg1=0xee5bb0, args=0x304) at ../../libguile/eval.c:631
#29 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6da870, nargs=7186520) at ../../libguile/vm-i-system.c:894
#30 0x00007ffff7ae3461 in do_try_auto_compile (data=0xd6e3e0) at ../../libguile/load.c:709
#31 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0xd6e280, argv=0x6da248, nargs=1) at ../../libguile/vm-i-system.c:956
#32 0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#33 0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#34 scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#35 0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6da1a0, nargs=7184792) at ../../libguile/vm-i-system.c:888
#36 0x00007ffff7ac4f07 in scm_call_1 (proc=0x8b5660, arg1=0x11c3b10) at ../../libguile/eval.c:455
#37 0x00007ffff7ac557b in scm_map (proc=0x8b5660, arg1=0x1013db0, args=0x304) at ../../libguile/eval.c:631
#38 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6d9fc0, nargs=7184296) at ../../libguile/vm-i-system.c:894
#39 0x00007ffff7ae3461 in do_try_auto_compile (data=0x10117a0) at ../../libguile/load.c:709
#40 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0x1011700, argv=0x6d9998, nargs=1) at ../../libguile/vm-i-system.c:956
#41 0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#42 0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#43 scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#44 0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6d98f0, nargs=7182568) at ../../libguile/vm-i-system.c:888
#45 0x00007ffff7ac4f07 in scm_call_1 (proc=0x8b5660, arg1=0x11d7db0) at ../../libguile/eval.c:455
#46 0x00007ffff7ac557b in scm_map (proc=0x8b5660, arg1=0x11e00c0, args=0x304) at ../../libguile/eval.c:631
#47 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6d9710, nargs=7182072) at ../../libguile/vm-i-system.c:894
#48 0x00007ffff7ae3461 in do_try_auto_compile (data=0x11c2820) at ../../libguile/load.c:709
#49 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0x11c2780, argv=0x6d90e8, nargs=1) at ../../libguile/vm-i-system.c:956
#50 0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#51 0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#52 scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#53 0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6d9040, nargs=7180344) at ../../libguile/vm-i-system.c:888
#54 0x00007ffff7ac4f07 in scm_call_1 (proc=0x8b5660, arg1=0xe5fe10) at ../../libguile/eval.c:455
#55 0x00007ffff7ac557b in scm_map (proc=0x8b5660, arg1=0xe5e080, args=0x304) at ../../libguile/eval.c:631
#56 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6d8e60, nargs=7179848) at ../../libguile/vm-i-system.c:894
#57 0x00007ffff7ae3461 in do_try_auto_compile (data=0xbc9580) at ../../libguile/load.c:709
#58 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0xbc94e0, argv=0x6d8838, nargs=1) at ../../libguile/vm-i-system.c:956
#59 0x00007ffff7ac573e in scm_call_3 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#60 0x00007ffff7ae400e in scm_try_auto_compile (args=<value optimized out>) at ../../libguile/load.c:766
#61 scm_primitive_load_path (args=<value optimized out>) at ../../libguile/load.c:879
#62 0x00007ffff7b4b802 in vm_regular_engine (vm=0x6d7940, program=0x1, argv=0x6d8790, nargs=7178120) at ../../libguile/vm-i-system.c:888
#63 0x00007ffff7ac4f07 in scm_call_1 (proc=0x8a6900, arg1=0xbd94e0) at ../../libguile/eval.c:455
#64 0x00007ffff7ac557b in scm_map (proc=0x8a6900, arg1=0xbd93b0, args=0x304) at ../../libguile/eval.c:631
#65 0x00007ffff7b4b7de in vm_regular_engine (vm=0x6d7940, program=0x3, argv=0x6d8580, nargs=7177576) at ../../libguile/vm-i-system.c:894
#66 0x00007ffff7ac4f07 in scm_call_1 (proc=0xb7ad20, arg1=0xbd7490) at ../../libguile/eval.c:455
#67 0x00007ffff7b4b7f2 in vm_regular_engine (vm=0x6d7940, program=0x2, argv=0x6d8200, nargs=-136539912) at ../../libguile/vm-i-system.c:891
#68 0x00007ffff7ac573e in scm_call_3 (proc=0xb3b8e0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>) at ../../libguile/eval.c:469
#69 0x00007ffff7b4b7f2 in vm_regular_engine (vm=0x6d7940, program=0x2, argv=0x6d81b0, nargs=-136539784) at ../../libguile/vm-i-system.c:891
#70 0x00007ffff7ac5953 in scm_primitive_eval (exp=0x90a780) at ../../libguile/eval.c:749
#71 0x00007ffff7ac59b3 in scm_eval (exp=0x90a780, module_or_state=0x832480) at ../../libguile/eval.c:783
#72 0x00007ffff7b1072f in scm_shell (argc=7, argv=0x7fffffffe288) at ../../libguile/script.c:837
#73 0x00007ffff7addeef in invoke_main_func (body_data=<value optimized out>) at ../../libguile/init.c:336
#74 0x00007ffff7ac027a in c_body (d=<value optimized out>) at ../../libguile/continuations.c:473
#75 0x00007ffff7b4b8d8 in vm_regular_engine (vm=0x6d7940, program=0x909960, argv=0x6d80a8, nargs=1) at ../../libguile/vm-i-system.c:956
#76 0x00007ffff7ac5783 in scm_call_4 (proc=0x6a38a0, arg1=<value optimized out>, arg2=<value optimized out>, arg3=<value optimized out>, arg4=<value optimized out>) at ../../libguile/eval.c:476
#77 0x00007ffff7ac08b3 in scm_i_with_continuation_barrier (body=0x7ffff7ac0270 <c_body>, body_data=0x7fffffffe070, handler=0x7ffff7ac0290 <c_handler>, handler_data=0x7fffffffe070, pre_unwind_handler=<value optimized out>, pre_unwind_handler_data=<value optimized out>) at ../../libguile/continuations.c:450
#78 0x00007ffff7ac0950 in scm_c_with_continuation_barrier (func=<value optimized out>, data=<value optimized out>) at ../../libguile/continuations.c:491
#79 0x00007ffff7b32acf in scm_i_with_guile_and_parent (func=0x7ffff7added0 <invoke_main_func>, data=0x7fffffffe170, parent=<value optimized out>) at ../../libguile/threads.c:794
#80 0x00007ffff7addfa5 in scm_boot_guile (argc=<value optimized out>, argv=<value optimized out>, main_func=<value optimized out>, closure=<value optimized out>) at ../../libguile/init.c:319
#81 0x0000000000400a90 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../libguile/guile.c:70

Unfortunatly, I have no idea what this is triggered by and hence can not
provide a small testcase.  If needed, I can provide a tarball containing
the code that is needed to reproduce it.

Regards, Rotty
-- 
Andreas Rottmann -- <http://rotty.yi.org/>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-20  0:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-19 19:18 abort() in vm-engine.c Andreas Rottmann
2011-03-19 23:36 ` Andy Wingo
2011-03-20  0:05   ` Andreas Rottmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).