[zeromq-dev] zmq_term can not safely be re-entered with pgm transport
Steven McCoy
steven.mccoy at miru.hk
Sun Jul 22 17:24:18 CEST 2012
Almost right, Toralf waiting on the Jira case to fix.
https://zeromq.jira.com
-if (!rc && en == EINTR) {
+if (!rc || en != EINTR) {
--
Steve-o
On 22 July 2012 10:46, Steven McCoy <steven.mccoy at miru.hk> wrote:
> Plus its a similar problem with Windows. Pre-emptive patch attached.
>
> --
> Steve-o
>
>
> On 22 July 2012 07:39, Pieter Hintjens <ph at imatix.com> wrote:
>
>> Hi Toralf,
>>
>> Thanks for spotting this. Would you like to create an issue for this
>> in our issue tracker?
>>
>> And, if you have time, fix this and send us pull requests?
>>
>> Cheers
>> Pieter
>>
>> On Sat, Jul 21, 2012 at 5:03 PM, Toralf Wittner <tw at dtex.org> wrote:
>> > According to the man page of zmq_term, it should be safe to re-enter
>> > zmq_term if it previously returned with EINTR. This is actually not
>> > true if used with OpenPGM. zmq_term invokes pgm_shutdown which is
>> > reading and modifying the static variable pgm_ref_count and will
>> > return FALSE on second invocation which makes zmq_term abort with
>> > "Assertion failed: false (zmq.cpp:185)". This affects version 2.2 as
>> > well as 3.2.
>> >
>> > -- Toralf
>> > _______________________________________________
>> > zeromq-dev mailing list
>> > zeromq-dev at lists.zeromq.org
>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>> >
>> _______________________________________________
>> zeromq-dev mailing list
>> zeromq-dev at lists.zeromq.org
>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20120722/e9069491/attachment.htm>
More information about the zeromq-dev
mailing list