#36182 [NEW]: PHP CLI segfaults on exit in trsm_shutdown

From: Date: Fri, 27 Jan 2006 18:56:58 +0000
Subject: #36182 [NEW]: PHP CLI segfaults on exit in trsm_shutdown
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92558@lists.php.net to get a copy of this message
From:             zeekec at mad dot scientist dot com
Operating system: Gentoo
PHP version:      5.1.2
PHP Bug Type:     Reproducible crash
Bug description:  PHP CLI segfaults on exit in trsm_shutdown

Description:
------------
When running the php commandline interface, php segfaults on exit.

Reproduce code:
---------------
php -v
PHP 5.1.2-gentoo (cli) (built: Jan 27 2006 13:01:11) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
Segmentation fault

Configured with:
./configure --prefix=/usr/lib/php5 --sysconfdir=/etc
--cache-file=./config.cache --enable-cli --disable-cgi
--with-config-file-path=/etc/php/cli-php5 --with-config-file-scan
-dir=/etc/php/cli-php5/ext-active --without-pear --enable-bcmath=shared
--with-bz2=shared --enable-calendar=shared --with-curl=shared
--with-curlwrappers=shared --disable-dbase
--enable-exif=shared --without-fbsql --without-fdftk --disable-filepro
--enable-ftp=shared --with-gettext=shared --with-gmp=shared --disable-hash
--without-hwapi --without-infor
mix --without-kerberos --enable-mbstring=shared --with-mcrypt=shared
--disable-memory-limit --with-mhash=shared --with-ming=shared
--without-msql --without-mssql --with-ncurses=
shared --without-oci8 --without-oci8 --with-openssl=shared
--with-openssl-dir=/usr --enable-pcntl=shared --disable-pdo
--without-pgsql --with-pspell=shared --without-recode --di
sable-reflection --disable-simplexml --disable-shmop --without-snmp
--disable-soap --enable-sockets=shared --without-sybase
--without-sybase-ct --enable-sysvmsg=shared --enable-
sysvsem=shared --enable-sysvshm=shared --with-tidy=shared --disable-wddx
--disable-xmlreader --disable-xmlwriter --without-xmlrpc --with-xsl=shared
--with-zlib=shared --enable-d
ebug --enable-dba=shared --without-cdb --with-db4=shared
--with-flatfile=shared --with-gdbm=shared --with-inifile=shared
--without-qdbm --with-freetype-dir=/usr --with-t1lib=/us
r --disable-gd-jis-conv --enable-gd-native-ttf --with-jpeg-dir=/usr
--with-png-dir=/usr --with-xpm-dir=/usr/X11R6 --with-gd --with-imap=shared
--with-imap-ssl --with-ldap=shared
 --with-ldap-sasl --with-mysql=shared,/usr/lib/mysql
--with-mysql-sock=/var/run/mysqld/mysqld.sock --without-mysqli
--with-readline --without-libedit --disable-session --enable-
sqlite-utf8 --with-pic --enable-maintainer-zts --enable-experimental-zts

Expected result:
----------------
php -v
PHP 5.1.2-gentoo (cli) (built: Jan 27 2006 13:01:11) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies


Actual result:
--------------
gdb --args php -v
GNU gdb 6.4
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i686-pc-linux-gnu"...Using host libthread_db
library "/lib/tls/libthread_db.so.1".

(gdb) run
Starting program: /usr/bin/php -v
[Thread debugging using libthread_db enabled]
[New Thread -1208424768 (LWP 3847)]
PHP 5.1.2-gentoo (cli) (built: Jan 27 2006 13:01:11) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208424768 (LWP 3847)]
0xb7be47d6 in ?? ()
(gdb) bt
#0  0xb7be47d6 in ?? ()
#1  0x082164c9 in tsrm_shutdown () at
/home/gentoo/tmp/portage/php-5.1.2/work/php-5.1.2/TSRM/TSRM.c:180
#2  0x08304c0e in main (argc=2, argv=0xbfebc4c4) at
/home/gentoo/tmp/portage/php-5.1.2/work/php-5.1.2/sapi/cli/php_cli.c:1240
(gdb)

-- 
Edit bug report at http://bugs.php.net/?id=36182&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=36182&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=36182&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=36182&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36182&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=36182&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36182&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36182&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36182&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36182&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36182&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=36182&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=36182&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36182&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36182&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36182&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36182&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36182&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36182&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36182&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36182&r=mysqlcfg


Thread (7 messages)

« previous php.bugs (#92558) next »