[MacRuby] #1041: Segmentation fault during execution

MacRuby ruby-noreply at macosforge.org
Tue Dec 14 17:09:17 PST 2010


#1041: Segmentation fault during execution
-------------------------------------+--------------------------------------
 Reporter:  jmancuso@…               |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  major                    |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 I don't have much more detailed info than this code:


 {{{
 require 'digest'
 require 'find'

 path = "/Users/jmancuso"

 digest = Digest::SHA2.new(512)

 Find.find(path) do |entry|
   if File.file?(entry) or File.directory?(entry)
     stat = File.stat(entry)
     digest.update("#{entry} - #{stat.mtime} - #{stat.size}")
   end
 end


 }}}

 has produced a segfault a number of times during execution. It traverses
 and digests the stats of files inside my home directory [about 300k files
 and folders].

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



More information about the macruby-tickets mailing list