On Fri, Nov 19, 2010 at 4:28 AM, Martin Sustrik <sust...@250bpm.com> wrote:
> On 11/19/2010 01:08 PM, Martin Sustrik wrote:
>>
>> Hi Dhammika,
>>
>> I am trying to make sense from this, but I still don't see how it can
>> happen. Can you possibly run the same test with printing "unplugged" in
>> zmq_engine_t::unplug and "plugged" in zmq_engine_t::plug?
>>
>> That way we'll be sure that engine is deallocated while it's plugged in.
>
> Actually, it can't be that.
>
> There's:
>
>   zmq_assert (!plugged);
>
> in zmq_engine destructor. It would blow up if engine is deallocated while
> plugged in...
>
> I have no idea what's going on.
>


I think it's unplugged and passed to another thread, and second thread
is deleting it.
We do have two instances where we delete engines in process_attach().



Dhammika
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to