[Fxruby-users] segfault with FXTreeList in Ruby 1.8.0
Status: Inactive
Brought to you by:
lyle
From: Joel V. <vj...@PA...> - 2003-08-24 20:56:32
|
Has anyone seen this? I'm getting a segfault in a finalizer for a FXTreeList. It happens in 1.8.0, but not 1.7.3. Here's the backtrace: Program received signal SIGSEGV, Segmentation fault. 0x0805947b in rb_longjmp (tag=6, mesg=0) at eval.c:3924 3924 JUMP_TAG(tag); (gdb) bt #0 0x0805947b in rb_longjmp (tag=6, mesg=0) at eval.c:3924 #1 0x080594f1 in rb_exc_raise (mesg=1087374512) at eval.c:3931 #2 0x080bfe08 in rb_raise (exc=1075655904, fmt=0x80dafe0 "wrong argument type %s (expected %s)") at error.c:694 #3 0x080befb4 in rb_check_type (x=0, t=135298648) at error.c:254 #4 0x40339825 in SWIG_ConvertPtr (obj=1087378452, ptr=0xbfffede0, ty=0x406d0580, flags=1) at librb.c:403 #5 0x405a00c2 in _wrap_FXTreeItem_setFocus (argc=1, argv=0xbfffeff0, self=1087378452) at treelist_wrap.cpp:685 #6 0x080660b6 in call_cfunc (func=0x405a006c <_wrap_FXTreeItem_setFocus>, recv=1087378452, len=0, argc=1, argv=0xbfffeff0) at eval.c:4769 #7 0x0805b37f in rb_call0 (klass=1087138004, recv=1087378452, id=18049, oid=0, argc=1, argv=0xbfffeff0, body=0x40cc6460, nosuper=0) at eval.c:4906 #8 0x0805bb47 in rb_call (klass=1087138004, recv=1087378452, mid=18049, argc=1, argv=0xbfffeff0, scope=1) at eval.c:5123 #9 0x0805bdbd in rb_funcall (recv=1087378452, mid=18049, n=1) at ruby.h:626 #10 0x405392e5 in void FXRbCallVoidMethod<unsigned char>(FXObject*, unsigned long, unsigned char) (recv=0x82cc160, func=18049, arg=1 '\001') at include/FXRuby.h:285 #11 0x405365a8 in FXRbTreeItem::setFocus(unsigned char) (this=0x82cc160, focus=1 '\001') at impl.cpp:901 #12 0x408f9f93 in FXTreeList::removeItem(FXTreeItem*, unsigned char) () from /usr/local/lib/libFOX-1.0.so.0 #13 0x408fa041 in FXTreeList::removeItems(FXTreeItem*, FXTreeItem*, unsigned cha---Type <return> to continue, or q <return> to quit---li r) () from /usr/local/lib/libFOX-1.0.so.0 #14 0x408f9cd6 in FXTreeList::removeItem(FXTreeItem*, unsigned char) () from /usr/local/lib/libFOX-1.0.so.0 #15 0x408fa041 in FXTreeList::removeItems(FXTreeItem*, FXTreeItem*, unsigned char) () from /usr/local/lib/libFOX-1.0.so.0 #16 0x408fa08c in FXTreeList::clearItems(unsigned char) () from /usr/local/lib/libFOX-1.0.so.0 #17 0x408fa87a in FXTreeList::~FXTreeList() () from /usr/local/lib/libFOX-1.0.so.0 #18 0x403c47a8 in ~FXRbTreeList (this=0x82c1b70) at include/FXRbTreeList.h:193 #19 0x4059a44d in FXRbObject::freefunc(FXObject*) (self=0x82c1b70) at markfuncs.cpp:78 #20 0x0806c59a in rb_gc_call_finalizer_at_exit () at gc.c:1607 #21 0x08053609 in ruby_finalize_0 (exp=0xbffff3b0) at eval.c:1333 #22 0x0805377b in ruby_cleanup (ex=0) at eval.c:1368 #23 0x0805388f in ruby_stop (ex=0) at eval.c:1395 #24 0x080538d4 in ruby_run () at eval.c:1407 #25 0x08051c01 in main (argc=2, argv=0xbffff454, envp=0xbffff460) at main.c:50 #26 0x400877f7 in __libc_start_main () from /lib/i686/libc.so.6 -- Joel VanderWerf California PATH, UC Berkeley mailto:vj...@pa... Ph. (510) 231-9446 http://www.path.berkeley.edu FAX (510) 231-9565 |