From: Jan Bernhardt Date: 2003-05-15T06:47:33+09:00 Subject: Re: Embedding/GC/heap corruption problem On Wed, 14 May 2003 23:19:23 +0200, Jan Bernhardt wrote: > I used to do that, but during experimentation I removed the protection > wrapper. But of course you're right - I should protect the function call. After looking promising it bombed again: L 05/14/2003 - 23:23:38: [RUBY] Message count: 2692 L 05/14/2003 - 23:23:38: [RUBY] Message type: tempentity? (23) cstrike/addons/halfruby/kernel/message_dispatch.rb:28: [BUG] Segmentation fault ruby 1.6.7 (2002-03-19) [i386-linux] (which is during executing Game.log "Message args: [#{message.args.join ','}]" ) (gdb) bt #0 0x400c5fd1 in kill () from /lib/libc.so.6 #1 0x40036762 in raise () from /lib/libpthread.so.0 #2 0x400c5ca2 in raise () from /lib/libc.so.6 #3 0x400c704d in abort () from /lib/libc.so.6 #4 0x43a67d71 in rb_bug () at error.c:178 #5 0x43ab4b67 in sigsegv () at signal.c:393 #6 0x40039929 in __pthread_sighandler () from /lib/libpthread.so.0 #7 #8 0x00000011 in ?? () #9 0x43a696b5 in search_method (klass=1137889328, id=3001, origin=0xbfffd884) at eval.c:247 #10 0x43a6970a in rb_get_method_body (klassp=0xbfffd8d0, idp=0xbfffd8b4, noexp=0xbfffd8b8) at eval.c:268 #11 0x43a73564 in rb_call (klass=1137889328, recv=1137889348, mid=3001, argc=0, argv=0x0, scope=1) at eval.c:4583 #12 0x43a738ef in rb_funcall (recv=1137889348, mid=3001, n=0) at ruby.h:571 #13 0x43ab7d86 in rb_obj_as_string (obj=1137889348) at string.c:191 #14 0x43a6f050 in rb_eval (self=1138014008, n=0x0) at eval.c:2895 #15 0x43a6e61f in rb_eval (self=1138014008, n=0x0) at ruby.h:576 #16 0x43a6cb94 in rb_eval (self=1138014008, n=0x0) at eval.c:2028 #17 0x43a6cb94 in rb_eval (self=1138014008, n=0x0) at eval.c:2028 #18 0x43a73141 in rb_call0 (klass=1138029288, recv=1138014008, id=9313, argc=0, argv=0xbffff0e4, body=0x43d4bbd4, nosuper=0) at eval.c:4513 #19 0x43a7361c in rb_call (klass=1138029288, recv=1138014008, mid=9313, argc=1, argv=0xbffff0e0, scope=1) at eval.c:4606 #20 0x43a738ef in rb_funcall (recv=1138014008, mid=9313, n=1) at ruby.h:571 #21 0x43a5df1d in dispatch_message_call() () at messages.cpp:31 #22 0x43a722bd in rb_protect (proc=0x43a5dee4 , data=4, state=0xbffff240) at eval.c:4009 #23 0x43a5df55 in MessageEnd() () at messages.cpp:36 #24 0x43772cfe in mm_MessageEnd () from ./cstrike/addons/metamod/dlls/metamod_i386.so