[MacRuby-devel] [MacRuby] #323: GCD for_reading queue crash

MacRuby ruby-noreply at macosforge.org
Wed Sep 2 08:08:26 PDT 2009


#323: GCD for_reading queue crash
-----------------------------+----------------------------------------------
 Reporter:  ben@…            |       Owner:  pthomson@…        
     Type:  defect           |      Status:  new               
 Priority:  major            |   Milestone:                    
Component:  MacRuby          |    Keywords:                    
-----------------------------+----------------------------------------------
 Running the attached program and sending data to the syslog causes an
 assertion failure.

 {{{
 # macruby gcd_test.rb
 }}}
 in another shell do this a few times:
 {{{
 syslog -l 3 -s 'hi'
 syslog -l 3 -s 'hi'
 syslog -l 3 -s 'hi'
 }}}

 The crash is the eventual result of assertion failure:
 {{{Assertion failed: (pimp != NULL), function __rb_vm_bcall, file vm.cpp,
 line 2188.}}}
 except I can also get it to crash here:
 {{{
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
 [Switching to process 7775]
 0x0000000000000000 in ?? ()
 (gdb) bt
 #0  0x0000000000000000 in ?? ()
 #1  0x000000010017ebeb in rb_vm_block_eval0 (b=0x20001df20, self=513,
 argc=0, argv=0x0) at vm.cpp:3968
 #2  0x0000000100119a26 in rb_source_event_handler (sourceptr=<value
 temporarily unavailable, due to optimizations>) at gcd.c:673
 #3  0x00007fff820eb46d in _dispatch_source_invoke ()
 #4  0x00007fff820ea824 in _dispatch_queue_invoke ()
 #5  0x00007fff820ea94d in _dispatch_queue_drain ()
 #6  0x00007fff820ea7a4 in _dispatch_queue_invoke ()
 #7  0x00007fff820ea34e in _dispatch_worker_thread2 ()
 #8  0x00007fff820e9c80 in _pthread_wqthread ()
 #9  0x00007fff820e9b1d in start_wqthread ()
 }}}

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



More information about the MacRuby-devel mailing list