[MacRuby] #847: Assertion fails when calls Mutex#unlock, after calls Mutex#try_lock several times.

MacRuby ruby-noreply at macosforge.org
Wed Aug 11 05:39:41 PDT 2010


#847: Assertion fails when calls Mutex#unlock, after calls Mutex#try_lock several
times.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 #!ruby
 $ cat test_mutex_try_lock.rb
 require 'thread'

 m = Mutex.new
 p m.try_lock
 p m.try_lock

 m.unlock
 }}}

 {{{
 $ macruby test_mutex_try_lock.rb
 true
 false
 Assertion failed: (m->thread->mutexes != Qnil), function rb_mutex_unlock0,
 file thread.c, line 1443.
 zsh: abort      macruby test_mutex_try_lock.rb
 }}}

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



More information about the macruby-tickets mailing list