ruby-prof on freebsd

Discussion in 'Ruby' started by _-_ Daniel _-_, Dec 1, 2008.

  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 Joyeux'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
    _-_ Daniel _-_, Dec 1, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Victor 'Zverok' Shepelev

    ruby-prof vs. Object#clone

    Victor 'Zverok' Shepelev, Oct 26, 2006, in forum: Ruby
    Replies:
    5
    Views:
    126
    Rick DeNatale
    Oct 26, 2006
  2. Daniel Lucraft

    ruby-prof on amd-64?

    Daniel Lucraft, Nov 20, 2006, in forum: Ruby
    Replies:
    5
    Views:
    112
    Edwin Fine
    Nov 24, 2006
  3. fkc_email-news @ yahoo dot com

    ruby-prof doesn't work with ruby/tk?

    fkc_email-news @ yahoo dot com, Dec 21, 2006, in forum: Ruby
    Replies:
    2
    Views:
    104
    fkc_email-news @ yahoo dot com
    Dec 21, 2006
  4. Sandeep Gupta
    Replies:
    1
    Views:
    96
    Heesob Park
    Jun 9, 2009
  5. DG
    Replies:
    9
    Views:
    132
    Alexey L.
    Nov 30, 2010
Loading...

Share This Page