[MacRuby] #1150: Segfault occurs with Thread.kill when was passed Object other than Thread.

MacRuby ruby-noreply at macosforge.org
Sat Feb 5 23:38:06 PST 2011


#1150: Segfault occurs with Thread.kill when was passed Object other than Thread.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Likely CRuby 1.9.2, this problem occurs in MacRuby.[[BR]]
 http://redmine.ruby-lang.org/issues/show/4367

 Test:
 {{{
 $  macruby -e "Thread.kill(nil)"
 }}}

 BackTrace:
 {{{
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000024
 0x00000001000d085a in rb_thread_kill (thread=4, sel=0x0) at thread.c:352
 352         rb_vm_thread_t *t = GetThreadPtr(thread);
 (gdb) bt
 #0  0x00000001000d085a in rb_thread_kill (thread=4, sel=0x0) at
 thread.c:352
 #1  0x00000001000d08cc in rb_thread_s_kill (obj=8590617632,
 sel=0x102e43700, th=4) at thread.c:380
 #2  0x000000010013b63e in __rb_vm_rcall [inlined] () at /Users/watson/src
 /macruby-trunk-svn/dispatcher.cpp:161
 #3  0x000000010013b63e in ruby_dispatch [inlined] () at /Users/watson/src
 /macruby-trunk-svn/dispatcher.cpp:466
 #4  0x000000010013b63e in rb_vm_dispatch () at dispatcher.cpp:850
 #5  0x0000000103c00386 in ?? ()
 #6  0x0000000103c0007e in ?? ()
 #7  0x0000000100155a2f in rb_vm_run (fname=0x20001f300 "-e",
 node=0x20004d780, binding=0x0, inside_eval=false) at vm.cpp:3930
 #8  0x000000010003905b in ruby_run_node (n=0x20004d780) at eval.c:211
 #9  0x0000000100000c15 in main (argc=3, argv=0x100e1de40,
 envp=0x7fff5fbfee88) at main.cpp:40
 Current language:  auto; currently c
 (gdb)
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1150>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list