[zeromq-dev] Something's broken in session_base or there's something I really ought to know about multithreading.
Pieter Hintjens
ph at imatix.com
Mon Jan 14 18:14:31 CET 2013
On Mon, Jan 14, 2013 at 1:56 PM, Claudio Carbone <erupter at libero.it> wrote:
> If I just pass a void pointer to the zmq context, all is fine.
> If I pass a pointer to my struct (with explicit castings on both sides), the
> problems shows its head.
The code doesn't appear to be sharing the structure between threads so
it could be an alignment issue.
However, it's a complex test case to test that problem.
My advice is to (a) determine what is actually wrong with the
structure passed to the child thread, i.e., which fields are corrupted
and when; and (b) strip this down to a much simpler test case (it's
not a pgm issue at all, is it?) and (c) please use a pastebin or gist,
because source code in emails is hard to play with.
-Pieter
More information about the zeromq-dev
mailing list