Forum: Ruby ruby-prof on freebsd

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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
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,

This topic is locked and can not be replied to.