tmm1/perftools.rb — Issue #39: perftool.rb gem fails on Darwin ruby 1.9.3-p0
Author: justinwiley
Created: 2012-02-02 19:57:10+00:00
State: open

Specifically it fails with:
Symbol not found: _ruby_current_thread (LoadError)

This appears similar to:
https://github.com/tmm1/perftools.rb/issues/26
...and a pull request at:
https://github.com/vjt/perftools.rb ... which unfortately gives me a segfault

bash-3.2$ gem which perftools
/Users/justin/.rvm/gems/ruby-1.9.3-p0@app/gems/perftools.rb-0.5.6/lib/perftools.bundle
bash-3.2$ CPUPROFILE=/tmp/my_app_profile \
> RUBYOPT="-r`gem which perftools | tail -1`" \
> rspec spec/models/test_spec.rb -l 313
/Users/justin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': dlopen(/Users/justin/.rvm/gems/ruby-1.9.3-p0@app/gems/perftools.rb-0.5.6/lib/perftools.bundle, 9): Symbol not found: _ruby_current_thread (LoadError)
Referenced from: /Users/justin/.rvm/gems/ruby-1.9.3-p0@app/gems/perftools.rb-0.5.6/lib/perftools.bundle
Expected in: flat namespace
in /Users/justin/.rvm/gems/ruby-1.9.3-p0@app/gems/perftools.rb-0.5.6/lib/perftools.bundle - /Users/justin/.rvm/gems/ruby-1.9.3-p0@app/gems/perftools.rb-0.5.6/lib/perftools.bundle
from /Users/justin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'