[zeromq-dev] Problems with 2.0.6 poll using C++ api
Martin Lucina
mato at kotelna.sk
Fri Mar 19 00:13:21 CET 2010
Hi Matthew,
mgiedt at gmail.com said:
> Here's the application that I'm using to test:
>
> [snip]
Looks fine though I'm not sure what you're trying to achieve...
> This produces:
>
> sock1 recv: 0xfce9e8
> sock2 recv: 0xfcece8
> poll...
> terminate called after throwing and instance of 'zmq::error_t'
> what(): Bad address
> Aborted
>
> I've included the gdb output below -- it's thinking that the two sockets were
> created from different threads?
That's what it looks like, but the trace you posted looks like it's bogus
due to optimization. Can you try doing
$ export CXXFLAGS="-O0 -g"
Then rebuild and reinstall, and see if you a) still get the problem b) the
backtrace looks sane?
Thanks
-mato
More information about the zeromq-dev
mailing list