Summary: | ASTERISK-17770: Asterisk crashes in ast_cel_report_event on hangup when obtaining invalid bridged channel | ||
Reporter: | Jacco van Tuijl (jacco) | Labels: | |
Date Opened: | 2011-04-29 04:11:09 | Date Closed: | 2012-11-27 17:48:51.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | CEL/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) backtrace.txt ( 1) gdb_2.txt ( 2) gdb_3.txt ( 3) gdb.txt | |
Description: | I attached the gdb.txt. let me know if you need more info | ||
Comments: | By: Jacco van Tuijl (jacco) 2011-04-29 05:52:46 added new backrtace (gdb_2.txt) after installing libc6-dbg By: David Woolley (davidw) 2011-04-29 18:13:10 You have a memory corruption problem. You need to follow the valgrind part of the debugging wiki. Also note that such problems are often preceded by error messages about locking problems, which give a better location for the primary error. By: David Woolley (davidw) 2011-04-29 18:14:46 Is this correlated with your ASTERISK-1896203 By: Jacco van Tuijl (jacco) 2011-05-02 02:16:34 I've disabled cdr in cdr.conf -> enable=no crashes are still happening a couple of times a day By: Jacco van Tuijl (jacco) 2011-05-02 02:20:58 "Is this correlated with your 0019203 ?" Crashes happen on different moments as the locking errors from 0019203 but could be correlated somehow By: Jacco van Tuijl (jacco) 2011-05-02 03:11:52 New backtrace sugests it could be correlated By: Jacco van Tuijl (jacco) 2011-05-02 05:26:19 [May 2 12:18:06] ERROR[25725]: lock.c:407 __ast_pthread_mutex_unlock: features.c line 5872 (bridge_exec): mutex 'current_dest_chan' freed more times than we've locked! [May 2 12:18:06] ERROR[25725]: lock.c:438 __ast_pthread_mutex_unlock: features.c line 5872 (bridge_exec): Error releasing mutex: Operation not permitted [May 2 12:18:06] ERROR[25728]: lock.c:396 __ast_pthread_mutex_unlock: features.c line 5872 (bridge_exec): attempted unlock mutex 'current_dest_chan' without owning it! [May 2 12:18:06] ERROR[25728]: lock.c:398 __ast_pthread_mutex_unlock: features.c line 5226 (do_bridge_masquerade): 'current_dest_chan' was locked here. [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk(ast_bt_get_addresses+0x19) [0x8120d11] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk(__ast_pthread_mutex_lock+0xb5) [0x811a417] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk(__ao2_lock+0x4a) [0x8087b64] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk [0x80fdfed] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk [0x8100cc7] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk(pbx_exec+0x1ea) [0x8138a2d] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/lib/asterisk/modules/app_exec.so [0xb685d0f3] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk(pbx_exec+0x1ea) [0x8138a2d] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk [0x8141b07] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk(ast_spawn_extension+0x53) [0x81434fd] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk [0x8143ea2] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk [0x8145935] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /usr/sbin/asterisk [0x819717d] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /lib/i686/cmov/libpthread.so.0 [0xb72ab4c0] [May 2 12:18:06] ERROR[25728]: /usr/src/asterisk-1.8.4-rc3/include/asterisk/lock.h:302 __dump_backtrace: /lib/i686/cmov/libc.so.6(clone+0x5e) [0xb74db84e] [May 2 12:18:06] ERROR[25728]: lock.c:438 __ast_pthread_mutex_unlock: features.c line 5872 (bridge_exec): Error releasing mutex: Operation not permitted By: Jacco van Tuijl (jacco) 2011-05-02 07:17:51 backtraces that come with the last error can be found https://issues.asterisk.org/view.php?id=19203 By: Leif Madsen (lmadsen) 2011-05-05 08:03:41 At what point do we call these duplicated? Just curious. If they are separate I can leave them separate, but if they are mostly the same underlying problem we should just close one as a duplicate. By: Matt Jordan (mjordan) 2012-10-19 13:00:43.814-0500 Given the locking problems surrounding bridge operations that were resolved in ASTERISK-17772, this issue may also be resolved. Can you reproduce this problem in a later version of Asterisk 1.8? By: Rusty Newton (rnewton) 2012-11-08 15:35:54.023-0600 Can you reproduce this problem in a later version of Asterisk 1.8? By: Rusty Newton (rnewton) 2012-11-27 17:48:32.902-0600 Suspended due to lack of activity for a while. This may be resolved in a recent version of Asterisk 1.8.X Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested. Further information can be found at http://www.asterisk.org/developers/bug-guidelines |