Deadlock when using ICE/TURN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

With the aid of the Borland debugger, I?ve found a deadlock situation between two threads when using the latest pjsip 2.0 code from SVN (checked out April 1st).  The issue is similar to the one fixed in ticket 1451.

Thread 1 attempting to send a packet:
- ice_strans.c: pj_ice_strans_sendto (line 1191) acquires turn socket lock
- ioqueue_common_abs.c: pj_ioqueue_send (line 906) attempts to acquire key mutex

Thread 2 receives a packet:
- ioqueue_common_abs.c: ioqueue_dispatch_read_event (line 418) acquires key mutex
- turn_sock.c: on_data_read (line 548) attempts to acquire turn socket lock

Regards,
Jonathan Martin
AKCode LLC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120403/577912f8/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux