Hi,
I see a crash with Asterisk 13.13-cert1 on CentOS 7.4 very early in the startup process:
(gdb) run -cvvv
Starting program: /sbin/asterisk -cvvv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Program received signal SIGILL, Illegal instruction.
0x00000000005bfd19 in tzload ()
Missing separate debuginfos, use: debuginfo-install foo.x86_64
(gdb) bt
#0 0x00000000005bfd19 in tzload ()
#1 0x00000000005c0bb7 in ast_tzset ()
#2 0x00000000005c3a18 in ast_localtime ()
#3 0x000000000052d6d6 in ast_log_full ()
#4 0x000000000052f4e0 in ast_log_callid ()
#5 0x000000000052f72f in __ast_verbose_ap ()
#6 0x000000000052fa68 in __ast_verbose ()
#7 0x00000000004532cb in print_intro_message ()
#8 0x0000000000434cdf in main ()
The problem does not occur with CentOS 7.3.
I ran strace with CentOS 7.3 and I see this:
access("/etc/localtime", R_OK) = 0
open("/etc/localtime", O_RDONLY) = 3
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0"..., 41992) = 1892
close(3) = 0
open("/usr/share/zoneinfo/posixrules", O_RDONLY) = 3
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\4\0\0\0\0"..., 41992) = 3519
close(3) = 0
gettid() = 27501
futex(0x8a1ff0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(1, "Asterisk certified/13.13-cert1, "..., 84Asterisk certified/13.13-cert1, Copyright (C) 1999 - 2014, Digium, Inc. and others.
) = 84
write(1, "Created by Mark Spencer <markste"..., 46Created by Mark Spencer markster@digium.com
) = 46
write(1, "Asterisk comes with ABSOLUTELY N"..., 83Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
On CentOS 7.4, asterisk closes /etc/localtime
, but then crashes:
access("/etc/localtime", R_OK) = 0
open("/etc/localtime", O_RDONLY) = 3
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\6\0\0\0\6\0\0\0\0"..., 41992) = 3559
close(3) = 0
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPN, si_addr=0x5bfd19} ---
+++ killed by SIGILL (core dumped) +++
Illegal instruction
I tried on different hardware, but Asterisk 13.13-cert1 always crashed with CentOS 7.4.
Any idea what the problem may be?
Regards,
Ouss