[wxruby-users] object allocation during garbage collection phase

Niklas Baumstark niklas.baumstark at googlemail.com
Tue Aug 5 14:36:25 EDT 2008


Hello,

when i run the bigdemo sample, the app crashes initially after opening the "tip of the day" (it doesn't when i don't touch mouse and keyboard). can't even get to the main window. i ran it in gdb, it gives me the following trace:

Starting program: /usr/local/bin/ruby bigdemo.rb
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c3ab60 (LWP 7428)]
bigdemo.rb:591: [BUG] object allocation during garbage collection phase
ruby 1.8.7 (2008-08-02 revision 0) [i686-linux]


Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb7c3ab60 (LWP 7428)]
0xb7ef2410 in __kernel_vsyscall ()
(gdb) whe
#0  0xb7ef2410 in __kernel_vsyscall ()
#1  0xb7c66085 in raise () from /lib/tls/i686/cmov/libc.so.6
#2  0xb7c67a01 in abort () from /lib/tls/i686/cmov/libc.so.6
#3  0xb7e3a1e2 in rb_bug (
    fmt=0xb7ec62e8 "object allocation during garbage collection phase")
    at error.c:213
#4  0xb7e5dbf5 in rb_newobj () at gc.c:444
#5  0xb7e2b197 in bignew_1 (klass=0, len=6, sign=7428) at bignum.c:63
#6  0xb7e2bac9 in rb_uint2big (n=1074221808) at bignum.c:178
#7  0xb7e2bb51 in rb_int2big (n=0) at bignum.c:202
#8  0xb7e2bb98 in rb_int2inum (n=0) at bignum.c:222
#9  0xb7134c7e in ?? ()
   from /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.7-x86-linux/lib/wxruby2.so
#10 0xb7134c8e in ?? ()
   from /usr/local/lib/ruby/gems/1.8/gems/wxruby-1.9.7-x86-linux/lib/wxruby2.so
#11 0xb7e5d6aa in garbage_collect () at gc.c:1275
#12 0xb7e5dbe5 in rb_newobj () at gc.c:446
#13 0xb7e2b197 in bignew_1 (klass=0, len=6, sign=7428) at bignum.c:63
#14 0xb7e2bac9 in rb_uint2big (n=1074225608) at bignum.c:178
#15 0xb7e2bb51 in rb_int2big (n=0) at bignum.c:202
#16 0xb7e2bb98 in rb_int2inum (n=0) at bignum.c:222
#17 0xb73de8ce in ?? ()

$ ruby -v
ruby 1.8.7 (2008-08-02 revision 0) [i686-linux]

don't know if this is a bug, maybe its my own fault. i don't really need the bigdemo so it's no problem for me, but maybe the wxruby devs are interested.

i remember that it was working when i compiled ruby (same version) without pthread support, maybe this is the prob (ruby 1.8.6 worked even with pthread support). if you need further info, please tell me.

Greetings,
Niklas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://rubyforge.org/pipermail/wxruby-users/attachments/20080805/f81c869b/attachment.bin>


More information about the wxruby-users mailing list