FS#64673 - [libcap-ng] Causes segfaults in apache server when reloading config

Attached to Project: Arch Linux
Opened by Bart De Vries (mogw_ai) - Thursday, 28 November 2019, 10:02 GMT
Last edited by Levente Polyak (anthraxx) - Monday, 31 August 2020, 15:09 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
A known upstream bug in libcap-ng 0.7.9 is causing segfaults in apache. This is a known and identified upstream bug: see links below.
This happens whenever apache httpd reloads its configuration which is once every few hours. This is rendering the apache server useless. The bug only happens when libcap-ng is used as a dependency of php modules. In my case through php-intl, but there are reported cases where other php modules are involved.

This bug has already been solved in upstream version 0.7.10. I have confirmed this by rebuilding from the existing PKGBUILD with upstream version 0.7.10. I have no more segfaults for 3+ days now, even after manually triggering a configuration reload. Before, it would instantly segfault on a configuration reload.

Additional info:
* package version(s): libcap-ng 0.7.9-2
* httpd log file:
[core:notice] [pid 3238] AH00051: child pid 4114 exit signal Segmentation fault (11), possible coredump in /etc/httpd
* journal log entry:
systemd-coredump[714225]: Process 714223 (httpd) of user 66977792 dumped core.

Stack trace of thread 3953:
#0 0x00007fc40958d110 n/a (/usr/lib/php/modules/intl.so)

* links to upstream bug reports
- libcap-ng upstream: https://github.com/stevegrubb/libcap-ng/issues/5
- fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=1680481
- debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=904808

Steps to reproduce:
Install and run apache server with e.g. nextcloud (with php-intl module loaded).
Send reload command: systemctl reload httpd
This task depends upon

Closed by  Levente Polyak (anthraxx)
Monday, 31 August 2020, 15:09 GMT
Reason for closing:  Fixed
Additional comments about closing:  0.7.10-1

Loading...