Forum: Ruby ruby-prof on freebsd

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
_-_ Daniel _-_ (Guest)
on 2008-12-02 00:16
(Received via mailing list)
$ 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...

Anyone have any ideas for this?

Thank you in advance,

Daniel
This topic is locked and can not be replied to.