Apache2 mod-wsgi segfault on double reload
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mod-wsgi (Ubuntu) |
Incomplete
|
Medium
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
# Issue Description
Currently, Apache generates a segmentation fault with "libapache2-
The issue might arise when "apache2ctl graceful" is triggered by logrotate as a postrotate operation several times (i.e. used in several config files).
## System Infos
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Kernel: 4.4.0-34-generic
Architecture: x86_64
## Package versions
apache2: 2.4.18-2ubuntu3
libapache2-
## Steps to reproduce
* Create vhost config with WSGIDaemonProcess directive and enable site
* Issue double reload: apache2ctl graceful && apache2ctl graceful
## Outcome
* Segmentation fault
## Core Dump of Apache
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
Core was generated by `/usr/sbin/apache2 -k start'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f6b6d010640 in ?? ()
No symbol table info available.
#1 0x00007f6b6fcbb3d0 in __libc_sigaction (sig=10, act=0x7fffaf18b430, oact=0x7fffaf18
at ../sysdeps/
result = <optimized out>
kact = {k_sa_handler = 0x7fffaf18b3b0, sa_flags = 140099413790480,
koact = {k_sa_handler = 0x7fffaf18b8a0, sa_flags = 1, sa_restorer = 0x0, sa_mask = {
__val = {582, 93750, 1, 140099416110048, 94201486782229, 0, 0, 0, 140099424570760, 0,
#2 0x0000000000000000 in ?? ()
No symbol table info available.
# Apport log attached
Add
WSGIDaemonProc ess example.com processes=2 threads=15 display- name=%{ GROUP}
WSGIProcessGro up example.com
to /etc/apache2/ sites-enabled/ 000-default. conf of a default install.
Processes:
# ps axlf | grep wsg
0 0 26860 25750 20 0 14856 1100 pipe_w S+ ? 0:00 \_ grep --color=auto wsg
5 33 26765 26764 20 0 356176 12428 poll_s Sl ? 0:00 \_ (wsgi:example.com -k start
5 33 26766 26764 20 0 356168 12448 poll_s Sl ? 0:00 \_ (wsgi:example.com -k start
Looping over apache2ctl graceful triggers a crash.
I tried to get a better backtrace with more debug packages and such - attaching that...
This is from cosmic using 4.5.17-1 there is a changelog of wsgi 4.1 reading much like it at [1].
Good issues come back.
Never the less I'd ask you to report also upstream and mention the bug URL you created to track their activity on it as well.Especially since they already fixed the same in 4.1 they might be interested.
[1]: http:// modwsgi. readthedocs. io/en/develop/ release- notes/version- 4.1.0.html