[zeromq-dev] Bad File Descriptor / nbytes != -1 error (mailbox.cpp:241)

Andrew Cholakian andrew at andrewvc.com
Fri Feb 11 22:00:56 CET 2011

Hmmm, I'm not sure where that pointer comes from.

I added print statements to ffi-rzmq showing all socket pointers, and their
addresses for new sockets and calls to getsockopt. At the end of these gists
is the GDB backtrace.

Output under Rubinius: https://gist.github.com/822990
<https://gist.github.com/822990>Output under 1.9.2:

I don't see that value anywhere. I'm not a C/C++ programmer by trade, so
perhaps there's something I'm not following. It should be noted that 1.9.2
and Rubinius have different FFI implementations.

On Fri, Feb 11, 2011 at 1:49 AM, Martin Sustrik <sustrik at 250bpm.com> wrote:

> Hi Andrew,
>  #4  0x00007ffff4d3405e in zmq::socket_base_t::getsockopt (this=0x3dd5,
>> option_=<value optimized out>, optval_=0x7fffec000a30, optvallen_=<value
>> optimized out>)
> This=0x3dd5 doesn't seem to be a valid pointer. Are you sure you are not
> passing a bogus pointer of 0MQ from the binding?
> Martin

Andrew Cholakian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20110211/eef07c26/attachment.htm>

More information about the zeromq-dev mailing list