[asterisk-bugs] [JIRA] Commented: (ASTERISK-20145) Segfault in iax_pvt_callid_get

Jonathan Rose (JIRA) noreply at issues.asterisk.org
Fri Jul 20 14:12:21 CDT 2012


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

Jonathan Rose commented on ASTERISK-20145:
------------------------------------------

This was just a bad assumption on my part. I think I must have thought that taking the lock meant a channel was in that position. Looking at where I had invoked iax_pvt_callid_get, it's pretty clear that this isn't the case and it's still possible for a call to 'arrive for a nonexistent destination'.

Fix is trivial, I just need to check for the presence of the channel before trying to get a call ID out of it.

> Segfault in iax_pvt_callid_get
> ------------------------------
>
>                 Key: ASTERISK-20145
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20145
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_iax2
>    Affects Versions: SVN
>            Reporter: Birger "WIMPy" Harzenetter
>         Attachments: pastebin
>
>
> This happened after a call was terminated.
> I have no idea what contributed to this happening and cannot reproduce, but a segfault is always bad.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list