[asterisk-bugs] [JIRA] (ASTERISK-23129) segfault in res_pjsip_pubsub.so

Kevin Harwell (JIRA) noreply at issues.asterisk.org
Thu Jan 23 16:53:03 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23129?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Harwell updated ASTERISK-23129:
-------------------------------------

    Attachment: ASTERISK-23129.diff

Adding patch that hopefully resolves the crash.  What seems to be happening is if a subscription has been terminated and the subscription timeout/expires is less than the time it takes for all pending transactions (currently on the subscription) to end then the subscription timer will not have been canceled yet and sub will be null.


Really though the expiration timer on the subscription should be canceled immediately upon the subscription being terminated, but this will more than likely require a change to the pjproject source.  However, since the subscription has already been canceled nothing needs to be done so a null check in the asterisk code should be sufficient in working around this problem.

                
> segfault in res_pjsip_pubsub.so
> -------------------------------
>
>                 Key: ASTERISK-23129
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23129
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_pubsub
>    Affects Versions: SVN, 12.0.0
>         Environment: debian
>            Reporter: Dan Jenkins
>            Assignee: Kevin Harwell
>         Attachments: ASTERISK-23129.diff, backtrace-2.txt, backtrace.txt, gdb debugging on backtrace-2.txt, moar debugging from process exiting.txt
>
>
> SVN-branch-12-r405131 died at some point last night.
> Running dmesg gives me
> [7296736.015060] asterisk[7629]: segfault at 10 ip 00007feff0df441c sp 00007fefef92cdb0 error 4 in res_pjsip_pubsub.so[7feff0df1000+8000]
> I'm currently running Asterisk within gdb but it may be a while before it stops with the error
> Also, not sure if its relevant but the last thing in /var/log/messages was:
> [2014-01-09 23:55:28] ERROR[7629] astobj2.c: user_data is NULL

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list