[zeromq-dev] [BUG] zmq_assert causes BOOM if you breath on OSX Lion kqueue wrong.

Zed Shaw zed.shaw at gmail.com
Sat Oct 1 00:22:27 CEST 2011


I was asked to report all asserts I encounter.  I went to the JIRA to
submit this as a bug, but it looks like I have to create an account,
or something, can't really figure it out even though I've used JIRA
before.  I'm guessing this is the next place to report a bug, so here
you go.

If I run ZeroMQ 2.1.9 for even a reasonably complex load on OSX Lion I get this:

No such file or directory
rc != -1 (kqueue.cpp:76)
Abort trap: 6

I'll just report it here and then maybe someone can fix this.

<rant>
On another note:  Causing a full assert abort in *my* program from
*your* library because of a little hicup in an external resource is
stupid.  I've been saying for close to a year now that *all* of the
zmq_asserts need to go away.  libzmq needs to return valid error codes
and stop aborting *my* servers.  Until they're gone completely I can't
trust that some random socket error I have no control over won't abort
my whole world. And, having to troll through C++ code to debug why I'm
getting the error is annoying.  At a minimum, add a 3rd parameter that
gives an error message that's other than something like "No such file
or directory".  WTF does that even mean for kqueue?  I sure as hell
didn't do anything to cause that. How could I possibly fix that?
</rant>

Zed



More information about the zeromq-dev mailing list