methodmissing/rbczmq — Issue #4: ruby segfault on ZMQ::Message cleanup -- backtrace included
Author: erikh
Created: 2012-02-07 06:14:37+00:00
State: open

Hello again. Did you miss me? :)

```
zlist_size (self=0xd000000010048744) at zlist.c:283
283	return self->size;
(gdb) bt
#0 zlist_size (self=0xd000000010048744) at zlist.c:283
#1 0x00000001007a2a5d in zmsg_destroy (self_p=0x101878b60) at zmsg.c:82
#2 0x0000000100796c73 in rb_czmq_free_message [inlined] () at /Users/erikh/.rvm/gems/ruby-1.9.3-p0/bundler/gems/rbczmq-37cbfdc0f291/ext/rbczmq/message.c:11
#3 0x0000000100796c73 in rb_czmq_free_message_gc (ptr=0x101878b60) at message.c:25
#4 0x00000001000574a4 in run_final [inlined] () at /Users/erikh/.rvm/src/ruby-1.9.3-p0/gc.c:2944
#5 0x00000001000574a4 in finalize_list (objspace=0x10081a800, p=0x1021b7350) at gc.c:1939
#6 0x0000000100057bed in rb_objspace_call_finalizer [inlined] () at /Users/erikh/.rvm/src/ruby-1.9.3-p0/gc.c:3075
#7 0x0000000100057bed in rb_gc_call_finalizer_at_exit () at gc.c:3006
#8 0x0000000100045f3a in ruby_cleanup (ex=0) at eval.c:101
#9 0x00000001000461d3 in ruby_run_node (n=) at eval.c:244
#10 0x0000000100000edf in main (argc=4, argv=0x7fff5fbff010) at main.c:38
```

Executed Code is here (With the lib/sm/network.rb from http://github.com/erikh/sm):

https://gist.github.com/da1228f324517fa0193e

Thanks again for all your great work on this project -- I'm learning a ton!

-Erik