From: Sven Hartrumpf <[email protected]> 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 Hey, that's good. "list-tail" is called with a "#f" argument. If you send me the source file, I should be able to find the cause quickly. Otherwise I can check the 4.7.0 tarball and find out what f_12524 is. The former would be better, though. cheers, felix _______________________________________________ Chicken-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/chicken-users
