[racket-dev] repeated segfault when running gracket

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Mon Oct 11 12:05:39 EDT 2010

Today, I started having repeated segfaults while running gracket.  I
tried a clean rebuild, to no avail.  Here's the backtrace, obtained by

1. Starting gracket under GDB.
2. Clicking the window close button.

I'm happy to try to bisect this if it would help.  This is on Ubuntu 10.04.

[Thread debugging using libthread_db enabled]
[New Thread 0xb7bc3b70 (LWP 30668)]
SIGSEGV SI_KERNEL SI_CODE 128 fault on addr (nil) sent by kernel

Program received signal SIGABRT, Aborted.
0x0012d422 in __kernel_vsyscall ()
(gdb) where
#0  0x0012d422 in __kernel_vsyscall ()
#1  0x00670651 in *__GI_raise (sig=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#2  0x00673a82 in *__GI_abort () at abort.c:92
#3  0x0835cebd in fault_handler () at
/home/samth/sw/plt/src/build/racket/gc2/../../../racket/gc2/sighand.c:77
#4  <signal handler called>
#5  0x0832b5b4 in do_kill_thread () at thread.c:4743
#6  0x08333bd0 in scheme_kill_thread () at thread.c:4778
#7  0x080c910d in MrEdApp::RealInit (this=0xb7c98008) at
../../../gracket/gc2/../gracket.cxx:3230
#8  0x080cbd2e in handle_events (cx=0xb7d3d190) at
../../../gracket/gc2/../gracket.cxx:1447
#9  0x081a832c in scheme_do_eval () at eval.c:9638
#10 0x081d29d9 in apply_k () at fun.c:2431
#11 0x081d23f1 in scheme_top_level_do_worker () at fun.c:2270
#12 0x081d290d in scheme_apply_thread_thunk () at fun.c:2469
#13 0x08339f02 in start_child () at thread.c:3016
#14 0x0833119d in scheme_thread_cell_get () at thread.c:3105
#15 make_subprocess () at thread.c:3097
#16 0x08330d07 in scheme_thread_w_details () at thread.c:3327
#17 0x080cc7b5 in wxDoEvents () at ../../../gracket/gc2/../gracket.cxx:1654
#18 0x0809d20d in wxApp::MainLoop (this=0x0) at
../../../gracket/gc2/../../wxxt/src/Application/AppMain.cc:83
#19 0x080c8af3 in wxDoMainLoop () at ../../../gracket/gc2/../gracket.cxx:2964
#20 0x0809b905 in do_main_loop (fa=0xb7be0050) at
../../../gracket/gc2/../grmain.cxx:220
#21 0x0809c081 in run_from_cmd_line (argc=1, argv=0xbffff7e4,
mk_basic_env=0x80cc510 <setup_basic_env>)
    at ../../../gracket/gc2/../../racket/cmdline.inc:1218
#22 run_from_cmd_line (argc=1, argv=0xbffff7e4, mk_basic_env=0x80cc510
<setup_basic_env>)
    at ../../../gracket/gc2/../grmain.cxx:232
#23 0x080ccc82 in MrEdApp::OnInit (this=0xb7c98008) at
../../../gracket/gc2/../gracket.cxx:3178
#24 0x0809eeb8 in wxEntry (argc=1, argv=0xbffff7e4)
    at ../../../gracket/gc2/../../wxxt/src/Application/AppMain.cc:289
#25 0x0809a524 in main_after_stack (data=0xbffff728) at
../../../gracket/gc2/../grmain.cxx:268
#26 call_main_after_stack (data=0xbffff728) at
../../../gracket/gc2/../grmain.cxx:293
#27 0x0816f5de in do_main_stack_setup () at salloc.c:182
#28 scheme_main_stack_setup () at salloc.c:278
#29 0x0809a4b3 in main (argc=1, argv=0xbffff7e4) at
../../../gracket/gc2/../grmain.cxx:302

-- 
sam th
samth at ccs.neu.edu


Posted on the dev mailing list.