[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 Apr 29 06:26:26 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:                     ready for testing
Target Version:             1.6.2.8
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-04-29 06:26 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
====================================================================== 

---------------------------------------------------------------------- 
 (0121149) alecdavis (manager) - 2010-04-29 06:26
 https://issues.asterisk.org/view.php?id=17037#c121149 
---------------------------------------------------------------------- 
with patch applied again.

Note the warning below, and then "Exceptionally long voice q.."
Once the "Exceptionally long" message appears, there is not recovery.

Also the console order of PBX execution, and "Local/100XX .. is Ringing"
are out of order.

[Apr 29 23:10:03] WARNING[3927]: channel.c:5401 ast_do_masquerade: Fixup
failed on channel Local/10019 at phones-256c;1<MASQ>, strange things may
happen.
[Apr 29 23:10:03] WARNING[3927]: channel.c:5406 ast_do_masquerade: Hangup
failed!  Strange things may happen!

console output:
    ...
    -- Called 10016 at phones
    -- Executing [10016 at phones:1] Set("Local/10016 at phones-1495;2",
"i=10017") in new stack
    -- Local/10015 at phones-e74e;1 is ringing
    -- Local/10014 at phones-bcd5;1 is ringing
    -- Executing [10016 at phones:2] Dial("Local/10016 at phones-1495;2",
"Local/10017 at phones,,r") in new stack
    -- Called 10017 at phones
    -- Executing [10017 at phones:1] Set("Local/10017 at phones-b9b3;2",
"i=10018") in new stack
    -- Executing [10017 at phones:2] Dial("Local/10017 at phones-b9b3;2",
"Local/10018 at phones,,r") in new stack
    -- Local/10016 at phones-1495;1 is ringing
    -- Local/10015 at phones-e74e;1 is ringing
    -- Called 10018 at phones
    -- Local/10017 at phones-b9b3;1 is ringing
    -- Local/10016 at phones-1495;1 is ringing
    -- Executing [10018 at phones:1] Set("Local/10018 at phones-9bfc;2",
"i=10019") in new stack
    -- Executing [10018 at phones:2] Dial("Local/10018 at phones-9bfc;2",
"Local/10019 at phones,,r") in new stack
    -- Called 10019 at phones
    -- Executing [10019 at phones:1] Set("Local/10019 at phones-256c;2",
"i=10020") in new stack
    -- Local/10018 at phones-9bfc;1 is ringing
    -- Executing [10019 at phones:2] Dial("Local/10019 at phones-256c;2",
"Local/10020 at phones,,r") in new stack
    -- Local/10017 at phones-b9b3;1 is ringing
    -- Executing [10020 at phones:1] Answer("Local/10020 at phones-485d;2", "")
in new stack
    -- Called 10020 at phones
    -- Local/10019 at phones-256c;1 is ringing
    -- Local/10018 at phones-9bfc;1 is ringing
    -- Local/10020 at phones-485d;1 answered Local/10019 at phones-256c;2
    -- Local/10019 at phones-256c;1 answered Local/10018 at phones-9bfc;2
    -- Local/10018 at phones-9bfc;1 answered Local/10017 at phones-b9b3;2
    -- Local/10017 at phones-b9b3;1 answered Local/10016 at phones-1495;2
    -- Local/10016 at phones-1495;1 answered Local/10015 at phones-e74e;2
    -- Executing [10020 at phones:2] Playback("Local/10020 at phones-485d;2",
"test-tones-follow") in new stack
    -- Local/10015 at phones-e74e;1 answered Local/10014 at phones-bcd5;2
    -- Local/10014 at phones-bcd5;1 answered Local/10013 at phones-7fb2;2
    -- Local/10013 at phones-7fb2;1 answered Local/10012 at phones-c40c;2
    -- Local/10012 at phones-c40c;1 answered Local/10011 at phones-ab4f;2
    -- Local/10011 at phones-ab4f;1 answered Local/10010 at phones-67b6;2
    -- Local/10010 at phones-67b6;1 answered Local/10009 at phones-d243;2
    -- Local/10009 at phones-d243;1 answered Local/10008 at phones-2977;2
    -- Local/10008 at phones-2977;1 answered Local/10007 at phones-d0c5;2
    -- Local/10007 at phones-d0c5;1 answered Local/10006 at phones-f39d;2
    -- Local/10006 at phones-f39d;1 answered Local/10005 at phones-79fa;2
    -- Local/10005 at phones-79fa;1 answered Local/10004 at phones-0731;2
    -- Local/10004 at phones-0731;1 answered DAHDI/35-2
    -- <Local/10020 at phones-485d;2> Playing 'test-tones-follow.slin'
(language 'en')
  == Spawn extension (phones, 10017, 2) exited non-zero on
'Local/10017 at phones-b9b3;2'
[Apr 29 23:10:03] WARNING[3927]: channel.c:5401 ast_do_masquerade: Fixup
failed on channel Local/10019 at phones-256c;1<MASQ>, strange things may
happen.
[Apr 29 23:10:03] WARNING[3927]: channel.c:5406 ast_do_masquerade: Hangup
failed!  Strange things may happen!
  == Spawn extension (phones, 10016, 2) exited non-zero on
'Local/10016 at phones-1495;2'
  == Spawn extension (phones, 10015, 2) exited non-zero on
'Local/10015 at phones-e74e;2'
  == Spawn extension (phones, 10018, 2) exited non-zero on
'Local/10018 at phones-9bfc;2'
  == Spawn extension (phones, 10014, 2) exited non-zero on
'Local/10014 at phones-bcd5;2'
  == Spawn extension (phones, 10013, 2) exited non-zero on
'Local/10013 at phones-7fb2;2'
  == Spawn extension (phones, 10012, 2) exited non-zero on
'Local/10012 at phones-c40c;2'
  == Spawn extension (phones, 10011, 2) exited non-zero on
'Local/10011 at phones-ab4f;2'
  == Spawn extension (phones, 10010, 2) exited non-zero on
'Local/10010 at phones-67b6;2'
  == Spawn extension (phones, 10009, 2) exited non-zero on
'Local/10009 at phones-d243;2'
  == Spawn extension (phones, 10008, 2) exited non-zero on
'Local/10008 at phones-2977;2'
  == Spawn extension (phones, 10007, 2) exited non-zero on
'Local/10007 at phones-d0c5;2'
  == Spawn extension (phones, 10006, 2) exited non-zero on
'Local/10006 at phones-f39d;2'
  == Spawn extension (phones, 10005, 2) exited non-zero on
'Local/10005 at phones-79fa;2'
  == Spawn extension (phones, 10004, 2) exited non-zero on
'Local/10004 at phones-0731;2'
  == Spawn extension (phones, 10003, 2) exited non-zero on 'DAHDI/35-2'
    -- Hanging up on 'DAHDI/35-2'
    -- Hungup 'DAHDI/35-2'
    -- Executing [10020 at phones:3] Milliwatt("Local/10020 at phones-485d;2",
"") in new stack
[Apr 29 23:10:05] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:06] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:08] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:09] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:10] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:12] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:13] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:14] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:15] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
[Apr 29 23:10:17] WARNING[3932]: channel.c:1174 __ast_queue_frame:
Exceptionally long voice queue len
core stop now[Apr 29 23:10:18] WARNING[3932]: channel.c:1174
__ast_queue_frame: Exceptionally long vo
      core show channels[Apr 29 23:10:19] WARNING[3932]: channel.c:1174
__ast_queue_frame: Exceptiona

Channel              Location             State   Application(Data)
Local/10019 at phones-2 10019 at phones:2       Up     
Dial(Local/10020 at phones,,r)
Local/10020 at phones-c (None)               Up      AppDial((Outgoing
Line))
Local/10020 at phones-c 10020 at phones:3       Ringing Milliwatt()
Local/10019 at phones-2 (None)               Up      AppDial((Outgoing
Line))
Local/10020 at phones-4 10020 at phones:3       Up      Milliwatt()
Local/10020 at phones-4 (None)               Up      AppDial((Outgoing
Line))
DAHDI/35-1           10003 at phones:2       Up     
Dial(Local/10004 at phones,,r)
7 active channels
4 active calls
53 calls processed 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-29 06:26 alecdavis      Note Added: 0121149                          
======================================================================




More information about the asterisk-bugs mailing list