#777: Segfault occurs when calls ENV#rassoc.
----------------------------------+-----------------------------------------
 Reporter:  watson1...@…          |       Owner:  lsansone...@…        
     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/>

_______________________________________________
MacRuby-devel mailing list
MacRuby-devel@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to