bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cond


From: Helmut Eller
Subject: cond
Date: Wed, 21 Feb 2001 15:34:33 +0100

I get a segmentation fault for the following (incorrect) program: 

     (cond (1 => (lambda (x y) y)))

I observed this for guile 1.3, guile 1.4 and the cvs version (updated
today).  Stacktrace follows.

Regards, 
         Helmut.



----------------------------------------------------------------------
address@hidden:~ > gdb /opt/guile/bin/guile 
GNU gdb 5.0
Copyright 2000 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux"...
(gdb) r
Starting program: /opt/guile/bin/guile 
guile> (cond (1 => (lambda (x y) y)))

Program received signal SIGSEGV, Segmentation fault.
0x4003979d in scm_lookupcar (vloc=1075667416, genv=1075666472, check=1)
    at eval.c:302
302                   if (SCM_UNBNDP (SCM_CAR (*al)))
(gdb) #0  0x4003979d in scm_lookupcar (vloc=1075667416, genv=1075666472, 
check=1)
    at eval.c:302
#1  0x40040ea0 in scm_deval (x=1075667416, env=1075667760) at eval.c:1952
#2  0x4004024d in scm_i_eval (exp=1075669352, env=1075667760) at eval.c:3866
#3  0x400402df in scm_primitive_eval (exp=1075669352) at eval.c:3883
#4  0x40043fd4 in scm_deval (x=10612, env=1075668600) at eval.c:3013
#5  0x4004024d in scm_i_eval (exp=1075640480, env=1075668600) at eval.c:3866
#6  0x40032638 in scm_start_stack (id=134742336, exp=1075640480, 
    env=1075668600) at debug.c:538
#7  0x400326e7 in scm_m_start_stack (exp=1075640448, env=1075668600)
    at debug.c:555
#8  0x40044af0 in scm_dapply (proc=134661000, arg1=1075640448, args=1075667888)
    at eval.c:3458
#9  0x40042828 in scm_deval (x=1075640448, env=1075669880) at eval.c:2522
#10 0x40042f0c in scm_deval (x=1075637680, env=1075669984) at eval.c:2682
#11 0x40042f0c in scm_deval (x=1075670168, env=1075670272) at eval.c:2682
#12 0x400449f5 in scm_dapply (proc=1075632752, arg1=10612, args=10612)
    at eval.c:3444
#13 0x4003f084 in scm_apply (proc=1075670336, arg1=10612, args=10612)
    at eval.c:3253
#14 0x40031b59 in with_traps_inner (data=0x401d6d40) at debug.c:124
#15 0x4003463e in scm_internal_dynamic_wind (
    before=0x40031ad0 <with_traps_before>, 
    inner=0x40031b30 <with_traps_inner>, after=0x40031b00 <with_traps_after>, 
    inner_data=0x401d6d40, guard_data=0xbfffe658) at dynwind.c:165
#16 0x40031bc2 in scm_with_traps (thunk=1075670336) at debug.c:134
#17 0x40043fd4 in scm_deval (x=10612, env=1075670400) at eval.c:3013
#18 0x40044a6a in scm_dapply (proc=1075670656, arg1=10612, args=10612)
    at eval.c:3447
#19 0x4003f084 in scm_apply (proc=1075670632, arg1=10612, args=10612)
    at eval.c:3253
#20 0x40034508 in scm_dynamic_wind (thunk1=1075670704, thunk2=1075670632, 
    thunk3=1075670496) at dynwind.c:125
#21 0x40043fd4 in scm_deval (x=1075632824, env=1075670768) at eval.c:3013
#22 0x40044a6a in scm_dapply (proc=1075670936, arg1=10612, args=10612)
    at eval.c:3447
#23 0x4003f084 in scm_apply (proc=1075670912, arg1=10612, args=10612)
    at eval.c:3253
#24 0x4007d9fc in scm_body_thunk (body_data=0xbfffea14) at throw.c:349
#25 0x4007d8b1 in scm_internal_lazy_catch (tag=9076, 
    body=0x4007d9d0 <scm_body_thunk>, body_data=0xbfffea14, 
    handler=0x4007da10 <scm_handle_by_proc>, handler_data=0xbfffea2c)
    at throw.c:281
#26 0x4007de6e in scm_lazy_catch (tag=9076, thunk=1075670912, 
    handler=1075631624) at throw.c:573
#27 0x40043fd4 in scm_deval (x=1075632848, env=1075670984) at eval.c:3013
#28 0x40044a6a in scm_dapply (proc=1075671192, arg1=10612, args=10612)
    at eval.c:3447
#29 0x4003f084 in scm_apply (proc=1075671168, arg1=10612, args=10612)
    at eval.c:3253
---Type <return> to continue, or q <return> to quit---
#30 0x4007d9fc in scm_body_thunk (body_data=0xbfffecd4) at throw.c:349
#31 0x4007d736 in scm_internal_catch (tag=9076, 
    body=0x4007d9d0 <scm_body_thunk>, body_data=0xbfffecd4, 
    handler=0x4007da10 <scm_handle_by_proc>, handler_data=0xbfffecec)
    at throw.c:205
#32 0x4007ddee in scm_catch (tag=9076, thunk=1075671168, handler=1075671064)
    at throw.c:545
#33 0x40043fd4 in scm_deval (x=1075634072, env=1075671320) at eval.c:3013
#34 0x40041745 in scm_deval (x=1075671240, env=1075673216) at eval.c:2098
#35 0x40041745 in scm_deval (x=1075672296, env=1075673640) at eval.c:2098
#36 0x40041745 in scm_deval (x=1075673552, env=1075673640) at eval.c:2098
#37 0x40044a6a in scm_dapply (proc=1075674880, arg1=10612, args=10612)
    at eval.c:3447
#38 0x4003f084 in scm_apply (proc=1075674832, arg1=10612, args=10612)
    at eval.c:3253
#39 0x40034508 in scm_dynamic_wind (thunk1=1075674912, thunk2=1075674832, 
    thunk3=1075674776) at dynwind.c:125
#40 0x4003ee29 in scm_ceval (x=1075662656, env=1075652800) at eval.c:3069
#41 0x400401c2 in scm_i_eval_x (exp=1075652968, env=1075652800) at eval.c:3857
#42 0x4004029f in scm_primitive_eval_x (exp=1075652968) at eval.c:3873
#43 0x4004038f in inner_eval_x (data=0x401d2968) at eval.c:3916
#44 0x4003463e in scm_internal_dynamic_wind (
    before=0x400402f0 <change_environment>, inner=0x40040370 <inner_eval_x>, 
    after=0x40040330 <restore_environment>, inner_data=0x401d2968, 
    guard_data=0x401d2960) at dynwind.c:165
#45 0x40040410 in scm_eval_x (exp=1075652968, module=134744912) at eval.c:3925
#46 0x4007120e in scm_shell (argc=1, argv=0xbffff464) at script.c:644
#47 0x8048906 in inner_main (closure=0x0, argc=1, argv=0xbffff464)
    at guile.c:67
#48 0x40057719 in invoke_main_func (body_data=0xbffff3ac) at init.c:638
#49 0x400576c7 in scm_boot_guile_1 (base=0xbffff3a8, closure=0xbffff3ac)
    at init.c:618
#50 0x400573cc in scm_boot_guile (argc=1, argv=0xbffff464, 
    main_func=0x80488f0 <inner_main>, closure=0x0) at init.c:441
#51 0x8048939 in main (argc=1, argv=0xbffff464) at guile.c:76
#52 0x400eaa8e in __libc_start_main (main=0x8048910 <main>, argc=1, 
    argv=0xbffff464, init=0x8048700 <_init>, fini=0x804898c <_fini>, 
    rtld_fini=0x4000aa20 <_dl_fini>, stack_end=0xbffff45c)
    at ../sysdeps/generic/libc-start.c:92
(gdb) 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]