[asterisk-bugs] [Asterisk 0017059]: What causes 'Bad Magic Number'? As immediately after segfault.

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 19 03:20:59 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17059 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17059
Category:                   Core/PBX
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 252241 
Request Review:              
====================================================================== 
Date Submitted:             2010-03-19 03:15 CDT
Last Modified:              2010-03-19 03:20 CDT
====================================================================== 
Summary:                    What causes 'Bad Magic Number'? As immediately after
segfault.
Description: 
One way to get a 'Bad Magic Number' is to loop the Local Channel a number
of times.

This is repeatable with following test dialplan.

When 10000 is dialled the local channel is looped 20 times, and would
immediately segfault after some 'Exceptionly long queued frames...

[phones]
exten => _10020,1,Answer()
exten => _10020,n,Playback(test-tones-follow)
exten => _10020,n,Milliwatt()

exten => _1XXXX,1,Set(i=${MATH(${EXTEN}+1,int)})
exten => _1XXXX,n,Dial(Local/${i}@phones,,r)

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
parent of           0017037 [patch] internal_ao2_ref fails to check...
====================================================================== 

---------------------------------------------------------------------- 
 (0119603) alecdavis (manager) - 2010-03-19 03:20
 https://issues.asterisk.org/view.php?id=17059#c119603 
---------------------------------------------------------------------- 
Maybe a clue below, just after a Local Channel in the loop was optimized
out, then Bad Magic Number, then segfault.

console output:

 == Spawn extension (phones, 10015, 2) exited non-zero on
'Local/10015 at phones-f860;2'
[Mar 16 23:14:00] ERROR[30417]: astobj2.c:116 INTERNAL_OBJ: bad magic
number 0x0 for 0x85dc240 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-19 03:20 alecdavis      Note Added: 0119603                          
======================================================================




More information about the asterisk-bugs mailing list