Ruby-prof on freebsd


$ ruby-prof --mode memory test.rb
Segmentation fault
ruby 1.8.6 (2008-08-11) [i386-freebsd7]

Abort trap: 6

$ cat test.rb
class Dir
def self.rglob(dir,regex)
res = []
Dir.entries(dir).each { |f|
res.push(f) if regex.match f
return res

The code in test.rb doesn’t matter.

Does anyone have this issue with ruby-prof? I have patched the
interpreter with Sylvain J.'s patch.

Anyone have any ideas for this?

Thank you in advance,