[zeromq-dev] zero MQ 2.0 app remote shutdown when probing port with nmap.

Skrzyniarz Alexandre alexandre.skrzyniarz at fr.thalesgroup.com
Mon Sep 14 12:27:58 CEST 2009


Sorry, I forgot to mention the platform.

It's linux (kernel 2.6.26-1-686 from debian).


Frank Denis wrote:
> Le Mon, Sep 14, 2009 at 11:46:30AM +0200, Skrzyniarz Alexandre ecrivait :
>   
>> Hello.
>>
>> Probing a port used by a zmq application causes application shutdown:
>>
>> ./local_lat lo:5555 1 1
>> nmap -p 5555 -P0 localhost
>> --->
>> Assertion failed: false (zmq_listener_init.cpp:95)
>> Aborted
>>     
>
>   Is it on FreeBSD?
>   
>   This is typical of FreeBSD, that doesn't return return an error in
> accept() but doesn't fill the sockaddr structure either.
>
>   So you need to check that the protocol (in the structure) is valid before
> considering that the socket is useable.
>
> --
> Frank Denis - j [at] pureftpd.org - http://00f.net - http://www.cotery.com
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>   




More information about the zeromq-dev mailing list