# Ruby-prof on freebsd

**URL:** <https://www.ruby-forum.com/t/ruby-prof-on-freebsd/154587>\
**Category:** Ruby\
**Created:** [December 1, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/ruby-prof-on-freebsd/154587 "2008-12-01T23:16:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSDanielSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c77e96/32.png) [@SSDanielSS](https://www.ruby-forum.com/u/SSDanielSS)\
**Post date:** [December 1, 2008, 11:16pm UTC](https://www.ruby-forum.com/t/ruby-prof-on-freebsd/154587/1 "2008-12-01T23:16:00Z")

</div>

$ 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](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
