Summary: | ASTERISK-06882: [patch] Audio streams may be closed twice, crashing Asterisk | ||
Reporter: | jcomellas (jcomellas) | Labels: | |
Date Opened: | 2006-05-02 08:29:55 | Date Closed: | 2006-05-02 15:07:05 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) ast_stopstream_double_close-1.2.diff ( 1) ast_stopstream_double_close-trunk.diff | |
Description: | Before calling ast_streamfile(), it is customary to call ast_stopstream() on the channel. In some cases, ast_streamfile() also makes a call to ast_stopstream(). There is a bug in ast_stopstream() that can crash Asterisk when more than one call is made to it and the channel's stream is not NULL. This happens because ast_stopstream() does not set the channel's stream members to NULL after closing them. The problem is present both in the 1.2 branch and in trunk. I am attaching patches for both. | ||
Comments: | By: BJ Weschke (bweschke) 2006-05-02 15:07:05 Committed to /trunk and 1.2. Thanks! |