IssabelFoundation / issabel

Open Source Unified Communications Platform
http://www.issabel.org
54 stars 13 forks source link

Error in asterisk malloc() memory corruption #26

Open davidbqzt opened 6 years ago

davidbqzt commented 6 years ago

Hi,

Yesterday I've update Issabel 4, everything seems fine, but this morning everything goes wrong, asterisk doesn't start, no matter how I try to start it or if I restart the server or whatever, it simply doesn't start.

When I try asterisk -vgc I got this log:

[root@uc ~]# asterisk -vgc
Privilege escalation protection disabled!
See https://wiki.asterisk.org/wiki/x/1gKfAQ for more details.
Asterisk 11.25.3, Copyright (C) 1999 - 2013 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
[ Initializing Custom Configuration Options ]
 Asterisk Dynamic Loader Starting:
[2018-03-06 10:38:01] NOTICE[31514]: loader.c:1244 load_modules: 2 modules will be loaded.
 chan_local.so => (Local Proxy Channel (Note: used internally by other modules))
[2018-03-06 10:38:01] WARNING[31514]: pbx_config.c:1649 pbx_load_config: The use of '_.' for an extension is strongly discouraged and can have unexpected behavior.  Please use '_X.' instead at line 5286 of /etc/asterisk/extensions_additional.conf
[2018-03-06 10:38:01] WARNING[31514]: pbx_config.c:1649 pbx_load_config: The use of '_.' for an extension is strongly discouraged and can have unexpected behavior.  Please use '_X.' instead at line 5287 of /etc/asterisk/extensions_additional.conf
*** Error in `asterisk': malloc(): memory corruption: 0x00000000039a09a0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7dd7d)[0x7f790655fd7d]
/lib64/libc.so.6(__libc_calloc+0xb4)[0x7f7906562b64]
asterisk[0x4c9c6e]
asterisk(ast_hashtab_insert_safe+0xf3)[0x4ca963]
asterisk[0x509f6e]
/usr/lib64/asterisk/modules/pbx_config.so(+0x66b3)[0x7f7902d296b3]
/usr/lib64/asterisk/modules/pbx_config.so(+0x785a)[0x7f7902d2a85a]
/usr/lib64/asterisk/modules/pbx_config.so(+0x7a6e)[0x7f7902d2aa6e]
asterisk[0x4d4c20]
asterisk[0x4d5510]
asterisk[0x4d57c5]
asterisk[0x427787]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f7906503c05]
asterisk[0x429018]
======= Memory map: ========
00400000-005e6000 r-xp 00000000 08:07 46272195                           /usr/sbin/asterisk
007e6000-007e7000 r--p 001e6000 08:07 46272195                           /usr/sbin/asterisk
007e7000-007f4000 rw-p 001e7000 08:07 46272195                           /usr/sbin/asterisk
007f4000-0082e000 rw-p 00000000 00:00 0
024ad000-039b5000 rw-p 00000000 00:00 0                                  [heap]
7f78e4000000-7f78e4021000 rw-p 00000000 00:00 0
7f78e4021000-7f78e8000000 ---p 00000000 00:00 0
7f78ec000000-7f78ec021000 rw-p 00000000 00:00 0
7f78ec021000-7f78f0000000 ---p 00000000 00:00 0
7f78f0000000-7f78f0021000 rw-p 00000000 00:00 0
7f78f0021000-7f78f4000000 ---p 00000000 00:00 0
7f78f4000000-7f78f4021000 rw-p 00000000 00:00 0
7f78f4021000-7f78f8000000 ---p 00000000 00:00 0
7f78f8000000-7f78f8021000 rw-p 00000000 00:00 0
7f78f8021000-7f78fc000000 ---p 00000000 00:00 0
7f78fc000000-7f78fc021000 rw-p 00000000 00:00 0
7f78fc021000-7f7900000000 ---p 00000000 00:00 0
7f7902b19000-7f7902b21000 r-xp 00000000 08:07 48240754                   /usr/lib64/asterisk/modules/chan_local.so
7f7902b21000-7f7902d21000 ---p 00008000 08:07 48240754                   /usr/lib64/asterisk/modules/chan_local.so
7f7902d21000-7f7902d22000 r--p 00008000 08:07 48240754                   /usr/lib64/asterisk/modules/chan_local.so
7f7902d22000-7f7902d23000 rw-p 00009000 08:07 48240754                   /usr/lib64/asterisk/modules/chan_local.so
7f7902d23000-7f7902d2e000 r-xp 00000000 08:07 48240840                   /usr/lib64/asterisk/modules/pbx_config.so
7f7902d2e000-7f7902f2d000 ---p 0000b000 08:07 48240840                   /usr/lib64/asterisk/modules/pbx_config.so
7f7902f2d000-7f7902f2e000 r--p 0000a000 08:07 48240840                   /usr/lib64/asterisk/modules/pbx_config.so
7f7902f2e000-7f7902f2f000 rw-p 0000b000 08:07 48240840                   /usr/lib64/asterisk/modules/pbx_config.so
7f7902f2f000-7f7902f30000 ---p 00000000 00:00 0
7f7902f30000-7f7902fab000 rw-p 00000000 00:00 0                          [stack:31519]
7f7902fab000-7f7902fac000 ---p 00000000 00:00 0
7f7902fac000-7f7903027000 rw-p 00000000 00:00 0                          [stack:31518]
7f7903027000-7f7903087000 r-xp 00000000 08:07 46269099                   /usr/lib64/libpcre.so.1.2.0
7f7903087000-7f7903287000 ---p 00060000 08:07 46269099                   /usr/lib64/libpcre.so.1.2.0
7f7903287000-7f7903288000 r--p 00060000 08:07 46269099                   /usr/lib64/libpcre.so.1.2.0
7f7903288000-7f7903289000 rw-p 00061000 08:07 46269099                   /usr/lib64/libpcre.so.1.2.0
7f7903289000-7f79032ad000 r-xp 00000000 08:07 46272966                   /usr/lib64/libselinux.so.1
7f79032ad000-7f79034ac000 ---p 00024000 08:07 46272966                   /usr/lib64/libselinux.so.1
7f79034ac000-7f79034ad000 r--p 00023000 08:07 46272966                   /usr/lib64/libselinux.so.1
7f79034ad000-7f79034ae000 rw-p 00024000 08:07 46272966                   /usr/lib64/libselinux.so.1
7f79034ae000-7f79034b0000 rw-p 00000000 00:00 0
7f79034b0000-7f79034b3000 r-xp 00000000 08:07 46269639                   /usr/lib64/libkeyutils.so.1.5
7f79034b3000-7f79036b2000 ---p 00003000 08:07 46269639                   /usr/lib64/libkeyutils.so.1.5
7f79036b2000-7f79036b3000 r--p 00002000 08:07 46269639                   /usr/lib64/libkeyutils.so.1.5
7f79036b3000-7f79036b4000 rw-p 00003000 08:07 46269639                   /usr/lib64/libkeyutils.so.1.5
7f79036b4000-7f79036c1000 r-xp 00000000 08:07 46270518                   /usr/lib64/libkrb5support.so.0.1
7f79036c1000-7f79038c0000 ---p 0000d000 08:07 46270518                   /usr/lib64/libkrb5support.so.0.1
7f79038c0000-7f79038c1000 r--p 0000c000 08:07 46270518                   /usr/lib64/libkrb5support.so.0.1
7f79038c1000-7f79038c2000 rw-p 0000d000 08:07 46270518                   /usr/lib64/libkrb5support.so.0.1
7f79038c2000-7f79038c6000 r-xp 00000000 08:07 46269363                   /usr/lib64/libattr.so.1.1.0
7f79038c6000-7f7903ac5000 ---p 00004000 08:07 46269363                   /usr/lib64/libattr.so.1.1.0
7f7903ac5000-7f7903ac6000 r--p 00003000 08:07 46269363                   /usr/lib64/libattr.so.1.1.0
7f7903ac6000-7f7903ac7000 rw-p 00004000 08:07 46269363                   /usr/lib64/libattr.so.1.1.0
7f7903ac7000-7f7903af8000 r-xp 00000000 08:07 46270506                   /usr/lib64/libk5crypto.so.3.1
7f7903af8000-7f7903cf7000 ---p 00031000 08:07 46270506                   /usr/lib64/libk5crypto.so.3.1
7f7903cf7000-7f7903cf9000 r--p 00030000 08:07 46270506                   /usr/lib64/libk5crypto.so.3.1
7f7903cf9000-7f7903cfa000 rw-p 00032000 08:07 46270506                   /usr/lib64/libk5crypto.so.3.1
7f7903cfa000-7f7903cfd000 r-xp 00000000 08:07 46269119                   /usr/lib64/libcom_err.so.2.1
7f7903cfd000-7f7903efc000 ---p 00003000 08:07 46269119                   /usr/lib64/libcom_err.so.2.1
7f7903efc000-7f7903efd000 r--p 00002000 08:07 46269119                   /usr/lib64/libcom_err.so.2.1
7f7903efd000-7f7903efe000 rw-p 00003000 08:07 46269119                   /usr/lib64/libcom_err.so.2.1
7f7903efe000-7f7903fd6000 r-xp 00000000 08:07 46270516                   /usr/lib64/libkrb5.so.3.3
7f7903fd6000-7f79041d5000 ---p 000d8000 08:07 46270516                   /usr/lib64/libkrb5.so.3.3
7f79041d5000-7f79041e3000 r--p 000d7000 08:07 46270516                   /usr/lib64/libkrb5.so.3.3
7f79041e3000-7f79041e6000 rw-p 000e5000 08:07 46270516                   /usr/lib64/libkrb5.so.3.3
7f79041e6000-7f7904230000 r-xp 00000000 08:07 46270502                   /usr/lib64/libgssapi_krb5.so.2.2
7f7904230000-7f7904430000 ---p 0004a000 08:07 46270502                   /usr/lib64/libgssapi_krb5.so.2.2
7f7904430000-7f7904431000 r--p 0004a000 08:07 46270502                   /usr/lib64/libgssapi_krb5.so.2.2
7f7904431000-7f7904433000 rw-p 0004b000 08:07 46270502                   /usr/lib64/libgssapi_krb5.so.2.2
Abortado (`core' generado)

Yesterday update on yum was this: yumUpdate5.txt

I saw that updates for Asterisk and Dahdi was implemented, maybe one of this broke the system.

System version: CentOS Linux release 7.4.1708 (Core) 3.10.0-514.2.2.el7.x86_64 Issabel issabel-4.0.0-1 issabel-addons-4.0.0-3 issabel-agenda-4.0.0-2 issabel-asterisk-sounds-1.2.3-2 issabel-callcenter-4.0.0-3 issabel-email_admin-4.0.0-1 issabel-endpointconfig2-4.0.0-2 issabel-extras-4.0.0-4 issabel-fax-4.0.0-1 issabel-firstboot-4.0.0-2 issabel-framework-4.0.0-5 issabel-my_extension-4.0.0-1 issabel-pbx-4.0.0-4 issabel-portknock-4.0.0-2 issabel-reports-4.0.0-2 issabel-security-4.0.0-5 issabel-system-4.0.0-6 issabelPBX-2.11.0-45 Asterisk 11.25.3 (last was 11.25.0)

What do you need to debug this issue and found the cause?

Thanks for your help, it's very urgent, the system is down and the server is a production system