[asterisk-bugs] [JIRA] (ASTERISK-26623) res_pjsip: Crash when calling PJSIPShowEndpoint

Friendly Automation (JIRA) noreply at issues.asterisk.org
Tue Feb 28 13:35:10 CST 2017


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

Friendly Automation commented on ASTERISK-26623:
------------------------------------------------

Change 5097 merged by zuul:
res_pjsip: Fix crash when contact has no status

[https://gerrit.asterisk.org/5097|https://gerrit.asterisk.org/5097]

> res_pjsip: Crash when calling PJSIPShowEndpoint
> -----------------------------------------------
>
>                 Key: ASTERISK-26623
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26623
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip
>    Affects Versions: 14.2.0
>         Environment: linux x64
>            Reporter: Jørgen H
>            Assignee: Unassigned
>         Attachments: bt_original.txt, bt.txt, patch.diff
>
>
> Crash caused by AMI PJSIPShowEndpoint call
> Race condition? Looks like status object is null when calling ast_str_append on line 1252 of res/res_pjsip/pjsip_options.c
> Backtrace excerpt:
> {noformat}
> #0  format_contact_status (obj=obj at entry=0x7f6436c41158, arg=arg at entry=0x7f6439c26060, flags=flags at entry=0) at res_pjsip/pjsip_options.c:1252
>         wrapper = 0x7f6436c41158
>         contact = 0x7f6436bf4528
>         ami = 0x7f6439c26060
>         status = 0x0
>         buf = 0x7f6437de0fa0
>         endpoint = 0x7f64378f7428
>         __PRETTY_FUNCTION__ = "format_contact_status"
> #1  0x00007f64e4a0f518 in ast_sip_for_each_contact (aor=0x7f643772d5f0, on_contact=0x7f64e49f8ab0 <format_contact_status>, arg=0x7f6439c26060) at res_pjsip/location.c:674
>         contact = 0x7f6436bf4528
>         wrapper = 0x7f6436c41158
>         aor_id = 0x7f6434e8b4b0 "xxxxxxxx"
>         contacts = 0x7f64482bba38
>         i = {c = 0x7f64482bba38, last_node = 0x7f6436bae668, complete = 0, flags = 0}
>         res = 0
>         object = 0x7f6436bf4528
>         __PRETTY_FUNCTION__ = "ast_sip_for_each_contact"
> {noformat}
> [Edit by Rusty - removed rest of BT and copied the whole thing to bt_original.txt. Please don't include large chunks of debug in the description field]



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



More information about the asterisk-bugs mailing list