[MacRuby] #1288: MacRuby displays "reference count underflow" message with rubyspec.

MacRuby ruby-noreply at macosforge.org
Tue May 24 06:44:11 PDT 2011


#1288: MacRuby displays "reference count underflow" message with rubyspec.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  minor                 |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by watson1978@…):

 It seems to reappear in my environment when I execute the following script
 several times.

 {{{
 #!ruby
 3.times do
   Thread.new {
     GC.start
     raise NotImplementedError.new("Just kidding")
   }
 end

 sleep 1
 }}}

 {{{
 $ DYLD_LIBRARY_PATH=. ./macruby -I./ext -I./lib ~/tmp/t.rb
 macruby(8829,0x10363c000) malloc: reference count underflow for
 0x2000398e0, break on auto_refcount_underflow_error to debug.
 $ DYLD_LIBRARY_PATH=. ./macruby -I./ext -I./lib ~/tmp/t.rb
 $ DYLD_LIBRARY_PATH=. ./macruby -I./ext -I./lib ~/tmp/t.rb
 macruby(8831,0x1036f7000) malloc: reference count underflow for
 0x2000398e0, break on auto_refcount_underflow_error to debug.
 $ DYLD_LIBRARY_PATH=. ./macruby -I./ext -I./lib ~/tmp/t.rb
 $ DYLD_LIBRARY_PATH=. ./macruby -I./ext -I./lib ~/tmp/t.rb
 macruby(8833,0x1036f7000) malloc: reference count underflow for
 0x2000398e0, break on auto_refcount_underflow_error to debug.
 }}}

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



More information about the macruby-tickets mailing list