[asterisk-bugs] [JIRA] (ASTERISK-25295) res_pjsip crash - pjsip_uri_get_uri at /usr/include/pjsip/sip_uri.h
Kevin Harwell (JIRA)
noreply at issues.asterisk.org
Thu Aug 27 17:05:33 CDT 2015
[ https://issues.asterisk.org/jira/browse/ASTERISK-25295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=227384#comment-227384 ]
Kevin Harwell commented on ASTERISK-25295:
------------------------------------------
I've been looking into this issue some and like Mark have been unable to reproduce the REGISTER problem. Does the contact uri for the following case actually contain the "=" at the end after "X-PUSH-URI"?
{noformat}
[2015-07-30 12:18:20] VERBOSE[22319] res_pjsip_registrar.c: Added contact 'sip:wiseua at 195.69.202.35:31382;rinstance=e770d0cd5972231a;X-PUSH-URI=
{noformat}
I ask because when copying that line into another editor right after the "=" there is also a non printable character (you can also see it in the verbose log output when looking at the file). If those are added characters then it's likely that a buffer is not being properly NULL terminated or as Mark mentioned the buffer is being used improperly after a failure has occurred.
[~Demon] any luck on getting a REGISTER packet? It would hopefully show us if there is anything odd in the incoming message.
Also you asked:
{quote}
Length important?
{quote}
It looks like the max length for the contact URI is 256
> res_pjsip crash - pjsip_uri_get_uri at /usr/include/pjsip/sip_uri.h
> -------------------------------------------------------------------
>
> Key: ASTERISK-25295
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-25295
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Resources/res_pjsip
> Affects Versions: 13.4.0
> Reporter: Dmitriy Serov
> Assignee: Kevin Harwell
> Attachments: 2015_08_10__20_38_07.backtrace-threads.txt, 2015_08_10__20_38_07.full.tail.txt, 2015_08_10__20_58_07.backtrace-threads.txt, 2015_08_10__20_58_07.full.tail.txt, backtrace.2015-07-30-1.txt, backtrace.2015-07-30-2.txt, backtrace.2015-07-30-3.txt, backtrace.2015-07-30-5.txt, core.back-trace.txt, debuglog.txt, full.2015-07-30-1.txt, full.2015-07-30-2.txt, full.2015-07-30-3.txt, full.2015-07-30-5.txt
>
>
> Using last git branch 13. Now is 13.5-rc.
> Tired of fighting with deadlock when using chan_sip. Decided to convert all the devices and the gateways to res_pjsip.
> The result was crash very often. When asterisk boots. Sometimes asterisk successfully loaded and crash in a few minutes.
> In the configs, nothing has changed except transfer chan_sip devices to res_pjsip.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list