[php-maint] Bug#528053: php5-cli: Occasionaly crashes with 'Segmentation fault' after execution is finished

Bas Verhoeven debianbug at bserved.nl
Sun May 10 14:32:08 UTC 2009

Package: php5-cli
Version: 5.2.6.dfsg.1-1+lenny2
Severity: important

The php5 cli occasionaly crashes with a 'Segmentation fault' after it is done
executing a simple PHP file.

With sample file 'test.php': <? echo 'hello' . "\n" ?>

soczol at nameless:~$ php5 test.php
soczol at nameless:~$ php5 test.php
soczol at nameless:~$ php5 test.php
Segmentation fault

This also occurs when not parsing a .php file but just running 'php -v':

soczol at nameless:~$ php -v
PHP 5.2.6-1+lenny2 with Suhosin-Patch (cli) (built: Jan 26 2009 22:41:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
Segmentation fault (core dumped)

The generated core file looks pretty useless (mainly because i'm missing the debug

(gdb) bt
#0  0xb6f5ee90 in ?? ()
#1  0xb7818f3b in start_thread () from /lib/libpthread.so.0
#2  0xb7a49bee in clone () from /lib/libc.so.6

I can't reproduce these issues on other systems running the same php version but I
can reproduce this problem on this system.

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.18-6-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages php5-cli 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  libncurses5     5.7+20081213-1           shared libraries for terminal hand
ii  libpcre3        7.6-2.1                  Perl 5 Compatible Regular Expressi
ii  libssl0.9.8     0.9.8g-15+lenny1         SSL shared libraries
ii  libxml2         2.6.32.dfsg-5            GNOME XML library
ii  mime-support    3.44-1                   MIME files 'mime.types' & 'mailcap
ii  php5-common     5.2.6.dfsg.1-1+lenny2    Common files for packages built fr
ii  tzdata          2008h-2                  time zone and daylight-saving time
ii  ucf             3.0016                   Update Configuration File: preserv
ii  zlib1g          1:        compression library - runtime

php5-cli recommends no packages.

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

-- no debconf information

More information about the pkg-php-maint mailing list