Summary: | ASTERISK-08725: Core dumped when a Zap channel being 'Redirect'ed is hung-up | ||
Reporter: | Antonis Psaras (apsaras) | Labels: | |
Date Opened: | 2007-02-04 07:18:46.000-0600 | Date Closed: | 2007-07-09 21:20:46 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_zap |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) output.txt | |
Description: | I use API to redirect calls. Before the redirection I set some variables on the channel and then I execute redirect. If the channel dies between those two steps Asterisk hangs up producing core dump. ****** ADDITIONAL INFORMATION ****** These are the last lines droped to full log Feb 2 21:17:28 DEBUG[883] channel.c: Scheduling timer at 0 sample intervals Feb 2 21:17:28 VERBOSE[883] logger.c: == Spawn extension (CallCenter, 7778, 1) exited non-zero on 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] manager.c: Manager received command 'SetVar' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '2241074926' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '2241074926' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '7778' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is 'CallCenter' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is 'Zap/49-1' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '(null)' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is 'AGI' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is 'agi://10.10.41.202:9997' Feb 2 21:17:28 DEBUG[21387] manager.c: Manager received command 'Redirect' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '2007-02-02 21:17:16' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '2007-02-02 21:17:16' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '2007-02-02 21:17:28' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '12' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '12' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is 'ANSWERED' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is 'DOCUMENTATION' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '(null)' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '1170472636.4575' Feb 2 21:17:28 DEBUG[883] pbx.c: Function result is '(null)' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 WARNING[21387] channel.c: Avoided initial deadlock for '0x2a958731f0', 10 retries! Feb 2 21:17:28 DEBUG[21387] manager.c: Manager received command 'Redirect' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Avoiding initial deadlock for 'Zap/49-1' Feb 2 21:17:28 DEBUG[883] chan_zap.c: Set option AUDIO MODE, value: ON(1) on Zap/49-1 Feb 2 21:17:28 DEBUG[883] chan_zap.c: Hangup: channel: 49 index = 0, normal = 66, callwait = -1, thirdcall = -1 Feb 2 21:17:28 DEBUG[883] chan_zap.c: Not yet hungup... Calling hangup once with icause, and clearing call Feb 2 21:17:28 DEBUG[883] chan_zap.c: disabled echo cancellation on channel 49 Feb 2 21:17:28 DEBUG[883] chan_zap.c: Set option TDD MODE, value: OFF(0) on Zap/49-1 Feb 2 21:17:28 DEBUG[883] chan_zap.c: Updated conferencing on 49, with 0 conference users Feb 2 21:17:28 DEBUG[883] chan_zap.c: Set option AUDIO MODE, value: OFF(0) on Zap/49-1 Feb 2 21:17:28 DEBUG[883] chan_zap.c: disabled echo cancellation on channel 49 Feb 2 21:17:28 VERBOSE[883] logger.c: -- Hungup 'Zap/49-1' Feb 2 21:17:28 DEBUG[21387] channel.c: Planning to masquerade channel Zap/49-1 into the structure of AsyncGoto/Zap/49-1 Feb 2 21:17:28 DEBUG[21387] channel.c: Done planning to masquerade channel Zap/49-1 into the structure of AsyncGoto/Zap/49-1 Feb 2 21:17:28 DEBUG[21387] channel.c: Got clone lock for masquerade on 'Zap/49-1' at 0x2a958732f0 Feb 2 21:17:28 DEBUG[21387] channel.c: Putting channel Zap/49-1 in 8/8 formats -----Core Dump----- | ||
Comments: | By: Serge Vecher (serge-v) 2007-02-05 16:42:09.000-0600 we need to see a bt of the core. 1. Build asterisk with 'make dont-optimize'. 2. Start Asterisk with '-g' option 3. When crash occurs, perform 'bt' on the core file. Then 'thread apply all bt full' By: Antonis Psaras (apsaras) 2007-02-06 03:38:05.000-0600 File attached Thank you By: Joshua C. Colp (jcolp) 2007-02-08 19:45:03.000-0600 This backtrace is somewhat usable but it still seems to be optimized... can you do a make clean and then follow serge's instructions? It may not have rebuilt. By: Serge Vecher (serge-v) 2007-02-21 15:08:10.000-0600 ping By: Antonis Psaras (apsaras) 2007-02-21 15:27:09.000-0600 Unfortunately the error can not be easily reproduced. We overcome the problem by checking the channel status before redirection. By: Russell Bryant (russell) 2007-03-06 18:28:19.000-0600 This should be fixed in 1.2, 1.4, and trunk in revision 58167 (1.2), 58165 (1.4), and 58166 (trunk) |