Summary: | ASTERISK-23588: ARI: Crash when unsubscribing from bridge | ||
Reporter: | Matt Jordan (mjordan) | Labels: | |
Date Opened: | 2014-04-04 10:04:38 | Date Closed: | 2014-04-16 14:15:24 |
Priority: | Major | Regression? | |
Status: | Closed/Complete | Components: | Resources/res_ari |
Versions: | 12.1.1 | Frequency of Occurrence | |
Related Issues: | |||
Environment: | Asterisk Test Suite | Attachments: | ( 0) backtrace_3878.txt ( 1) full.txt |
Description: | 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. | ||
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. |