cppzmq icon indicating copy to clipboard operation
cppzmq copied to clipboard

crash with `inproc` mode

Open navono opened this issue 3 years ago • 3 comments

OS: Win10 Version: cppzmq: 4.7.1

Follow the pubsub_multithread_inproc.cpp code, everything is OK, but if I move the subscriber to dll and when some conditions are met, exit the thread, then process crash.

I have a reproduce repo in here. Any suggestions?

mq1

mq2

navono avatar Jul 02 '21 12:07 navono

Dig some info in stackoverflow, not very precisely, but I guess is that the ctx value passed cross module caused. Currently, just change inproc to tcp also work(need change ctx io threads to non-zero value).

navono avatar Jul 02 '21 14:07 navono

I was sure I read somewhere that inproc:// is not supported on windows. Is it now supported?

jlucke86 avatar Jul 27 '21 08:07 jlucke86

@jlucke86 No, it's ipc, as mentioned here: http://api.zeromq.org/2-1:zmq-ipc

The inter-process transport is currently only implemented on operating systems that provide UNIX domain sockets.

aviallon avatar Nov 29 '21 13:11 aviallon