[zeromq-dev] Segfault while actively connect/disconnect tcp sockets

Martin Sustrik sustrik at 250bpm.com
Mon Oct 11 14:32:55 CEST 2010


Hi Pavel,

> I have upgraded zeromq in my system (Gentoo amd64) from some very old
> to 2.0.9. And now i got some problems with my apps. I figured next
> testcase:
> 1) consumer (http://pastebin.com/BkHbYbMv) creates upstream socket and
> binds it to tcp port
> 2) run simultaneously 10-20(http://pastebin.com/hXWnpVhG)
> producer(http://pastebin.com/tQxCkbtp) instances. Each instance
> creates downstream socket, connects it to consumer, and after small
> pause do disconnect.
> In this scenario consumer will crash with almost 100% probability on
> my system (laptop with 2Gb Ram, CPU Core 3i with enabled
> hyperthreading).

Can you check with current master? The whole shutdown mechanism was 
rewritten there.

Thanks.
Martin



More information about the zeromq-dev mailing list