[zeromq-dev] zmq_msg_get('User-Id') on XPUB subscribe/unsubscribe messages raises Invalid argument exception (pyzmq)

Tomas Krajca tomas at repositpower.com
Fri Oct 31 06:10:59 CET 2014


Hi Pieter,

I managed to quickly modify the test_metadata.cpp test in libzmq master 
to demonstrate the issue (at least I believe it demonstrates it but I am 
not very experienced with C/C++).

The code is here http://pastebin.com/9q131Ebx, it's basically 
https://github.com/zeromq/libzmq/blob/master/tests/test_metadata.cpp 
with DEALER-DEALER modified to SUB-XPUB and a few other minor 
modifications. I get segmentation fault on line 103 when running the test.

The original libzmq test without any modifications passes.

Thanks,
Tomas

On 10/31/2014 10:31 AM, Tomas Krajca wrote:
> Thanks Pieter, I'll try to put a C test case together some time next
> week (I haven't written any C in years :). This is not hugely urgent,
> unfortunately there are many other deadlines at work at the moment.
>
> Cheers,
> Tomas
>
> On 10/28/2014 10:00 PM, zeromq-dev-request at lists.zeromq.org wrote:
>> Send zeromq-dev mailing list submissions to
>>     zeromq-dev at lists.zeromq.org
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>>     http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>> or, via email, send a message with subject or body 'help' to
>>     zeromq-dev-request at lists.zeromq.org
>>
>> You can reach the person managing the list at
>>     zeromq-dev-owner at lists.zeromq.org
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of zeromq-dev digest..."
>>
>>
>> Today's Topics:
>>
>>     1. Re: Failed to unbind socket (which was bind with wild-card *)
>>        with real endpoint (Patryk)
>>     2. zmq_msg_get('User-Id') on XPUB subscribe/unsubscribe messages
>>        raises Invalid argument exception (pyzmq) (Tomas Krajca)
>>     3. Re: zmq_msg_get('User-Id') on XPUB subscribe/unsubscribe
>>        messages raises Invalid argument exception (pyzmq) (Pieter
>> Hintjens)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 27 Oct 2014 14:31:22 +0100
>> From: Patryk <lysy.loren at gmail.com>
>> Subject: Re: [zeromq-dev] Failed to unbind socket (which was bind with
>>     wild-card *) with real endpoint
>> To: ZeroMQ development list <zeromq-dev at lists.zeromq.org>
>> Message-ID:
>>     <CAK73Anj4G6JxmU+q0hUsx2tT0jo+kMVY=EDhHyUppmwc+Yxu7w at mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> On Mon, Oct 27, 2014 at 9:43 AM, Pieter Hintjens <ph at imatix.com> wrote:
>>
>>> It's a fair point. Would you like to look into the code and propose a
>>> patch?
>>>
>>>
>> I've made pull request #1229 on github.
>> If this changess will be accepted, please note, that it introduces
>> backward
>> incompatible changes with previous versions. Unbinding with wild-card
>> address
>> will be no more possible. So it should be pointed out clearly in relese
>> notes
>> and/or other documentation.
>> Nevertheless i think is a good step in 0MQ API clearance.
>>



More information about the zeromq-dev mailing list