[Home]

Summary:ASTERISK-27660: Segfault in pk_atomic_get while calling pjsip_transport_destroy
Reporter:Ross Beer (rossbeer)Labels:pjsip
Date Opened:2018-02-06 08:38:18.000-0600Date Closed:2018-07-12 10:09:34
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_pjsip
Versions:13.19.0 GIT Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Fedora 23Attachments:( 0) core-asterisk-4640-1517897068-thread1.txt
Description:Asterisk segfaults when destroying transport:

{noformat}
#0  0x00007f135754b8b2 in pj_atomic_get (atomic_var=0x0) at ../src/pj/os_core_unix.c:922
       oldval = 51419360
#1  0x00007f13574be47a in pjsip_transport_destroy (tp=0x7f10a5e8da58) at ../src/pjsip/sip_transport.c:1261
       state_cb = 0x7f1357553400 <pj_lock_release+46>
#2  0x00007f13574bdcfa in transport_idle_callback (timer_heap=0x31098e0, entry=0x7f10a5e8db50) at ../src/pjsip/sip_transport.c:969
       tp = 0x7f10a5e8da58
#3  0x00007f1357563636 in pj_timer_heap_poll (ht=0x31098e0, next_delay=0x7f10b7efcd20) at ../src/pj/timer.c:658
       node = 0x7f10a5e8db50
       node_timer_id = -1
       grp_lock = 0x0
       now = {sec = 5203338, msec = 483}
       count = 6
{noformat}
Comments:By: Asterisk Team (asteriskteam) 2018-02-06 08:38:19.306-0600

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: George Joseph (gjoseph) 2018-02-08 13:16:12.015-0600

Can you double check that you're not running any of the transport debug patches I gave you for the TLS issue?

By: Ross Beer (rossbeer) 2018-07-12 10:09:34.892-0500

Fixed in latest version