Bug 62727 - Apache graceful restart crash
Summary: Apache graceful restart crash
Status: NEEDINFO
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.6
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-17 13:48 UTC by Denis O. Pavlov
Modified: 2018-09-17 14:27 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Denis O. Pavlov 2018-09-17 13:48:41 UTC
Apache 2.4.6 (Cent OS 7 package httpd-2.4.6-80.el7.centos.1.x86_64) is crashing during graceful restart.

In error_log:
[core:notice] [pid 31670] AH00060: seg fault or similar nasty error detected in the parent process

# gdb /sbin/httpd /var/log/httpd/core/core-httpd-11-0-0-19797-1537171675
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-110.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/sbin/httpd...Reading symbols from /usr/lib/debug/usr/sbin/httpd.debug...done.
done.
[New LWP 19797]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/httpd -DFOREGROUND'.
Program terminated with signal 11, Segmentation fault.
#0  __GI___libc_free (mem=0x970ea725) at malloc.c:2935
2935      if (chunk_is_mmapped(p))                       /* release mmapped memory. */

strace -p 23725:
...
stat("/etc/krb5.conf", {st_mode=S_IFREG|0644, st_size=590, ...}) = 0
open("/etc/krb5.conf", O_RDONLY)        = 66
fcntl(66, F_SETFD, FD_CLOEXEC)          = 0
fstat(66, {st_mode=S_IFREG|0644, st_size=590, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f01ae275000
read(66, "# Configuration snippets may be "..., 4096) = 590
openat(AT_FDCWD, "/etc/krb5.conf.d/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 67
getdents(67, /* 2 entries */, 32768)    = 48
getdents(67, /* 0 entries */, 32768)    = 0
close(67)                               = 0
read(66, "", 4096)                      = 0
close(66)                               = 0
munmap(0x7f01ae275000, 4096)            = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x970ea71d} ---
chdir("/var/log/httpd/core")            = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [], SA_RESTORER|SA_INTERRUPT, 0x7f01acd496d0}, {SIG_DFL, [], SA_RESTORER|SA_RESETHAND, 0x7f01acd496d0}, 8) = 0
write(2, "[Mon Sep 17 11:46:40.807530 2018"..., 133) = 133
kill(23725, SIGSEGV)                    = 0
rt_sigreturn({mask=[]})                 = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SI_USER, si_pid=23725, si_uid=0} ---
+++ killed by SIGSEGV (core dumped) +++
Comment 1 Eric Covener 2018-09-17 14:27:40 UTC
You'll need to report this to redhat or reproduce on a recent source release to move forward.