[Home]

Summary:ASTERISK-22304: 'Bad Magic Number' with bridge Application after ~150 bridges
Reporter:Fabian Andrey Garzón Niño (monse40)Labels:
Date Opened:2013-08-15 18:14:06Date Closed:2017-12-18 11:43:52.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Bridges/bridge_simple
Versions:11.3.0 11.4.0 11.5.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:VMWare Virtual Machine with 4GB RAM and 4 Vcpu, the environment is running over an hp server with 16 GB RAM and an Intel Xeon E5520 QuadCore Processor. The OS is an Centos 6.4 AND Asterisk 11.5 VersiónAttachments:( 0) messages
( 1) myDebugLog.7z
( 2) queue_log
( 3) refs
( 4) refs
Description:We are trying to use the Asterisk Bridge application but when we have more than 150 bridges, Asterisk shows the 'Bad Magic Number' error.
When the 'Bad Magic Number' error occurs the hardware performance is normal (CPU and RAM memory) without substantial increase.
we recompiled Asterisk following the Reference Count Debugging Document and we will attach the debug information.

Operating System : CentOS 6.4 Kernel 2.6.32-358.el6.i686
Asterisk : Asterisk 11.5.0

this is the Dialplan for the case:

Global Variables
{noformat}
CONFBRIDGEVAL=4000
CONFBRIDGESMF=1
BRIDGELASTCHANNEL=string
{noformat}

Dial-plan
{noformat}
;;BRIDGE
exten => _X.,1,NoOp(${GLOBAL(CONFBRIDGESMF)})
exten => _X.,2,NoOp(${GLOBAL(BRIDGELASTCHANNEL)})
exten => _X.,n,GotoIf($[${GLOBAL(CONFBRIDGESMF)} = 0]?confbridge1:confbridge2)
exten => _X.,n(confbridge1),Set(GLOBAL(BRIDGELASTCHANNEL)=${CHANNEL})
exten => _X.,n,Set(GLOBAL(CONFBRIDGESMF)=1)
exten => _X.,n(play),Playback(tt-monkeys)
exten => _X.,n,Wait(10)
exten => _X.,n,Goto(play)
exten => _X.,n(confbridge2),Set(GLOBAL(CONFBRIDGESMF)=0)
exten => _X.,n,Bridge(${GLOBAL(BRIDGELASTCHANNEL)})
exten => _X.,n,Hangup
{noformat}

Steps required to reproduce the issue :
using the dialplan above, create more than 150 bridges.

Thanks in advance!
Comments:By: Fabian Andrey Garzón Niño (monse40) 2013-08-15 18:17:53.939-0500

Reference Count Debug Document

By: Rusty Newton (rnewton) 2013-08-16 18:47:35.858-0500

Thanks for filling out the issue thoroughly and providing the necessary debug!

Can you capture a [VERBOSE and DEBUG|https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information] log and provide an excerpt covering the time just before, during and after you hit that 151st bridge (or roughly) where you start seeing the issues?

Hit "Send Back" when you respond so we'll see the response promptly. Thanks!

By: Fabian Andrey Garzón Niño (monse40) 2013-08-20 15:14:32.029-0500

I have done the capture of the Verbose and Debug log (before, during and after the ERROR), I have attached the next files:
-myDebugLog = all debug information
-messages
-queue_log
-refs = Count Debug information.
thanks!

By: Fabian Andrey Garzón Niño (monse40) 2013-08-20 15:26:19.873-0500

Verbose and Debug information

By: Fabian Andrey Garzón Niño (monse40) 2013-08-21 16:57:50.860-0500

Hi!
I have done the data collection (Verbose and Debug)about.
the information is on  'Attachment Section'
Thanks!

By: Rusty Newton (rnewton) 2013-08-21 17:31:29.242-0500

I see it all there. Thanks.

By: Joshua C. Colp (jcolp) 2017-12-18 11:43:52.118-0600

I'm suspending this issue as bridging has been completely rewritten and no longer uses any of the code referenced here.

If this is still a problem on a current supported version of Asterisk feel free to comment and the issue will automatically reopen.