Forum: Ruby HELP: Ruby profiler crashes under MacOS X

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.
219fcd6acd2770ee252cc4c08aa13bf6?d=identicon&s=25 theosib@gmail.com (Guest)
on 2007-02-08 00:16
(Received via mailing list)
I'm trying to run the Ruby interpreter with profiling enabled, but
when I do, I get a crash:

# ruby -r profile myprog.rb
[BUG] cross-thread violation on rb_gc()
ruby 1.8.2 (2004-12-25) [universal-darwin8.0]

Abort trap


Any idea what's going on?  Am I doing something wrong?  If not, where
can I report this problem?  Has anyone encountered it before?

Thanks!
219fcd6acd2770ee252cc4c08aa13bf6?d=identicon&s=25 theosib@gmail.com (Guest)
on 2007-02-08 00:21
(Received via mailing list)
On Feb 7, 6:13 pm, "theo...@gmail.com" <theo...@gmail.com> wrote:
> I'm trying to run the Ruby interpreter with profiling enabled, but
> when I do, I get a crash:
>
> # ruby -r profile myprog.rb
> [BUG] cross-thread violation on rb_gc()
> ruby 1.8.2 (2004-12-25) [universal-darwin8.0]

One thing I should point out:  "ruby --version" reports 1.8.5.

Also, I'm using Fink, and it's confusing to me.  Could the MacOSX
version be in one place, with Fink installing it in another?
4d5b5dd4e263d780a5dfe7ac8b8ac98c?d=identicon&s=25 Tim Pease (Guest)
on 2007-02-09 19:13
(Received via mailing list)
On 2/7/07, theosib@gmail.com <theosib@gmail.com> wrote:
> Also, I'm using Fink, and it's confusing to me.  Could the MacOSX
> version be in one place, with Fink installing it in another?
>

There is definitely something odd about your setup.  The ruby version
generated by the profile error should be the same as the ruby
--version.

Try using the full path to your ruby executable. I'm not in front of a
mac right now, but I do believe that Fink puts everything into /sw

/sw/usr/bin/ruby     <-- should be the Fink version

Give that a shot

Blessings,
TwP
This topic is locked and can not be replied to.