Ruby-prof on freebsd


#1

$ ruby-prof --mode memory test.rb
/usr/local/lib/ruby/gems/1.8/gems/ruby-prof-0.7.1/bin/ruby-prof:170:
[BUG]
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
end
end

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.
http://rubyforge.org/tracker/index.php?func=detail&aid=17676&group_id=1814&atid=7062

Anyone have any ideas for this?

Thank you in advance,

Daniel