Every sunday night during debian squeeze's logrotation, apache crashes when postlogrotation attemts to reload configuration, and/or restart apache. I've even tried reconfiguring the logrotation by hard restarting (stop start) the service, with the same faults.
What happends is that apache acctually seems to be starting fine, but every request throws the following error in apaches error.log:
[notice] child pid xxxx exit signal Segmentation fault (11)
If I restart apache manually once more, it works fine again. Does anyone have any idea why this is happening?
The AWS instance is running debian squeeze, apache 2.2.16, php 5.4.32 and varnish 3 (if it matters).
Any suggestions is very welcome. If theres relevant info I've missed, tell me!
UPDATE: I moved the Magento sites to another server, and the problem stopped occurring (even though there are still a few other sites left), and it didn't happen on the new server. Still few ideas as to what caused it.
env
print when you run it in your interactive shell?root@<hostname>:~# env TERM=xterm-256color SHELL=/bin/bash SSH_CLIENT=<my ip> 57029 22 SSH_TTY=/dev/pts/0 USER=root MAIL=/var/mail/root PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin PWD=/root LANG=nb_NO.UTF-8 SHLVL=1 HOME=/root LOGNAME=root SSH_CONNECTION=<my ip> 57029 xx.xx.xx.xxx 22 LC_CTYPE=UTF-8 _=/usr/bin/env
logrotate -vf /etc/logrotate.d/apache2
and check the output.