[asterisk-bugs] [JIRA] (ASTERISK-23599) ARI: Crash when unsubscribing from bridge

Matt Jordan (JIRA) noreply at issues.asterisk.org
Mon Apr 7 14:31:19 CDT 2014


Matt Jordan created ASTERISK-23599:
--------------------------------------

             Summary: ARI: Crash when unsubscribing from bridge
                 Key: ASTERISK-23599
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23599
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_ari
    Affects Versions: 12.1.1
         Environment: Asterisk Test Suite
            Reporter: Matt Jordan


This was caught by the Asterisk Test Suite during the bridges/blind_transfer test:

https://bamboo.asterisk.org/bamboo/browse/AST-ATSARI-90

When ARI attempts to unsubscribe from the {{last_bridge}}, it crashes as it has a stale pointer to the bridge.

This is something of a fundamental problem with how we're managing subscriptions to things that ARI doesn't own. The bridge, in this case, can get destroyed at any point: that destruction message *must* tear down the subscription at the same time. A control structure should almost certainly not have a reference to any object that it doesn't own.

Backtrace is attached to this issue.




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



More information about the asterisk-bugs mailing list