[MacRuby-devel] [MacRuby] #777: Segfault occurs when calls ENV#rassoc.

MacRuby ruby-noreply at macosforge.org
Wed Jul 7 20:14:54 PDT 2010


#777: Segfault occurs when calls ENV#rassoc.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 $ cat test_env.rb
 ary = []
 p ary.rassoc(1)

 hash = { "test" => 1}
 p hash.rassoc(1)

 p ENV.rassoc("")
 }}}

 Result of Ruby 1.9.1:
 {{{
 $ ruby test_env.rb
 nil
 ["test", 1]
 ["mount_authenticator", ""]
 }}}

 Result of MacRuby Trunk:
 {{{
 macruby test_env.rb
 nil
 ["test", 1]
 zsh: segmentation fault  macruby test_env.rb
 }}}

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



More information about the MacRuby-devel mailing list