noreply at rubyforge.org
2010-Aug-27 14:19 UTC
[wxruby-development] [ wxruby-Bugs-28511 ] Segfault in event handler
Bugs item #28511, was opened at 2010-08-27 14:19 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=28511&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Florian Hars (fhars) Assigned to: Nobody (None) Summary: Segfault in event handler Initial Comment: I occasionally get a segfault like this: #0 0x00007f1de66ae4b5 in raise () from /lib/libc.so.6 #1 0x00007f1de66b1f50 in abort () from /lib/libc.so.6 #2 0x00007f1de74ff843 in rb_bug (fmt=0x7f1de75982cc "Segmentation fault") at error.c:213 #3 0x00007f1de756812c in sigsegv (sig=11) at signal.c:634 #4 <signal handler called> #5 0x00007f1de756b309 in st_lookup (table=0x7f1de75290d0, key=26281, value=0x7fff05985158) at st.c:250 #6 0x00007f1de7502c4f in search_method (klass=139766183643120, id=26281, origin=0x7fff05985198) at eval.c:484 #7 0x00007f1de7502cd7 in rb_get_method_body (klassp=0x7fff059851e8, idp=0x7fff059851f0, noexp=0x7fff059851fc) at eval.c:505 #8 0x00007f1de750e16d in rb_call (klass=139766183643120, recv=139766183709320, mid=26281, argc=1, argv=0x7fff05985250, scope=1, self=6) at eval.c:6139 #9 0x00007f1de750ef18 in vafuncall (recv=<value optimized out>, mid=<value optimized out>, n=1, ar=<value optimized out>) at eval.c:6241 #10 0x00007f1de750f1c5 in rb_funcall (recv=26281, mid=26281, n=1409254728) at eval.c:6258 #11 0x00007f1de33e781d in wxAppBase::SendIdleEvents(wxWindow*, wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0 #12 0x00007f1de33e7854 in wxAppBase::SendIdleEvents(wxWindow*, wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0 #13 0x00007f1de33e7854 in wxAppBase::SendIdleEvents(wxWindow*, wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0 #14 0x00007f1de33e7854 in wxAppBase::SendIdleEvents(wxWindow*, wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0 #15 0x00007f1de33e7854 in wxAppBase::SendIdleEvents(wxWindow*, wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0 This bug in libXML may be related: http://rubyforge.org/forum/forum.php?thread_id=31610&forum_id=2129 The last six stack frames from st_lookup to rb_funcall are the same, and in both cases the call came from an event handler. In that case the problem was that the code was not living in harmony with the garbage collector, maybe it is the same here. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=28511&group_id=35