[snmp] deadlock when destroying a context

Tim Panton thp at westhawk.co.uk
Fri Jan 26 14:18:43 GMT 2007


On 26 Jan 2007, at 14:08, Josh Bers wrote:

> Hi Tim,
>
> Here's some code snippets. Good luck reproducing it... It seems to  
> occur
> when one thread is sending trap PDU's while another tries to  
> destroy the
> context. I put a delay between my last trap send and the destroy  
> and haven't
> seen it again.. (see lines marked // **uncomment to fix deadlock).

Ah, that makes sense - traps don't behave like other PDUs in that
there is no retry so the Transmitter can be destroyed immediately
after the first send() .

I can from the code how it happens, but a tidy fix will have to wait  
'till
next week!

Tim.




More information about the snmp mailing list