chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Chicken segfault


From: Sven Hartrumpf
Subject: Re: [Chicken-users] Chicken segfault
Date: Thu, 16 Jun 2011 21:04:11 +0200 (CEST)

Hi all.

Thu, 16 Jun 2011 19:12:22 +0200, Peter.Bex wrote:

>> How should I investigate this problem?
> 
> Tried gdb?

Good idea. I rebuilt chicken with DEBUGBUILD=1
and ran gdb on chicken:

(gdb) run r-matcher-ch.scm -output-file r-matcher-ch.c -debug-level 1 
-optimize-level 3
Program received signal SIGSEGV, Segmentation fault.
0x00002aaaab1b6ab6 in C_i_list_tail (lst=6, i=5) at runtime.c:4837
4837      if(lst != C_SCHEME_END_OF_LIST && C_block_header(lst) != C_PAIR_TAG)
(gdb) bt
#0  0x00002aaaab1b6ab6 in C_i_list_tail (lst=6, i=5) at runtime.c:4837
#1  0x00002aaaaadf8aa2 in f_6485 (c=4, t0=46912838379416, t1=140737488226416, 
t2=6, t3=5) at library.c:37514
#2  0x00002aaaab202c78 in l3 () from free/chicken-4.7.0-64/lib/libchicken.so.6
#3  0x00002aaabf1dec68 in ?? ()
#4  0x00002aaaab1b9e77 in C_apply (c=4, closure=0, k=140737488226416, 
fn=46912838379416) at runtime.c:5834
#5  0x0000000000580643 in f_12524 (c=2, t0=140737488281200, t1=140737488281008) 
at support.c:5168
#6  0x00002aaaab1b9f11 in C_do_apply (n=0, fn=140737488281200, 
k=140737488281008) at runtime.c:5895
#7  0x00002aaaab1f866c in C_call_with_values (c=4, closure=0, 
k=140737488335808, thunk=140737488281200, kont=140737488281248) at 
runtime.c:6055
#8  0x000000000058019c in f_12518 (c=2, t0=140737488336744, t1=140737488335808) 
at support.c:5121
#9  0x00002aaaab1b9f11 in C_do_apply (n=0, fn=140737488336744, 
k=140737488335808) at runtime.c:5895
#10 0x00002aaaab1f866c in C_call_with_values (c=4, closure=0, 
k=140737488337368, thunk=140737488336744, kont=140737488336048) at 
runtime.c:6055
#11 0x00002aaaaadda05e in f_10297 (c=2, t0=140737488336320, t1=140737488336704) 
at library.c:31136
#12 0x00002aaaaad8e82d in f_18581 (c=2, t0=140737488336512, t1=140737488336320) 
at library.c:17005
#13 0x00002aaaaadd9e54 in f_10293 (c=5, t0=46912838386128, t1=140737488337368, 
t2=140737488336512, t3=140737488336744, t4=140737488336544) at library.c:31118
#14 0x00002aaaaad8e6af in f_18575 (c=4, t0=46912838405744, t1=140737488337368, 
t2=140737488336704, t3=140737488336744) at library.c:16979
#15 0x000000000058000e in f_12497 (c=3, t0=140737488337392, t1=140737488337368, 
t2=140737488336912) at support.c:5107
#16 0x00002aaaaadd98e1 in f_10330 (c=3, t0=140737488337200, t1=140737488337368, 
t2=140737488337008) at library.c:31063
#17 0x00002aaaab1f7ef1 in C_call_cc (c=3, closure=0, k=140737488337368, 
cont=140737488337200) at runtime.c:5935
#18 0x00002aaaaadd97b1 in f_10324 (c=3, t0=46912838365584, t1=140737488337368, 
t2=140737488337392) at library.c:31049
#19 0x000000000057fdd4 in f_12570 (c=2, t0=140737488338064, t1=140737488337760) 
at support.c:5092
#20 0x000000000057fba7 in f_12572 (t0=140737488338128, t1=140737488338064, 
t2=14) at support.c:5075
#21 0x000000000057f911 in f_12486 (c=2, t0=140737488338720, t1=140737488338368) 
at support.c:5027
#22 0x000000000057f628 in f_12607 (t0=140737488338776, t1=140737488338720, 
t2=14) at support.c:4999
#23 0x000000000057f389 in f_12465 (c=5, t0=46912838392984, t1=140737488341872, 
t2=46912838205344, t3=46912903161632, t4=140737488338992) at support.c:4949
#24 0x000000000050fae2 in f_3096 (c=2, t0=140737488341904, t1=22) at 
optimizer.c:11796
#25 0x00000000005113a9 in f_2834 (c=3, t0=46912839464584, t1=140737488341904, 
t2=46912879352136) at optimizer.c:12123
#26 0x00002aaaaaf0e715 in f_5409 (t0=140737488339760, t1=140737488341904, 
t2=46912879352136, t3=14) at srfi-1.c:4027
#27 0x00002aaaaaf0e843 in f_5425 (c=2, t0=140737488339648, t1=22) at 
srfi-1.c:4046
#28 0x00000000005113a9 in f_2834 (c=3, t0=46912839464584, t1=140737488339648, 
t2=46912903161904) at optimizer.c:12123
#29 0x00002aaaaaf0e7c1 in f_5409 (t0=140737488339760, t1=140737488341904, 
t2=46912903161904, t3=46912903163824) at srfi-1.c:4032
#30 0x00002aaaaaf0e65b in f_5321r (t0=46912838355152, t1=140737488341904, 
t2=46912839464584, t3=46912903161632, t4=14) at srfi-1.c:4014
#31 0x00002aaaaaf0e3cf in f_5321 (c=4, t0=46912838355152, t1=140737488341904, 
t2=46912839464584, t3=46912903161632) at srfi-1.c:3983
#32 0x000000000050f90f in f_3156 (c=2, t0=140737488341168, t1=22) at 
optimizer.c:11776
#33 0x00002aaaaad7515e in f_21565r (t0=46912838365448, t1=140737488341168, 
t2=46912838205344, t3=46912838231728, t4=14) at library.c:12207
#34 0x00002aaaaad75060 in f_21565 (c=4, t0=46912838365448, t1=140737488341168, 
t2=46912838205344, t3=46912838231728) at library.c:12192
#35 0x000000000057af79 in f_13091 (c=3, t0=46912838393000, t1=140737488341168, 
t2=46912838205344) at support.c:4129
#36 0x000000000050f860 in f_3150 (c=2, t0=140737488341992, t1=46912838207552) 
at optimizer.c:11761
#37 0x00002aaaaad7515e in f_21565r (t0=46912838365448, t1=140737488341992, 
t2=46912838205344, t3=46912838194368, t4=14) at library.c:12207
#38 0x00002aaaaad75060 in f_21565 (c=4, t0=46912838365448, t1=140737488341992, 
t2=46912838205344, t3=46912838194368) at library.c:12192
#39 0x000000000050f695 in f_3016 (c=2, t0=46912903162664, t1=140737488342368) 
at optimizer.c:11737
#40 0x00000000005002a5 in f_4770 (c=2, t0=46912903163976, t1=6) at 
optimizer.c:9366
#41 0x00002aaaaaf0eeda in f_5380 (c=2, t0=140737488343200, t1=6) at 
srfi-1.c:4116
#42 0x00002aaaaadfabf7 in f_6190 (c=4, t0=46912838356664, t1=140737488343200, 
t2=46912878652080, t3=46912903161864) at library.c:38036
#43 0x00002aaaab202c78 in l3 () from free/chicken-4.7.0-64/lib/libchicken.so.6
#44 0x00007fffffffcee0 in ?? ()
#45 0x00002aaaab1b9e77 in C_apply (c=4, closure=0, k=140737488343200, 
fn=46912838356664) at runtime.c:5834
#46 0x00002aaaaaf0ee09 in f_5367 (c=4, t0=46912903164512, t1=46912903163976, 
t2=46912903164952, t3=46912903164928) at srfi-1.c:4101
#47 0x00002aaaaaf015ee in tr4 (k=0x2aaaaaf0ec8c <f_5367>) at srfi-1.c:2115
#48 0x00002aaaab1ada2a in CHICKEN_run (toplevel=0x0) at runtime.c:1324
#49 0x00002aaaab1ab7d0 in CHICKEN_main (argc=8, argv=0x7fffffffd2d8, 
toplevel=0x402c3e) at runtime.c:540
#50 0x0000000000402c06 in main (argc=8, argv=0x7fffffffd2d8) at chicken.c:217
(gdb) 
 
What else do you need from gdb?

Ciao
Sven



reply via email to

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