Crash when a message is received

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

 



Hi Benny,

It seems the issue comes with this response. It's the last log before crash.

22:27:08.385   pjsua_core.c  RX 543 bytes Response msg 
200/SUBSCRIBE/cseq=16249 (rdata0x877fbc) from tcp 213.215.YY.YY:5060 
<http://213.215.45.230:5060>:
SIP/2.0 200 OK
Via: SIP/2.0/TCP 
XX.XX.XX.XX:50211;received=82.240.12.56;rport=50211;branch=z9hG4bKPjzq70YZtoVq-wyy5-8.26coPD28jVKWNn
Record-Route: <sip:213.215.YY.YY;r2=on;lr=on>
Record-Route: <sip:213.215.YY.YY;transport=tcp;r2=on;lr=on>
From: sip:name@xxxxxxxxxx 
<mailto:sip%3Asamuelv at ippi.fr>;tag=cg2qmYqX1eyOXTN.6EJJrIyDJbekB8WL
To: sip:name at serveur.fr <mailto:sip%3Asamuelv at ippi.fr>;tag=as16120b05
Call-ID: WGasDDQhDvLOKZkMJyml9gp54pRzXyCx
CSeq: 16249 SUBSCRIBE
User-Agent: Asterisk PBX
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY
Expires: 0
Content-Length: 0


--end msg--

Best regards

Samuel

Le 19/10/10 16:29, Benny Prijono a ?crit :
> Hi Samuel,
>
> that sounds bad. If you have the captured request message that crashed
> pjsua that would help us reproduce it faster.
>
> Best regards,
>   Benny
>
>
>
>
> On Tue, Oct 19, 2010 at 5:53 AM, Samuel Vinson<samuelv at laposte.net>  wrote:
>>   Hi,
>>
>> I updated pjsip to the last svn version. I compiled them on iphone and I
>> tried my app and ipjsua. In both cases app crashes (login or first call). I
>> believe this issue comes when app receives a message. It seems this issue
>> arrive with compilation option -Os and not with -O0.
>>
>> #0  0x351fcf38 in memmove ()
>> #1  0x0002032c in pj_memcpy (dst=<value temporarily unavailable, due to
>> optimizations>, src=<value temporarily unavailable, due to optimizations>,
>> size=<value temporarily unavailable, due to optimizations>) at string.h:634
>> #2  0x00020724 in pj_strdup (pool=<value temporarily unavailable, due to
>> optimizations>, dst=0x849c38, src=0x7cc9724) at string_i.h:41
>> #3  0x0005bdf0 in pjsip_generic_array_hdr_clone (pool=0x8d8400,
>> rhs=0x7cc9700) at ../src/pjsip/sip_msg.c:937
>> #4  0x00074954 in pjsip_dlg_set_remote_cap_hdr (dlg=0x8d8464,
>> cap_hdr=0x7cc9700) at ../src/pjsip/sip_dialog.c:2159
>> #5  0x00074adc in pjsip_dlg_update_remote_cap (dlg=0x8d8464, msg=0x8d4d8c,
>> strict=-1) at ../src/pjsip/sip_dialog.c:2071
>> #6  0x000766a8 in pjsip_dlg_on_rx_response (dlg=0x8d8464, rdata=0x8d3c14) at
>> ../src/pjsip/sip_dialog.c:1786
>> #7  0x000785b8 in mod_ua_on_rx_response (rdata=0x8d3c14) at
>> ../src/pjsip/sip_ua_layer.c:892
>> #8  0x0007073c in tsx_set_state (tsx=0x90ac64,
>> state=PJSIP_TSX_STATE_PROCEEDING, event_src_type=PJSIP_EVENT_RX_MSG,
>> event_src=0x8d3c14) at ../src/pjsip/sip_transaction.c:1138
>> #9  0x00071cc0 in tsx_on_state_proceeding_uac (tsx=0x90ac64,
>> event=0x7cc9904) at ../src/pjsip/sip_transaction.c:2841
>> #10 0x00071f1c in pjsip_tsx_recv_msg (tsx=0x90ac64, rdata=0x8d3c14) at
>> ../src/pjsip/sip_transaction.c:1690
>> #11 0x00072d48 in mod_tsx_layer_on_rx_response (rdata=0x8d3c14) at
>> ../src/pjsip/sip_transaction.c:852
>> #12 0x00064d68 in endpt_on_rx_msg (endpt=0x88c064, status=<value temporarily
>> unavailable, due to optimizations>, rdata=0x8d3c14) at
>> ../src/pjsip/sip_endpoint.c:927
>> #13 0x00069dd8 in pjsip_tpmgr_receive_packet (mgr=0x852a54, rdata=0x8d3c14)
>> at ../src/pjsip/sip_transport.c:1510
>> #14 0x0006abdc in udp_on_read_complete (key=0x88cd18, op_key=<value
>> temporarily unavailable, due to optimizations>, bytes_read=454) at
>> ../src/pjsip/sip_transport_udp.c:171
>> #15 0x00016b98 in ioqueue_dispatch_read_event (ioqueue=0x88c730, h=0x88cd18)
>> at ioqueue_common_abs.c:559
>> #16 0x000171e8 in pj_ioqueue_poll (ioqueue=0x88c730, timeout=<value
>> temporarily unavailable, due to optimizations>) at
>> ../src/pj/ioqueue_select.c:902
>> #17 0x000646d4 in pjsip_endpt_handle_events2 (endpt=0x88c064,
>> max_timeout=0x7cc9f98, p_count=0x7cc9fa0) at ../src/pjsip/sip_endpoint.c:719
>> #18 0x000959b0 in pjsua_handle_events (msec_timeout=<value temporarily
>> unavailable, due to optimizations>) at ../src/pjsua-lib/pjsua_core.c:1506
>> #19 0x000971b4 in worker_thread (arg=<value temporarily unavailable, due to
>> optimizations>) at ../src/pjsua-lib/pjsua_core.c:567
>> #20 0x0001850c in thread_main (param=<value temporarily unavailable, due to
>> optimizations>) at ../src/pj/os_core_unix.c:492
>> #21 0x3527598c in _pthread_start ()
>> #22 0x3526b0ec in thread_start ()
>>
>> any ideas ?
>>
>> Samuel
>>
>> _______________________________________________
>> Visit our blog: http://blog.pjsip.org
>>
>> pjsip mailing list
>> pjsip at lists.pjsip.org
>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
>

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