[zeromq-dev] Assertion failure in mailbox.cpp (Jon Gjengset)

Mařík Miloslav marik.miloslav at ifortuna.cz
Tue May 27 13:47:34 CEST 2014


Hi Jon, 

You can get list of changed files when executing patch --dry-run

marikm at linux-lwt7:~/Downloads/zeromq-3.2.4> patch --dry-run -p1 -i ~/workspace/odm/patches/zeromq-3.2.4-01.patch 
checking file src/mailbox.cpp
checking file src/mailbox.hpp
checking file src/mutex.hpp

And what was changed inside - complete zmq::mailbox_t::send and complete zmq::mailbox_t::recv methods. 

The changes between 3.2.4 and 4.0.4 for affected files are minor.

marikm at linux-lwt7:~/Downloads/zeromq-3.2.4> diff src/mailbox.cpp ../zeromq-4.0.4/src/mailbox.cpp
2,4c2
<     Copyright (c) 2009-2011 250bpm s.r.o.
<     Copyright (c) 2007-2009 iMatix Corporation
<     Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
---
>     Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
87d84
< 
marikm at linux-lwt7:~/Downloads/zeromq-3.2.4> diff src/mailbox.hpp ../zeromq-4.0.4/src/mailbox.hpp
2,4c2
<     Copyright (c) 2009-2011 250bpm s.r.o.
<     Copyright (c) 2007-2009 iMatix Corporation
<     Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
---
>     Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
48a47,53
> #ifdef HAVE_FORK
>         // close the file descriptors in the signaller. This is used in a forked
>         // child process to close the file descriptors so that they do not interfere
>         // with the context in the parent process.
>         void forked() { signaler.forked(); }
> #endif
>

By my opinion, the patch is applicable on 4.0.4 too but I have not tested it.

Regards, 
Slavek



More information about the zeromq-dev mailing list