[asterisk-bugs] [Asterisk 0017037]: [patch] internal_ao2_ref fails to check if null returned from INTERNAL_OBJ

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 27 01:56:57 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17037 
====================================================================== 
Reported By:                alecdavis
Assigned To:                tilghman
====================================================================== 
Project:                    Asterisk
Issue ID:                   17037
Category:                   Core/General
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     feedback
Target Version:             1.6.2.9
Asterisk Version:           SVN 
JIRA:                       SWP-1094 
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-16 05:32 CDT
Last Modified:              2010-05-27 01:56 CDT
====================================================================== 
Summary:                    [patch] internal_ao2_ref fails to check if null
returned from INTERNAL_OBJ
Description: 
 == 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

Bad magic number typically would trigger a segfault.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0017059 What causes 'Bad Magic Number'? As imme...
related to          0016800 astobj2.c:279
has duplicate       0017357 Bad magic number
====================================================================== 

---------------------------------------------------------------------- 
 (0122544) alecdavis (manager) - 2010-05-27 01:56
 https://issues.asterisk.org/view.php?id=17037#c122544 
---------------------------------------------------------------------- 
Problem goes away using '/n' on end of Local channel.

using following dialplan, dialling 10020 creates 20 calls, and stays up.
Using same dialplan but without '/n' causes crash. <pre>exten =>
_10000,1,Answer()
exten => _10000,n,Playback(test-tones-follow)
exten => _10000,n,Milliwatt()

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

Too many loops causes, but still no segfaults.
<b>[May 27 18:55:44] WARNING[14836]: channel.c:1044 __ast_queue_frame:
Exceptionally long queue length queuing to Local/10000 at phones-c3f8;2</b> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-27 01:56 alecdavis      Note Added: 0122544                          
======================================================================




More information about the asterisk-bugs mailing list