Summary:ASTERISK-23588: ARI: Crash when unsubscribing from bridge
Reporter:Matt Jordan (mjordan)Labels:
Date Opened:2014-04-04 10:04:38Date Closed:2014-04-16 14:15:24
Versions:12.1.1 Frequency of
Environment:Asterisk Test SuiteAttachments:( 0) backtrace_3878.txt
( 1) full.txt
Description:This was caught by the Asterisk Test Suite during the bridges/blind_transfer test:


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.
Comments:By: Kinsey Moore (kmoore) 2014-04-16 14:15:24.699-0500

As per the review, this is being fixed with a usage note on the stasis_app_get_bridge function.