debug apache segmentation fault

ps auxw | grep httpd | awk '{print"-p " $2}' | xargs strace -o /tmp/strace.log -ff -s4096 -r
for i in `ls /tmp/strace*`; do echo $i; cat $i | cut -c11-17 | sort -rn | head; done | more
grep -i segmentation /var/log/httpd/error_log
tail -n 200 /tmp/strace.log.14275 | more
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s