[asterisk-bugs] [Asterisk 0017801]: [patch] ERROR[7169] astobj2.c: bad magic number 0x0 for 0x8b1c3d0

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Aug 11 17:26:38 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17801 
====================================================================== 
Reported By:                notthematrix
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17801
Category:                   Addons/General
Reproducibility:            sometimes
Severity:                   crash
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.8.0-beta2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-08-05 07:57 CDT
Last Modified:              2010-08-11 17:26 CDT
====================================================================== 
Summary:                    [patch] ERROR[7169] astobj2.c: bad magic number 0x0
for 0x8b1c3d0
Description: 
found a crash 
happens randomly
[Aug  3 21:26:00] ERROR[7169] astobj2.c: bad magic number 0x0 for
0x8b1c3d0


[Aug  4 16:32:10] ERROR[31100] astobj2.c: bad magic number 0x0 for
0x6c13550
Then restaring 
[Aug  4 16:32:15] VERBOSE[9142] config.c:   == Parsing
'/etc/asterisk/asterisk.conf': [Aug  4 16:32:15] VERBOSE[9142] config.c:  
== Found
Aug  4 20:04:14] VERBOSE[12064] app_macro.c:   == Spawn extension
(macro-hangupcall, s, 9) exited non-zero on 'SIP/31251788117-0000000b' in
macro 'hangupca$
[Aug  4 20:04:14] ERROR[12064] astobj2.c: bad magic number 0x0 for
0x30caff0
[Aug  4 20:04:19] VERBOSE[14199] config.c:   == Parsing
'/etc/asterisk/asterisk.conf': [Aug  4 20:04:19] VERBOSE[14199] config.c:  
== Found


[Aug  5 14:05:48] VERBOSE[5735] app_dial.c:     -- Called 31251788103
[Aug  5 14:05:48] ERROR[12953] astobj2.c: bad magic number 0x0 for
0x7f3cf40469b0
[Aug  5 14:05:52] VERBOSE[5748] config.c:   == Parsing
'/etc/asterisk/asterisk.conf': [Aug  5 14:05:52] VERBOSE[5748] config.c:  
== Found

etc

====================================================================== 

---------------------------------------------------------------------- 
 (0125861) mkilburn60 (reporter) - 2010-08-11 17:26
 https://issues.asterisk.org/view.php?id=17801#c125861 
---------------------------------------------------------------------- 
although the patch is valid (chan needs to be checked for null before
calling string functions), its covering another problem.

I'm now seeing another crash, in free(), when the bad magic number pops
up.

here is the trace:


https://issues.asterisk.org/view.php?id=0  0x00889402 in __kernel_vsyscall ()
https://issues.asterisk.org/view.php?id=1  0x00236d10 in raise () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=2  0x00238621 in abort () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=3  0x0026ee5b in __libc_message () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=4  0x00276d06 in _int_free () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=5  0x0027a1e0 in free () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=6  0x080831d0 in internal_ao2_ref
(user_data=0x34e140, delta=<value
optimized out>) at astobj2.c:274
https://issues.asterisk.org/view.php?id=7  0x080ab52b in ast_channel_release
(chan=0x89bbcd0) at channel.c:1869
https://issues.asterisk.org/view.php?id=8  0x001dfeb4 in custom_log
(cdr=0x8797d18) at cdr_custom.c:168
https://issues.asterisk.org/view.php?id=9  0x080a20fc in post_cdr
(cdr=0x8797d18) at cdr.c:1136
https://issues.asterisk.org/view.php?id=10 0x080a2335 in ast_cdr_detach
(cdr=0x8797d18) at cdr.c:1332
https://issues.asterisk.org/view.php?id=11 0x080ecb6c in ast_bridge_call
(chan=0x862ce38, peer=0x8972318,
config=0xb7756d24) at features.c:3452
https://issues.asterisk.org/view.php?id=12 0x003f1b97 in dial_exec_full
(chan=0x862ce38, data=<value optimized
out>, peerflags=0xb7756e60, continue_exec=0x0) at app_dial.c:2632
https://issues.asterisk.org/view.php?id=13 0x003f4199 in dial_exec
(chan=0x862ce38, data=0xb7758f14
"SIP/+12104646723 at Cloud9,60") at app_dial.c:2732
https://issues.asterisk.org/view.php?id=14 0x081365ab in pbx_exec (c=0x862ce38,
app=0x84fc9f8, data=0xb7758f14
"SIP/+12104646723 at Cloud9,60") at pbx.c:1395
https://issues.asterisk.org/view.php?id=15 0x081427ca in pbx_extension_helper
(c=0x862ce38, con=0x0,
context=0x862d1a0 "callcontroller_bleg_originate", exten=0x862d1f0 "s",
priority=8, label=0x0, callerid=0x88b4570 "447872205930", action=E_SPAWN,
found=0xb775b338, combined_find_spawn=1)
    at pbx.c:4070
https://issues.asterisk.org/view.php?id=16 0x08148eb6 in ast_spawn_extension
(c=0x862ce38, args=0x0) at
pbx.c:4562
https://issues.asterisk.org/view.php?id=17 __ast_pbx_run (c=0x862ce38, args=0x0)
at pbx.c:4660
https://issues.asterisk.org/view.php?id=18 0x0814ac60 in pbx_thread
(data=0x862ce38) at pbx.c:4971
https://issues.asterisk.org/view.php?id=19 0x0818836b in dummy_start
(data=0x88d8dc0) at utils.c:971
https://issues.asterisk.org/view.php?id=20 0x0038745b in start_thread () from
/lib/libpthread.so.0
https://issues.asterisk.org/view.php?id=21 0x002dee5e in clone () from
/lib/libc.so.6 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-08-11 17:26 mkilburn60     Note Added: 0125861                          
======================================================================




More information about the asterisk-bugs mailing list