[fxruby-users] FXRuby crashes

HaPK maxim.kulkin at gmail.com
Wed Aug 31 03:35:56 EDT 2005

> On Aug 30, 2005, at 8:05 AM, HaPK wrote:
> > I've got some odd problems with FOX / FXRuby.
> > When I try to run simple "hello world" application included with
> > FXRuby v1.2.16, it seg faults when FXApp.new is executed.
> > I have no idea why this could be.
> Me neither.

Oh... thanks.. that was very helpful.

Here is what hello.rb outputs:

$ ruby -r rubygems hello.rb
hello.rb:7: [BUG] Segmentation fault
ruby 1.8.2 (2004-12-25) [i586-linux-gnu]


(gdb) bt
#0  0x40182571 in kill () from /lib/libc.so.6
#1  0x411792d1 in pthread_kill () from /lib/libpthread.so.0
#2  0x4117969b in raise () from /lib/libpthread.so.0
#3  0x40182308 in raise () from /lib/libc.so.6
#4  0x40183790 in abort () from /lib/libc.so.6
#5  0x40048aa1 in rb_bug (fmt=0x400eac2c "Segmentation fault")
    at error.c:214
#6  0x400baf58 in sigsegv (sig=11) at signal.c:446
#7  <signal handler called>
#8  0x400bd8cb in st_insert (table=0x0, key=136844168, value=137120072) 
    at st.c:298
#9  0x406e5f6e in FXRbRegisterRubyObj (rubyObj=1093976976,
    foxObj=0x8281388) at FXRuby.cpp:233
#10 0x40731bbc in _wrap_new_FXApp (argc=2, argv=0xbfffea70,
    self=1093976976) at core_wrap.cpp:3039
#11 0x4005823a in call_cfunc (func=0x40731b0e <_wrap_new_FXApp>,
    recv=1093976976, len=-1, argc=2, argv=0xbfffea70) at eval.c:5387
#12 0x400578b4 in rb_call0 (klass=1076991096, recv=1093976976,
    id=2961, oid=2961, argc=2, argv=0xbfffea70, body=0x403193ec,
    nosuper=0) at eval.c:5522
#13 0x40058bbc in rb_call (klass=1076991096, recv=1093976976,
    mid=2961, argc=2, argv=0xbfffea70, scope=1) at eval.c:5743
#14 0x40058f79 in rb_funcall2 (recv=1093976976, mid=2961, argc=2,
    argv=0xbfffea70) at eval.c:5879
#15 0x4005bb7f in rb_obj_call_init (obj=1093976976, argc=2,
    argv=0xbfffea70) at eval.c:7215
#16 0x4008790d in rb_class_new_instance (argc=2, argv=0xbfffea70,
    klass=1076991096) at object.c:1601
#17 0x4005823a in call_cfunc (func=0x400878d4 <rb_class_new_instance>,
    recv=1076991096, len=-1, argc=2, argv=0xbfffea70) at eval.c:5387
#18 0x400578b4 in rb_call0 (klass=1076505848, recv=1076991096,
    id=3369, oid=3369, argc=2, argv=0xbfffea70, body=0x402a1aec,
    nosuper=0) at eval.c:5522
#19 0x40058bbc in rb_call (klass=1076505848, recv=1076991096,
    mid=3369, argc=2, argv=0xbfffea70, scope=0) at eval.c:5743
#20 0x40051d79 in rb_eval (self=1076500928, n=0x4031cb00)
    at eval.c:3229
#21 0x40052c69 in rb_eval (self=1076500928, n=0x4031cc04)
    at eval.c:3399
#22 0x4004d2ad in eval_node (self=1076500928, node=0x4031cc04)
    at eval.c:1296
#23 0x4004d8f3 in ruby_exec_internal () at eval.c:1473
#24 0x4004d95b in ruby_exec () at eval.c:1493
#25 0x4004d98f in ruby_run () at eval.c:1503
#26 0x0804860c in main (argc=4, argv=0xbffff804, envp=0xbffff818)
    at main.c:46

More information about the fxruby-users mailing list