1.vid head loop forever; 2. dead lock when i use tcp transport!

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

 



1. Copy all the via headers when via is not first will be loop forever!?


--- pjsip/src/pjsip/sip_util.c	(revision 4955)
+++ pjsip/src/pjsip/sip_util.c	(working copy)
@@ -536,7 +536,7 @@
 
 	pjsip_msg_add_hdr( msg, (pjsip_hdr*)new_via);
 	via = via->next;
-	if (via != (void*)&req_msg->hdr)
+	if (via != top_via && via != (void*)&req_msg->hdr)
 	    via = (pjsip_via_hdr*) 
 	    	  pjsip_msg_find_hdr(req_msg, PJSIP_H_VIA, via);
 	else?





2. dead lock when i use tcp transport.


Thread 25 (Thread 0x7fc4d404e700 (LWP 3919)):
#0  0x00007fc4f02cf264 in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007fc4f02ca523 in _L_lock_892 () from /lib64/libpthread.so.0
#2  0x00007fc4f02ca407 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3  0x0000000000464b76 in pj_mutex_lock ()
#4  0x000000000046a871 in grp_lock_acquire ()
#5  0x00000000004410bb in pjsip_tsx_send_msg ()
#6  0x00000000004435ce in pjsip_dlg_send_response ()
#7  0x000000000044c00c in pjsip_inv_send_msg ()
#8  0x00000000004261f3 in syt_sip_session_terminate ()
#9  0x000000000040f6c3 in syt_session_timinate ()
#10 0x0000000000419409 in syt_ctrl_on_state_null ()
#11 0x0000000000419b68 in syt_ctrl_session_init_request ()
#12 0x0000000000419dda in syt_ctrl_session_init ()
#13 0x000000000040fb8e in syt_session_incoming_request ()
#14 0x0000000000423822 in handle_incoming_request ()
#15 0x00000000004246cc in session_new ()
#16 0x0000000000424bda in syt_session_new_invite_proc ()
#17 0x00000000004201f9 in syt_pjsip_worker ()
#18 0x000000000046541a in thread_main ()
#19 0x00007fc4f02c89d1 in start_thread () from /lib64/libpthread.so.0
#20 0x00007fc4ef3ccb6d in clone () from /lib64/libc.so.6


Thread 10 (Thread 0x7fc4c9531700 (LWP 3934)):
#0  0x00007fc4f02cf264 in __lll_lock_wait () from /lib64/libpthread.so.0
#1  0x00007fc4f02ca523 in _L_lock_892 () from /lib64/libpthread.so.0
#2  0x00007fc4f02ca407 in pthread_mutex_lock () from /lib64/libpthread.so.0
#3  0x0000000000464b76 in pj_mutex_lock ()
#4  0x0000000000442c92 in pjsip_dlg_inc_lock ()
#5  0x0000000000443428 in pjsip_dlg_on_tsx_state ()
#6  0x000000000043edcb in tsx_set_state ()
#7  0x0000000000440e37 in send_msg_callback ()
#8  0x000000000043328f in send_response_transport_cb ()
#9  0x0000000000439183 in transport_send_callback ()
#10 0x000000000043b418 in on_data_sent ()
#11 0x000000000043c462 in on_connect_complete ()
#12 0x0000000000462984 in ioqueue_dispatch_exception_event ()
#13 0x0000000000463bd7 in pj_ioqueue_poll ()
#14 0x00000000004323b2 in pjsip_endpt_handle_events2 ()
#15 0x0000000000420187 in syt_pjsip_thread ()
#16 0x000000000046541a in thread_main ()
#17 0x00007fc4f02c89d1 in start_thread () from /lib64/libpthread.so.0
#18 0x00007fc4ef3ccb6d in clone () from /lib64/libc.so.6?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141201/2cfa4d59/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