[asterisk-bugs] [JIRA] (ASTERISK-26242) res_pjsip_endpoint_identifier_dpma crashing with bundled pjsip

xrobau (JIRA) noreply at issues.asterisk.org
Tue Jul 26 19:56:56 CDT 2016


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231587#comment-231587 ] 

xrobau edited comment on ASTERISK-26242 at 7/26/16 7:55 PM:
------------------------------------------------------------

Oddly enough, that was with our 2.1.1 build of DPMA.  We noticed that a new version had been published, so we upgraded to 3.0.1, and this is now the backtrace.

{code}
(gdb) where
#0  0x00007f7d1182e039 in pjsip_msg_find_hdr_by_name (msg=0x0, name=0x7f7cb32350a0, start=0x0)
    at ../src/pjsip/sip_msg.c:360
#1  0x00007f7cb3033319 in ?? ()
#2  0x00007f7d00007998 in ?? ()
#3  0x00007f7cd3759604 in ast_sip_identify_endpoint (rdata=0x7f7d00007998) at res_pjsip.c:2400
#4  0x00007f7cd37734cd in endpoint_lookup (rdata=0x7f7d00007998) at res_pjsip/pjsip_distributor.c:566
#5  0x00007f7d1183a295 in pjsip_endpt_process_rx_data (endpt=0x378dae8, rdata=0x7f7d00007998, p=0x7f7cd398ae80,
    p_handled=0x7f7cc2440b7c) at ../src/pjsip/sip_endpoint.c:886
#6  0x00007f7cd37730c1 in distribute (data=<value optimized out>) at res_pjsip/pjsip_distributor.c:765
#7  0x00000000005e8303 in ast_taskprocessor_execute (tps=0x3a327d8) at taskprocessor.c:938
#8  0x00000000005f1146 in execute_tasks (data=0x3a327d8) at threadpool.c:1322
#9  0x00000000005e8303 in ast_taskprocessor_execute (tps=0x37948f8) at taskprocessor.c:938
#10 0x00000000005ef491 in threadpool_execute (pool=0x3794aa8) at threadpool.c:351
#11 0x00000000005f0aa4 in worker_active (worker=0x7f7d04000d08) at threadpool.c:1105
#12 0x00000000005f0850 in worker_start (arg=0x7f7d04000d08) at threadpool.c:1024
#13 0x00000000005fc92c in dummy_start (data=0x7f7d04000c60) at utils.c:1235
#14 0x00007f7d0ff0caa1 in ?? ()
#15 0x00007f7cc2441700 in ?? ()
#16 0x0000000000000000 in ?? ()
(gdb)
{code}

Note that the actual stack frames are missing, because they've been stripped. It was really lucky that we happened to have a NON stripped version so we could find the issue straight away.



was (Author: xrobau):
Oddly enough, that was with our 2.1.1 build of DPMA.  We noticed that a new version had been published, so we upgraded to 3.0.0, and this is now the backtrace.

{code}
(gdb) where
#0  0x00007f7d1182e039 in pjsip_msg_find_hdr_by_name (msg=0x0, name=0x7f7cb32350a0, start=0x0)
    at ../src/pjsip/sip_msg.c:360
#1  0x00007f7cb3033319 in ?? ()
#2  0x00007f7d00007998 in ?? ()
#3  0x00007f7cd3759604 in ast_sip_identify_endpoint (rdata=0x7f7d00007998) at res_pjsip.c:2400
#4  0x00007f7cd37734cd in endpoint_lookup (rdata=0x7f7d00007998) at res_pjsip/pjsip_distributor.c:566
#5  0x00007f7d1183a295 in pjsip_endpt_process_rx_data (endpt=0x378dae8, rdata=0x7f7d00007998, p=0x7f7cd398ae80,
    p_handled=0x7f7cc2440b7c) at ../src/pjsip/sip_endpoint.c:886
#6  0x00007f7cd37730c1 in distribute (data=<value optimized out>) at res_pjsip/pjsip_distributor.c:765
#7  0x00000000005e8303 in ast_taskprocessor_execute (tps=0x3a327d8) at taskprocessor.c:938
#8  0x00000000005f1146 in execute_tasks (data=0x3a327d8) at threadpool.c:1322
#9  0x00000000005e8303 in ast_taskprocessor_execute (tps=0x37948f8) at taskprocessor.c:938
#10 0x00000000005ef491 in threadpool_execute (pool=0x3794aa8) at threadpool.c:351
#11 0x00000000005f0aa4 in worker_active (worker=0x7f7d04000d08) at threadpool.c:1105
#12 0x00000000005f0850 in worker_start (arg=0x7f7d04000d08) at threadpool.c:1024
#13 0x00000000005fc92c in dummy_start (data=0x7f7d04000c60) at utils.c:1235
#14 0x00007f7d0ff0caa1 in ?? ()
#15 0x00007f7cc2441700 in ?? ()
#16 0x0000000000000000 in ?? ()
(gdb)
{code}

Note that the actual stack frames are missing, because they've been stripped. It was really lucky that we happened to have a NON stripped version so we could find the issue straight away.


> res_pjsip_endpoint_identifier_dpma crashing with bundled pjsip
> --------------------------------------------------------------
>
>                 Key: ASTERISK-26242
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26242
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/General
>         Environment: FreePBX with Asterisk RPM 13.10
>            Reporter: xrobau
>
> The FreePBX Built asterisk RPM has switched to the embedded pjsip library. However, when the res_pjsip_endpoint_identifier_dpma module is loaded, asterisk crashes with the following backtrace.
> {code}
> (gdb) where
> #0  0x00007f58a5d7f039 in pjsip_msg_find_hdr_by_name (msg=0x0, name=0x7f58475480a0, start=0x0)
>     at ../src/pjsip/sip_msg.c:360
> #1  0x00007f58473466a9 in ?? () from /usr/lib64/asterisk/modules/res_pjsip_endpoint_identifier_dpma.so
> #2  0x00007f5893dcd604 in ast_sip_identify_endpoint (rdata=0x7f58540046e8) at res_pjsip.c:2400
> #3  0x00007f5893de74cd in endpoint_lookup (rdata=0x7f58540046e8) at res_pjsip/pjsip_distributor.c:566
> #4  0x00007f58a5d8b295 in pjsip_endpt_process_rx_data (endpt=0x229fe08, rdata=0x7f58540046e8, p=0x7f5893ffee80,
>     p_handled=0x7f5888860b7c) at ../src/pjsip/sip_endpoint.c:886
> #5  0x00007f5893de70c1 in distribute (data=<value optimized out>) at res_pjsip/pjsip_distributor.c:765
> #6  0x00000000005e8303 in ast_taskprocessor_execute (tps=0x2547e88) at taskprocessor.c:938
> #7  0x00000000005f1146 in execute_tasks (data=0x2547e88) at threadpool.c:1322
> #8  0x00000000005e8303 in ast_taskprocessor_execute (tps=0x22a6958) at taskprocessor.c:938
> #9  0x00000000005ef491 in threadpool_execute (pool=0x229e088) at threadpool.c:351
> #10 0x00000000005f0aa4 in worker_active (worker=0x7f5894002058) at threadpool.c:1105
> #11 0x00000000005f0850 in worker_start (arg=0x7f5894002058) at threadpool.c:1024
> #12 0x00000000005fc92c in dummy_start (data=0x7f58940017e0) at utils.c:1235
> #13 0x00007f58a445daa1 in ?? ()
> #14 0x00007f5888861700 in ?? ()
> #15 0x0000000000000000 in ?? ()
> (gdb)
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list