[php-maint] Bug#402735: libapache2-mod-php4: Segmentation fault in php4 double free bug?

Matthijs Mohlmann matthijs at cacholong.nl
Tue Dec 12 12:29:02 CET 2006

Package: libapache2-mod-php4
Version: 4.4.4-8
Severity: grave
Justification: renders package unusable


I've apache 2.2 installed including with libapache2-mod-php4 (same
behaviour if I install fcgid module with php4-cgi). The problem seems to
be a double free bug. Here a backtrace:

root at xciton-pc3 # gdb /usr/sbin/apache2
(gdb) run -X
Starting program: /usr/sbin/apache2 -X
Failed to read a valid object file image from memory.
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1215760704 (LWP 17157)]
0xb7c4489f in free () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb7c4489f in free () from /lib/tls/i686/cmov/libc.so.6
#1  0xb7c4687f in malloc () from /lib/tls/i686/cmov/libc.so.6
#2  0xb76b8c75 in _emalloc () from /usr/lib/apache2/modules/libphp4.so
#3  0xb76cf305 in zend_hash_add_or_update ()
       from /usr/lib/apache2/modules/libphp4.so
#4  0xb76d884a in zend_assign_to_variable_reference ()
          from /usr/lib/apache2/modules/libphp4.so
#5  0xb76db6db in execute () from /usr/lib/apache2/modules/libphp4.so
#6  0xb76dd61f in execute () from /usr/lib/apache2/modules/libphp4.so

If you need more information please ask. It's partially working here so
I can do things and this is on my development box.


Matthijs Mohlmann

-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

More information about the pkg-php-maint mailing list