(symbian)The pjsip crash when calling pjsua_destroy();

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

 






Hi all.

I coded my app by imitating symbian_ua. Register was ok.During I were talking  
with someone by my app,and then suddenly WIFI couldn't be used,the pjsip 
crashed. I debuged the pjsip. after the connection was lost , my sip called  
pj_symbianos_set_connection_status(PJ_FALSE) and  pjsua_destroy().the app 
crashed when calling pjsua_destroy().

1 . At View Debug window(carbide c++)View Disassembly window, the below is 
shown:

Thread [Thread id: 1164] (Suspended: Signal 'Exception 0' received. Description: 
A data abort exception has occurred..)    

    6 tsx_destroy()  
F:\Symbian\Carbide\workspace\pjproject-1.7\pjsip\src\pjsip\sip_transaction.c:1038
 0x792e9130    

    5 tsx_set_state() 
F:\Symbian\Carbide\workspace\pjproject-1.7\pjsip\src\pjsip\sip_transaction.c:1171
 0x792e9518    

    4 tsx_on_state_terminated() 
F:\Symbian\Carbide\workspace\pjproject-1.7\pjsip\src\pjsip\sip_transaction.c:3149
 0x792ecd7c    

    3 tsx_timer_callback() 
F:\Symbian\Carbide\workspace\pjproject-1.7\pjsip\src\pjsip\sip_transaction.c:1076
 0x792e927e    

    2 CPjTimerEntry::RunL() 
F:\Symbian\Carbide\workspace\pjproject-1.7\pjlib\src\pj\timer_symbian.cpp:254 
0x793700aa    

    1 Unknown (0x80295108)()  0x80295108    

2. the app can't get out of the loop below,in tsx_destroy() . 
(F:\Symbian\Carbide\workspace\pjproject-1.7\pjsip\src\pjsip\sip_transaction.c:1038):

    lck = (struct tsx_lock_data*) pj_thread_local_get(pjsip_tsx_lock_tls_id);
    while (lck) {
    if (lck->tsx == tsx) {    //here,always loop
        lck->is_alive = 0;
    }
    lck = lck->prev;
    }
at View Disassembly window, the below is shown:

    if (lck->tsx == tsx) {
0x792e9126 <tsx_destroy>:     mov   r3,r7
0x792e9128 <tsx_destroy+2>:   sub   r3,#12
0x792e912a <tsx_destroy+4>:   ldr   r3,[r3,#0]
0x792e912c <tsx_destroy+6>:   mov   r2,r7
0x792e912e <tsx_destroy+8>:   sub   r2,#8
0x792e9130 <tsx_destroy+10>:  ldr   r1,[r3,#4]
0x792e9132 <tsx_destroy+12>:  ldr   r3,[r2,#0]
0x792e9134 <tsx_destroy+14>:  cmp   r1,r3
0x792e9136 <tsx_destroy+16>:  bne   tsx_destroy+0x16e (0x792e9142); 0x792e9142
        lck->is_alive = 0;
0x792e9138 <tsx_destroy+18>:  mov   r3,r7
0x792e913a <tsx_destroy+20>:  sub   r3,#12
0x792e913c <tsx_destroy+22>:  ldr   r2,[r3,#0]
0x792e913e <tsx_destroy+24>:  mov   r3,#0
0x792e9140 <tsx_destroy+26>:  str   r3,[r2,#8]

Can anyone help me with this?


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101105/40e721c5/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