# Help: \`method\_missing' called on terminated object

**URL:** <https://www.ruby-forum.com/t/help-method-missing-called-on-terminated-object/174111>\
**Category:** Ruby\
**Created:** [August 20, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/help-method-missing-called-on-terminated-object/174111 "2009-08-20T23:50:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Owens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@Mike\_Owens](https://www.ruby-forum.com/u/Mike_Owens)\
**Post date:** [August 20, 2009, 11:50pm UTC](https://www.ruby-forum.com/t/help-method-missing-called-on-terminated-object/174111/1 "2009-08-20T23:50:13Z")

</div>

I am getting this on Ubuntu Jaunty 64 with Ruby 1.9.1-p243. I have  
tried 1.9.1-p129 and 1.9.2-preview and it happens with all of them.  
This works with 1.9.1-243 on Hardy 32.

NotImplementedError: method `method\_missing’ called on terminated  
object (0x000000026449f8)

I’ve seen references to this as possibly being related to the version  
of gcc on Jaunty. It happens when I wrap an object using  
Data\_Wrap\_Struct and pass it into any Ruby function and then within  
that function try to do anything with it. The first time the object is  
used, it triggers this exception.

Does anyone have any idea what this might be related to? That is, is  
it likely something in my code that was bad all along that’s now  
breaking, or is it something out of my control? I just need to know  
because this is proving to be very difficult for me to resolve. Any  
help or suggestions would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Mike\_Owens](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ee7513/32.png) [@Mike\_Owens](https://www.ruby-forum.com/u/Mike_Owens)\
**Post date:** [August 21, 2009, 12:38pm UTC](https://www.ruby-forum.com/t/help-method-missing-called-on-terminated-object/174111/2 "2009-08-21T12:38:14Z")

</div>

it was a linking problem. i was linking the extension in twice: once  
in the unit test (statically) and then in a shared library which  
initialized ruby.
