[asterisk-users] Asterisk Core dump

Anthony Musaluke goof at coppernet.zm
Fri Sep 1 07:22:58 MST 2006


Hi,

I have a strange problem that started  some few days back. Every so often my 
asterisk (version  Asterisk 1.2.11) comes up with an error and either does a 
segmentation fault or dumps core, but then it restarts automatically. Here is 
the error when that happens:
------------------------------------//----------------------------------------------------------

*** glibc detected *** asterisk: malloc(): memory corruption: 0x09783118 ***
======= Backtrace: =========
/lib/libc.so.6[0x3a58ca]
/lib/libc.so.6(malloc+0x74)[0x3a6c72]
/lib/libc.so.6(opendir+0x8c)[0x3c9d90]
/usr/lib/asterisk/modules/app_voicemail.so[0xbc2149]
[0x69766564]
======= Memory map: ========
00101000-00117000 r-xp 00000000 08:06 
3767477    /usr/lib/libgssapi_krb5.so.2.2
00117000-00118000 rwxp 00016000 08:06 
3767477    /usr/lib/libgssapi_krb5.so.2.2
00118000-00119000 r-xp 00000000 08:06 
851262     /usr/lib/asterisk/modules/func_uri.so
00119000-0011a000 rwxp 00000000 08:06 
851262     /usr/lib/asterisk/modules/func_uri.so
0011a000-00150000 r-xp 00000000 08:03 622602     /lib/libssl.so.0.9.7f
00150000-00153000 rwxp 00036000 08:03 622602     /lib/libssl.so.0.9.7f
00153000-00155000 r-xp 00000000 08:06 
851252     /usr/lib/asterisk/modules/format_au.so
00155000-00156000 rwxp 00001000 08:06 
851252     /usr/lib/asterisk/modules/format_au.so
00156000-0015f000 r-xp 00000000 08:06 
851263     /usr/lib/asterisk/modules/format_mp3.so
0015f000-00162000 rwxp 00008000 08:06 
851263     /usr/lib/asterisk/modules/format_mp3.so
00162000-0017c000 rwxp 00162000 00:00 0
0017c000-00186000 r-xp 00000000 08:06 
3963486    /usr/lib/asterisk/modules/res_agi.so
00186000-0018c000 rwxp 00009000 08:06 
3963486    /usr/lib/asterisk/modules/res_agi.so
0018e000-001a7000 r-xp 00000000 08:03 622614     /lib/ld-2.3.90.so
001a7000-001a8000 r-xp 00018000 08:03 622614     /lib/ld-2.3.90.so
001a8000-001a9000 rwxp 00019000 08:03 622614     /lib/ld-2.3.90.so
001a9000-001af000 r-xp 00000000 08:06 
3963485    /usr/lib/asterisk/modules/res_adsi.so
001af000-001b0000 rwxp 00005000 08:06 
3963485    /usr/lib/asterisk/modules/res_adsi.so
001b0000-001b4000 r-xp 00000000 08:06 
3963488    /usr/lib/asterisk/modules/res_crypto.so
001b4000-001b5000 rwxp 00003000 08:06 
3963488    /usr/lib/asterisk/modules/res_crypto.so
001b5000-001c6000 r-xp 00000000 08:03 622639     /lib/libnsl-2.3.90.so
001c6000-001c7000 r-xp 00011000 08:03 622639     /lib/libnsl-2.3.90.so
001c7000-001c8000 rwxp 00012000 08:03 622639     /lib/libnsl-2.3.90.so
001c8000-001ca000 rwxp 001c8000 00:00 0
001ca000-001d5000 r-xp 00000000 08:06 
3963487    /usr/lib/asterisk/modules/res_features.so
001d5000-001d7000 rwxp 0000a000 08:06 
3963487    /usr/lib/asterisk/modules/res_features.so
001d7000-001d8000 --xp 001d7000 00:00 0
001d8000-00218000 rwxp 001d8000 00:00 0
00218000-0021f000 r-xp 00000000 08:06 
851155     /usr/lib/asterisk/modules/pbx_ael.so
0021f000-00220000 rwxp 00006000 08:06 
851155     /usr/lib/asterisk/modules/pbx_ael.so
00220000-00222000 r-xp 00000000 08:06 
851153     /usr/lib/asterisk/modules/pbx_loopback.so
00222000-00223000 rwxp 00001000 08:06 
851153     /usr/lib/asterisk/modules/pbx_loopback.so
00223000-0022b000 r-xp 00000000 08:06 
851150     /usr/lib/asterisk/modules/pbx_config.so
0022b000-0022c000 rwxp 00008000 08:06 
851150     /usr/lib/asterisk/modules/pbx_config.so
0022c000-00248000 r-xp 00000000 08:06 3767658    /usr/lib/libpri.so.1.0
00248000-0024d000 rwxp 0001b000 08:06 3767658    /usr/lib/libpri.so.1.0
0024e000-0024f000 r-xp 0024e000 00:00 0
0024f000-00250000 --xp 0024f000 00:00 0
00250000-00290000 rwxp 00250000 00:00 0
00290000-0029c000 r-xp 00000000 08:06 
851140     /usr/lib/asterisk/modules/chan_agent.so
0029c000-0029d000 rwxp 0000c000 08:06 
851140     /usr/lib/asterisk/modules/chan_agent.so
0029d000-002a0000 r-xp 00000000 08:06 
851145     /usr/lib/asterisk/modules/chan_features.so
002a0000-002a1000 rwxp 00002000 08:06 
851145     /usr/lib/asterisk/modules/chan_features.so
002a1000-002a7000 r-xp 00000000 08:06 
851147     /usr/lib/asterisk/modules/chan_phone.so
002a7000-002a8000 rwxp 00006000 08:06 
851147     /usr/lib/asterisk/modules/chan_phone.so
002a8000-002ab000 r-xp 00000000 08:06 
851143     /usr/lib/asterisk/modules/chan_local.so
002ab000-002ac000 rwxp 00002000 08:06 
851143     /usr/lib/asterisk/modules/chan_local.so
002ac000-002b8000 r-xp 00000000 08:06 
851144     /usr/lib/asterisk/modules/chan_skinny.so
002b8000-002b9000 rwxp 0000b000 08:06 
851144     /usr/lib/asterisk/modules/chan_skinny.so
00/usr/sbin/safe_asterisk: line 40: 18038 Aborted                 (core 
dumped) asterisk ${CLIARGS} ${ASTARGS} >&/dev/${       TTY} </dev/${TTY}
Asterisk ended with exit status 134
Asterisk exited on signal 6.
Automatically restarting Asterisk.
--------------------------------------------------------------------------------------------
And running gdb asterisk on the core produces the result below:


---------------------------------------------------//-----------------------------------------

(gdb) bt full
#0  0x0024e402 in __kernel_vsyscall ()
No symbol table info available.
#1  0x003698f8 in raise () from /lib/libc.so.6
No symbol table info available.
#2  0x0036b068 in abort () from /lib/libc.so.6
No symbol table info available.
#3  0x0039ea0a in __libc_message () from /lib/libc.so.6
No symbol table info available.
#4  0x003a58ca in _int_malloc () from /lib/libc.so.6
No symbol table info available.
#5  0x003a6c72 in malloc () from /lib/libc.so.6
No symbol table info available.
#6  0x003c9d90 in opendir () from /lib/libc.so.6
No symbol table info available.
#7  0x00bc2149 in messagecount (mailbox=0x97c5c74 "103 at device", 
newmsgs=0x752464, oldmsgs=0x752460) at app_voicemail.c:2276
        tmpnew = Variable "tmpnew" is not available.
(gdb)                                                 
------------------------------------------------------------------------------------------------

Any one know what could be happening? 

Thank you

Anthony



More information about the asterisk-users mailing list