On Friday, 29 June 2018 10:35:32 CEST mer.at wrote:
> when i do an "apachectl graceful" or "apachectl restart", i get
> segfaults.

I don't think this is a bug in apache, at least not directly.

> if i then do a /etc/init.d/apache2 restart, it works normally
> /etc/init.d/apache2 restart and systemctl restart apache2 do NOT result
> in a segfault.

>             Stack trace of thread 20261:
>             #0  0x00007fa235131677 n/a (libcap-ng.so.0)

Can one of you please check how libcap-ng is pulled into the process. 
Something like this should do the trick (replace XXX with the pid of one of 
your apache processes, you need to be root to do this) :

pid=XXX; for i in $(awk '{ print $6 }' < /proc/$pid/maps|sort -u|grep /) ; do 
readelf -d $i|grep libcap && echo $i ; done

It's not pulled in by mod_fcgid.

Maybe there is a desctructor in libcap-ng that causes the segfault while 
libcap-ng is unloaded during graceful restart. Then it could be possible that 
it crashes or not depending on the load order or exact list of modules.

Reply via email to