Changes between Initial Version and Version 1 of Ticket #1316


Ignore:
Timestamp:
Jun 22, 2011 10:55:48 AM (8 years ago)
Author:
bennylp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1316 – Description

    initial v1  
    11TURN session may get deallocated prematurely for several reasons, for example if iPhone application is suspended in the background and unable to refresh the allocation in timely manner. 
    22 
    3 This may cause assertion the following assertion: 
     3Sample 1 of the assertion: 
    44 
    55{{{ 
    66pjnath/turn_sock.c:433: 
    77PJ_ASSERT_RETURN(turn_sock && addr && addr_len, PJ_EINVAL); 
     8 
     9Stack trace: 
     100   libsystem_kernel.dylib              0x3558fa1c __pthread_kill + 8 
     111   libsystem_c.dylib                   0x356663b4 pthread_kill + 52 
     122   libsystem_c.dylib                   0x3565ebf8 abort + 72 
     133   libsystem_c.dylib                   0x3568c6d4 __assert_rtn + 140 
     144   bababoo                             0x001aeefc pj_turn_sock_sendto + 44 
     155   bababoo                             0x001a5cce pj_ice_strans_sendto + 194 
     166   bababoo                             0x0019ba34 transport_send_rtp + 72 
     177   bababoo                             0x0019d398 transport_send_rtp + 120 
    818}}} 
    919 
    1020 
     21Sample 2: 
     22{{{ 
     23pjnath/turn_sock.c:622: 
     24pj_assert(!"We should shutdown gracefully"); 
     25 
     26Stack trace: 
     27#0  0x358cda1c in __pthread_kill () 
     28#1  0x359a43ba in pthread_kill () 
     29#2  0x3599cbfe in abort () 
     30#3  0x359ca6da in __assert_rtn () 
     31#4  0x001af292 in turn_on_send_pkt () 
     32#5  0x001ad70c in stun_on_send_msg () 
     33#6  0x001ab702 in stun_tsx_on_send_msg () 
     34#7  0x001acdb0 in tsx_transmit_msg () 
     35#8  0x001acfc2 in pj_stun_client_tsx_send_msg () 
     36#9  0x001aba40 in pj_stun_session_send_msg () 
     37#10 0x001adfd0 in pj_turn_session_set_perm () 
     38#11 0x001aed72 in pj_turn_session_sendto () 
     39#12 0x001aef36 in pj_turn_sock_sendto () 
     40#13 0x001a5cf4 in pj_ice_strans_sendto () 
     41#14 0x0019ba5a in transport_send_rtp () 
     42}}} 
     43