Changes between Version 3 and Version 4 of Ticket #1759


Ignore:
Timestamp:
Apr 21, 2014 5:30:16 AM (10 years ago)
Author:
nanang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1759 – Description

    v3 v4  
    11Crash is reported to happen when adding media with STUN and ICE enabled. 
    22 
     3Scenario: 
     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. 
    36 
    4 Sample scenario: 
    5 * Thread 1 : add media, create ice transport 
    6 * Thread 2 : receive BYE, clean media 
     7Reproducing 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 
    712 
    813Thanks to Itay Bianco for the report.