RidiculousPower / sender

Adds :sender and :caller as well as other object-oriented backtrace methods to the built-in :callee and :method methods in Ruby 1.9.1.
https://rubygems.org/gems/sender
16 stars 4 forks source link

sender.so: undefined symbol: ruby_current_thread #4

Open sheldonh opened 12 years ago

sheldonh commented 12 years ago

Hi there,

I'm hugely interested in the sender gem, because I need caller to avoid inadvertent exposure of protected methods in a dynamic proxy.

Unfortunately, when I try to load the gem under ruby-1.9.3-p194 (using RVM) on a Fedora 17 x86_64 Linux box, I get this:

require 'rubygems'
require 'sender'
LoadError: [...]/gems/sender-1.5.9/lib/sender.so: undefined symbol: ruby_current_thread - [...]/gems/sender-1.5.9/lib/sender.so
    from [...]/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `require'
    from [...]/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:60:in `rescue in require'
    from [...]/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
    from (irb):2
    from [...]/bin/irb:16:in `<main>'

Could you tell me which version of ruby the sender gem known to work on, so that I can poke around and see what's up?

As an aside, I think archive-tar-minitar is missing as a development dependency of the gem.

Thanks, Sheldon.

sheldonh commented 12 years ago

This ruby pull request exposes the hidden symbol. I don't understand why it was never accepted.

https://github.com/ruby/ruby/pull/47

Asher- commented 12 years ago

I'll try to make some time to look into it today. Thanks for letting me know about the issue.