[php-maint] Bug#549492: php5-cgi causes segmention fault

Vincent Caron vcaron at bearstech.com
Wed Oct 28 02:42:02 UTC 2009


Package: php5-cgi
Version: 5.2.6.dfsg.1-1+lenny3
Followup-For: Bug #549492

I'm having quite frequent segfaults (1 out of 100 requests) via php5-cgi
(behind Apache2 + mod_fcgid). Traced widh php5-dbg + gbd, all traces look
the same, _zend_hash_add_or_update with arg arKey="REMOTE_ADDR" all the
time:


Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7f6309f79700 (LWP 13455)]
0x0000000000676129 in _zend_hash_add_or_update (ht=0x36e1ca0, arKey=0x2a7e400 "REMOTE_ADDR", nKeyLength=12, pData=0x80000002c, nDataSize=32767, pDest=0x408c0a0a, flag=6494262)
    at /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_hash.c:402
402     /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_hash.c: No such file or directory.
        in /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_hash.c
(gdb) bt
#0  0x0000000000676129 in _zend_hash_add_or_update (ht=0x36e1ca0, arKey=0x2a7e400 <Address 0x2a7e400 out of bounds>, nKeyLength=12, pData=Cannot access memory at address 0x7fff11f85038
)
    at /tmp/buildd/php5-5.2.6.dfsg.1/Zend/zend_hash.c:402
Cannot access memory at address 0x7fff11f85078



-- System Information:
Debian Release: 5.0.3
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-cgi depends on:
ii  libbz2-1.0      1.0.5-1                  high-quality block-sorting file co
ii  libc6           2.7-18                   GNU C Library: Shared libraries
ii  libcomerr2      1.41.3-1                 common error description library
ii  libdb4.6        4.6.21-11                Berkeley v4.6 Database Libraries [
ii  libkrb53        1.6.dfsg.4~beta1-5lenny1 MIT Kerberos runtime libraries
ii  libmagic1       4.26-1                   File type determination library us
ii  libpcre3        7.6-2.1                  Perl 5 Compatible Regular Expressi
ii  libssl0.9.8     0.9.8g-15+lenny5         SSL shared libraries
ii  libxml2         2.6.32.dfsg-5+lenny1     GNOME XML library
ii  mime-support    3.44-1                   MIME files 'mime.types' & 'mailcap
ii  php5-common     5.2.6.dfsg.1-1+lenny3    Common files for packages built fr
ii  tzdata          2009l-0lenny1            time zone and daylight-saving time
ii  ucf             3.0016                   Update Configuration File: preserv
ii  zlib1g          1:1.2.3.3.dfsg-12        compression library - runtime

php5-cgi recommends no packages.

Versions of packages php5-cgi suggests:
ii  php-pear           5.2.6.dfsg.1-1+lenny3 PEAR - PHP Extension and Applicati

-- no debconf information





More information about the pkg-php-maint mailing list