# HELP: Ruby profiler crashes under MacOS X

**URL:** <https://www.ruby-forum.com/t/help-ruby-profiler-crashes-under-macos-x/84828>\
**Category:** Ruby\
**Created:** [February 8, 2007, 12:16am UTC](https://www.ruby-forum.com/t/help-ruby-profiler-crashes-under-macos-x/84828 "2007-02-08T00:16:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2007, 12:16am UTC](https://www.ruby-forum.com/t/help-ruby-profiler-crashes-under-macos-x/84828/1 "2007-02-08T00:16:01Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 8, 2007, 12:21am UTC](https://www.ruby-forum.com/t/help-ruby-profiler-crashes-under-macos-x/84828/2 "2007-02-08T00:21:01Z")

</div>

On Feb 7, 6:13 pm, “removed\_email\_address@domain.invalid” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [February 9, 2007, 7:13pm UTC](https://www.ruby-forum.com/t/help-ruby-profiler-crashes-under-macos-x/84828/3 "2007-02-09T19:13:13Z")

</div>

On 2/7/07, removed\_email\_address@domain.invalid [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
