• Bug#265600: apache: Apache dies (segmentation fault) when loading PHP4

    From Mariano Sokal@1:229/2 to All on Sat Aug 14 00:00:11 2004
    From: [email protected]

    Package: apache
    Version: 1.3.31-2
    Severity: normal


    When running 'apachectl start' it dies and does not give any error
    message. This is the last part of the strace I run (it shows a
    segmentation fault at the end).

    I have php4 4.3.4-4 installed.


    lstat64("/etc", {st_mode=S_IFDIR|0755, st_size=5576, ...}) = 0 lstat64("/etc/php4", {st_mode=S_IFDIR|0755, st_size=120, ...}) = 0 lstat64("/etc/php4/apache", {st_mode=S_IFDIR|0755, st_size=72, ...}) = 0 lstat64("/etc/php4/apache/php.ini", {st_mode=S_IFREG|0644,
    st_size=37502, ...}) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=37502, ...}) = 0
    mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
    0) = 0x402f8000
    read(4, "[PHP]\n\n;;;;;;;;;;;\n; WARNING ;\n;"..., 131072) = 37502
    read(4, "", 131072) = 0
    read(4, "", 131072) = 0
    close(4) = 0
    munmap(0x402f8000, 131072) = 0
    open("/etc/protocols", O_RDONLY) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0
    mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
    0) = 0x402f8000
    read(4, "# Internet (IP) protocols\n#\n# Up"..., 131072) = 2478
    close(4) = 0
    munmap(0x402f8000, 131072) = 0
    open("/etc/protocols", O_RDONLY) = 4
    fcntl64(4, F_GETFD) = 0
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    fstat64(4, {st_mode=S_IFREG|0644, st_size=2478, ...}) = 0
    mmap2(NULL, 131072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
    0) = 0x402f8000
    read(4, "# Internet (IP) protocols\n#\n# Up"..., 131072) = 2478
    close(4) = 0
    munmap(0x402f8000, 131072) = 0
    geteuid32() = 0
    getpid() = 6401 unlink("/var/lib/php4/session_mm_apache0.mem") = 0 open("/var/lib/php4/session_mm_apache0.mem", O_RDWR|O_CREAT|O_EXCL,
    0600) = 4
    ftruncate(4, 67108864) = 0
    write(4, "\0\0\0\0", 4) = 4
    mmap2(NULL, 67108864, PROT_READ|PROT_WRITE, MAP_SHARED, 4, 0) =
    0x44c6b000
    close(4) = 0 unlink("/var/lib/php4/session_mm_apache0.sem") = 0 open("/var/lib/php4/session_mm_apache0.sem", O_RDWR|O_CREAT|O_EXCL,
    0600) = 4
    fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
    getpid() = 6401
    fcntl64(4, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) =

    0
    fcntl64(4, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) =

    0
    --- SIGSEGV (Segmentation fault) @ 0 (0) ---
    Process 6401 detached




    -- System Information:
    Debian Release: 3.1
    APT prefers testing
    APT policy: (500, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.6.6-1-k7
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages apache depends on:
    ii apache-common 1.3.31-2 Support files for all Apache webse ii debconf 1.4.30 Debian configuration management sy ii dpkg 1.10.23 Package maintenance system for Deb ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libdb4.2 4.2.52-16 Berkeley v4.2 Database Libraries [ ii libexpat1 1.95.6-8 XML parsing C library - runtime li ii libmagic1 4.09-1 File type determination library us ii libpam0g 0.76-22 Pluggable Authentication Modules l ii logrotate 3.7-2 Log rotation utility
    ii mime