[Home]

Summary:ASTERISK-26112: res_pjsip: Crash when unlocking dialog in distributor
Reporter:Ross Beer (rossbeer)Labels:
Date Opened:2016-06-13 11:06:23Date Closed:2016-09-30 08:58:55
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_pjsip
Versions:SVN Frequency of
Occurrence
Frequent
Related
Issues:
Environment:CentOS 6.5Attachments:( 0) backtrace_2016-07-07T10_53_12_CLEAN.txt
( 1) backtrace_in01_2016-06-13T16_02_41_CLEAN.txt
( 2) backtrace_inbound03_2016-06-27T16_17_20_CLEAN.txt
( 3) backtrace-2016-07-11T11_40_24_CLEAN.txt
Description:Asterisk crashes when attempting unlock in dialog:

#0  __pthread_mutex_unlock_usercnt (mutex=0x0) at pthread_mutex_unlock.c:289
289 {
#0  __pthread_mutex_unlock_usercnt (mutex=0x0) at pthread_mutex_unlock.c:289
       type = <value optimized out>
#1  __pthread_mutex_unlock (mutex=0x0) at pthread_mutex_unlock.c:290
No locals.
#2  0x00002b773a941c01 in pj_mutex_unlock (mutex=0x0) at ../src/pj/os_core_unix.c:1323
       status = <value optimized out>
#3  0x00002b7738e0a3a9 in pjsip_dlg_dec_lock (dlg=0x2b78e400de18) at ../src/pjsip/sip_dialog.c:937
Comments:By: Asterisk Team (asteriskteam) 2016-06-13 11:06:24.154-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Ross Beer (rossbeer) 2016-06-13 11:25:59.738-0500

This looks to be related to a 408 Request Timeout.

Could this be resolved in  'res_pjsip_session.c: Reorganize ast_sip_session_terminate()' in gerrit?

By: Joshua C. Colp (jcolp) 2016-06-13 11:29:18.068-0500

[~rossbeer] Can you also attach some of the log output before the crash?

By: Ross Beer (rossbeer) 2016-06-13 11:33:18.083-0500

There isn't anything significant, just:

[Jun 13 16:02:05] ERROR[6912] chan_pjsip.c: Unable to create PJSIP channel - endpoint '<<Name Removed>' was not found
[Jun 13 16:02:05] WARNING[4671][C-0000ab93] app_dial.c: Unable to create channel of type 'PJSIP' (cause 3 - No route to destination)

By: Joshua C. Colp (jcolp) 2016-06-13 11:35:18.238-0500

There may not seem to be anything but it can give an idea of what is going on and the code paths in use.

By: Ross Beer (rossbeer) 2016-06-27 10:42:28.064-0500

Another backtrace for the same issue

By: Ross Beer (rossbeer) 2016-06-27 10:59:10.121-0500

This happens more frequently with the latest GIT commit for PJSIP:

https://trac.pjsip.org/repos/changeset/5357

By: Ross Beer (rossbeer) 2016-07-07 05:21:08.140-0500

Additional crash information