[MacRuby] #1041: Segmentation fault during execution

MacRuby ruby-noreply at macosforge.org
Sat Dec 18 20:08:15 PST 2010


#1041: Segmentation fault during execution
-------------------------------------+--------------------------------------
 Reporter:  jmancuso@…               |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  major                    |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------

Comment(by arthur@…):

 Okay, reduced some more, I looked inside Find.find and extracted some of
 that code out and got this:
 {{{
 require 'find'                   # makes segaults many times more common
 on my system.
 # require 'digest'               # These lines previously made segaults
 more common,
 # digest = Digest::SHA2.new(512) # now they reduce them.

 dir_of_interest = "/Users/Arthur/macruby_segfault_test/History/"

 fs = Dir.entries(dir_of_interest).sort!
 fs.each {|f| p f }
 }}}
 Currently on my test dir (History/), this triggers a segfault 9 out of 10
 times.

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



More information about the macruby-tickets mailing list