Apache Sigfault

Discussion in 'Server Operation' started by blackfox123, Feb 9, 2016.

  1. blackfox123

    blackfox123 Member

    I'm getting some very very annoying sigfaults on my apache installation, it's only recently started.
    Any ideas could be great.. I've followed this http://sysadmin.carlusgg.com/?p=197 but i'm not getting any core-dumps for some reason..
    # apachectl -V
    Server version: Apache/2.4.10 (Debian)
    Server built:   Nov 28 2015 14:05:48
    Server's Module Magic Number: 20120211:37
    Server loaded:  APR 1.5.1, APR-UTIL 1.5.4
    Compiled using: APR 1.5.1, APR-UTIL 1.5.4
    Architecture:   64-bit
    Server MPM:     prefork
      threaded:     no
        forked:     yes (variable process count)
    Server compiled with....
    -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
    -D HTTPD_ROOT="/etc/apache2"
    -D SUEXEC_BIN="/usr/lib/apache2/suexec"
    -D DEFAULT_PIDLOG="/var/run/apache2.pid"
    -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
    -D DEFAULT_ERRORLOG="logs/error_log"
    -D AP_TYPES_CONFIG_FILE="mime.types"
    -D SERVER_CONFIG_FILE="apache2.conf"
  2. blackfox123

    blackfox123 Member

    I've just been poking around my logs and i can see
    Feb  9 12:39:47 celeste kernel: conftest[11319]: segfault at 0 ip 0000000000400730 sp 00007fff5034d540 error 4 in conftest[400000+1000]
    Feb  9 12:39:47 celeste kernel: conftest[11342]: segfault at 0 ip 00007f7ef0dd0e6a sp 00007fffceb54ca8 error 4 in libc-2.19.so[7f7ef0d3f000+1a2000]
    Any ideas?
  3. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    You may need to chown your coredump directory to www-data and since the process has been started by root you might need to adjust sysctl like that: sysctl fs.suid_dumpable=2

    After that you should be able to get coredumps you can analyze with
    gdb apache2 -core /tmp/apache-coredumps/COREFILE

Share This Page