Changes between Version 3 and Version 4 of Ticket #1759
- Timestamp:
- Apr 21, 2014 5:30:16 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1759 – Description
v3 v4 1 1 Crash is reported to happen when adding media with STUN and ICE enabled. 2 2 3 Scenario: 4 1. When adding media, pjsua will create a new ICE media transport, and currently such transport creation for adding media is a synchronous operation, so technically there is busy waiting loop for STUN resolution etc. 5 1. While the transport creation process is ongoing (in the busy waiting loop), there is incoming BYE which clears the call states, and when the busy waiting loop is done, crash occurs as media transport ({{{call_med->tp}}}) is NULL. 3 6 4 Sample scenario: 5 * Thread 1 : add media, create ice transport 6 * Thread 2 : receive BYE, clean media 7 Reproducing steps: 8 1. make a call using pjsua app with ICE and STUN enabled 9 1. kill/block the STUN server 10 1. add video for the call, it will take time as the STUN server is off (optionally, set {{{PJ_STUN_RTO_VALUE}}} to 1000 to make it much longer) 11 1. send BYE from other endpoint 7 12 8 13 Thanks to Itay Bianco for the report.