Apache2 Segfault after logrotate

Bug #1781576 reported by Robert Hooper
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hello, I have found Apache dying after Logrotate runs. First this happened on the 02th July, then on a different server (but practically identical) on the 07th July and again on server 2 today (13th July).

Logrotate is running daily.

I have attached the crash report from Apache.

Below is an extract from the error logs and a backtrace ran against the coredump:

**Backtrace**
Reading symbols from /usr/sbin/apache2...(no debugging symbols found)...done.
[New LWP 28485]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f36373ca640 in ?? ()
(gdb)
(gdb)
(gdb) bt
#0 0x00007f36373ca640 in ?? ()
#1 <signal handler called>
#2 0x00007f363aacc1ad in apr_pool_clear () from /usr/lib/x86_64-linux-gnu/libapr-1.so.0
#3 0x000055956434c4f4 in main ()

** Apache error log extract **
[Thu Jul 12 06:25:02.832549 2018] [:notice] [pid 1107:tid 139870898558848] FastCGI: process manager initialized (pid 1107)
[Thu Jul 12 06:25:02.842829 2018] [mpm_event:notice] [pid 28485:tid 139870898558848] AH00489: Apache/2.4.18 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2g configured -- resuming normal operations
[Thu Jul 12 06:25:02.842846 2018] [core:notice] [pid 28485:tid 139870898558848] AH00094: Command line: '/usr/sbin/apache2'
[Thu Jul 12 06:25:02.973957 2018] [mpm_event:notice] [pid 28485:tid 139870898558848] AH00493: SIGUSR1 received. Doing graceful restart
[Thu Jul 12 06:25:02.978540 2018] [:alert] [pid 1107:tid 139870898558848] FastCGI: read() from pipe failed (0)
[Thu Jul 12 06:25:02.978556 2018] [:alert] [pid 1107:tid 139870898558848] FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Thu Jul 12 06:25:03.030952 2018] [:notice] [pid 1185:tid 139870898558848] FastCGI: process manager initialized (pid 1185)
[Thu Jul 12 06:25:03.045371 2018] [mpm_event:notice] [pid 28485:tid 139870898558848] AH00489: Apache/2.4.18 (Ubuntu) mod_fastcgi/mod_fastcgi-SNAP-0910052141 OpenSSL/1.0.2g configured -- resuming normal operations
[Thu Jul 12 06:25:03.045388 2018] [core:notice] [pid 28485:tid 139870898558848] AH00094: Command line: '/usr/sbin/apache2'
[Fri Jul 13 06:25:02.569038 2018] [mpm_event:notice] [pid 28485:tid 139870898558848] AH00493: SIGUSR1 received. Doing graceful restart
[Fri Jul 13 06:25:02.744427 2018] [:alert] [pid 1185:tid 139870898558848] (4)Interrupted system call: FastCGI: read() from pipe failed (0)
[Fri Jul 13 06:25:02.751826 2018] [:alert] [pid 1185:tid 139870898558848] (4)Interrupted system call: FastCGI: the PM is shutting down, Apache seems to have disappeared - bye
[Fri Jul 13 06:25:02.871442 2018] [core:notice] [pid 28485] AH00060: seg fault or similar nasty error detected in the parent process
---
Apache2ConfdDirListing: False
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
DistroRelease: Ubuntu 16.04
Ec2AMI: ami-a8d2d7ce
Ec2AMIManifest: (unknown)
Ec2AvailabilityZone: eu-west-1c
Ec2InstanceType: t2.small
Ec2Kernel: unavailable
Ec2Ramdisk: unavailable
Package: apache2 2.4.18-2ubuntu3.9
PackageArchitecture: amd64
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 4.4.0-1062.71-aws 4.4.134
Tags: xenial ec2-images
Uname: Linux 4.4.0-1062-aws x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

_MarkForUpload: True
modified.conffile..etc.apache2.mods-available.mpm_event.conf: [modified]
modified.conffile..etc.logrotate.d.apache2: [modified]
mtime.conffile..etc.apache2.mods-available.mpm_event.conf: 2018-03-08T11:22:04.566334
mtime.conffile..etc.logrotate.d.apache2: 2018-07-17T12:33:28.222731

Revision history for this message
Robert Hooper (7ob) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apache2 (Ubuntu):
status: New → Confirmed
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

Unfortunately without steps to reproduce this is going to be difficult to address.

How are you installing FastCGI? Are you using the libapache2-mod-fcgid package or something else? Is it possible that the bug is in the FastCGI module rather than in Apache itself?

Please report details of all relevant packages, versions and configurations. "apport-collect 1781576" will do this for you. I'm afraid this report may not be able to make any progress, though, unless you are able to debug it yourself.

Changed in apache2 (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Robert Hooper (7ob) wrote : Apache2Modules.txt

apport information

tags: added: apport-collected ec2-images xenial
description: updated
Revision history for this message
Robert Hooper (7ob) wrote : Dependencies.txt

apport information

Revision history for this message
Robert Hooper (7ob) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Robert Hooper (7ob) wrote : error.log.txt

apport information

Revision history for this message
Robert Hooper (7ob) wrote :

I am afraid, I haven't been able to manually replicate the bug myself. It is fairly regular and I am happy to do any extra debug steps you suggest.

Regarding libapache2-mod-fastcgi, it was installed via apt.
It could be a bug in this but I am not sure how I could tell.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for apache2 (Ubuntu) because there has been no activity for 60 days.]

Changed in apache2 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.