[MacRuby] #794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22)

MacRuby ruby-noreply at macosforge.org
Fri Sep 10 07:18:32 PDT 2010


#794: `pthread_mutex_unlock(&t->sleep_mutex)' failed: Invalid argument (22)
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |        Owner:  lsansonetti@…        
     Type:  defect                |       Status:  reopened             
 Priority:  blocker               |    Milestone:                       
Component:  MacRuby               |   Resolution:                       
 Keywords:                        |  
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 I found the code that could reappear the comment:9.
 {{{
 #!ruby
 #$ cat test_thread.rb
 10.times do
   t =  Thread.new{
   }
   t.kill
   sleep 0.1
   p t.status
 end
 }}}

 {{{
 $ macruby test_thread.rb
 false
 false
 pthread command `pthread_cancel(t->thread)' failed: No such process (3)
 zsh: abort      macruby test_thread.rb
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/794#comment:11>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list