#23553 [NEW]: segmentation fault in PHP CLI
| From: | bugs at valere dot net | Date: | Thu, 08 May 2003 21:52:02 +0000 |
| Subject: | #23553 [NEW]: segmentation fault in PHP CLI | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-39335@lists.php.net to get a copy of this message | ||
From: bugs at valere dot net
Operating system: FreeBSD-4.8 Stable
PHP version: 4.3.2RC2
PHP Bug Type: Reproducible crash
Bug description: segmentation fault in PHP CLI
1) make install
2) CPPFLAGS="-I/usr/local/include/gd/
-I/usr/local/BerkeleyDB.3.3/include/" \
LDFLAGS=-L/usr/local/BerkeleyDB.3.3/lib/ \
./configure --with-apxs=/usr/local/www/bin/apxs \
--enable-debug \
--with-pgsql=/usr/local/pgsql \
--with-mysql=/usr/local/mysql \
--with-xml \
--with-openssl \
--with-gd \
--with-gettext \
--with-mcrypt \
--with-imap \
--with-zlib-dir=/usr/local/src/zlib-1.1.4 \
--enable-track-vars \
--enable-trans-sid \
--with-db3=/usr/local/BerkeleyDB.3.3 \
--enable-ftp
3) FreeBSD 4.8 stable, postgresql 7.3.2, mysql-4.0.12, gd bundled (2.0.12
compatible), mcrypt >= 2.4.x, zlib 1.1.4, OpenSSL 0.9.7a Feb 19 2003
4) gdb backtrace
Examining /usr/local/src/apache/php-4.3.2RC2/sapi/cli/php...Using cached
time 9
:08:16 May 08, 2003 for /usr/local/src/apache/php-4.3.2RC2/sapi/cli/php
modified 9:08:16 May 08, 2003...up-to-date.
Examining install-pear-installer...non-existent...modified before
source...out-o
f-date.
install-pear-installer:> =
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php
install-pear-installer:? =
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php
/usr/local/src/apache/php-4.3.2RC2/sapi/cli/php -n -dsafe_mode=0
/usr/local/src/
apache/php-4.3.2RC2/pear/install-pear.php
/usr/local/src/apache/php-4.3.2RC2/pea
r/package-*.xml
Segmentation fault (core dumped)
*** Error code 139
Stop in /usr/local/src/apache/php-4.3.2RC2.
*** Error code 1
Stop in /usr/local/src/apache/php-4.3.2RC2.
(root@gw.valere.net) 09:12:39
(523 / 23) [/usr/local/src/apache/php-4.3.2RC2]$: gdb
'/usr/local/src/apache/php
-4.3.2RC2/sapi/cli/php -n -dsafe_mode=0
/usr/local/src/apache/php-4.3.2RC2/pear/
install-pear.php /usr/local/src/apache/php-4.3.2RC2/pear/package-*.xml'
php.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 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 "i386-unknown-freebsd"...Deprecated bfd_read
called a
t /usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbxread.c
line 2
627 in elfstab_build_psymtabs
Deprecated bfd_read called at
/usr/src/gnu/usr.bin/binutils/gdb/../../../../cont
rib/gdb/gdb/dbxread.c line 933 in fill_symbuf
unknown option `-n'
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libcrypt.so.2...done.
Reading symbols from /usr/local/lib/libc-client4.so.8...done.
Reading symbols from /usr/local/pgsql/lib/libpq.so.3...done.
Reading symbols from
/usr/local/mysql/lib/mysql/libmysqlclient.so.12...done.
Reading symbols from /usr/local/lib/libmcrypt.so.8...done.
Reading symbols from /usr/local/lib/libltdl.so.1...done.
Reading symbols from /usr/lib/libpam.so.1...done.
Reading symbols from /usr/local/lib/libintl.so.4...done.
Reading symbols from /usr/local/lib/libpng.so.5...done.
Reading symbols from /usr/local/BerkeleyDB.3.3/lib/libdb-3.3.so...done.
Reading symbols from /usr/lib/libssl.so.3...done.
Reading symbols from /usr/lib/libcrypto.so.3...done.
Reading symbols from /usr/lib/libm.so.2...done.
Reading symbols from /usr/lib/libc.so.4...done.
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/libz.so.2...done.
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Reading symbols from /usr/libexec/ld-elf.so.1...done.
#0 0x2866bd28 in strcmp () from /usr/lib/libc.so.4
(gdb) bt
#0 0x2866bd28 in strcmp () from /usr/lib/libc.so.4
#1 0x283546aa in OBJ_NAME_cleanup () from
/usr/local/pgsql/lib/libpq.so.3
Cannot access memory at address 0x2.
--
Edit bug report at http://bugs.php.net/?id=23553&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23553&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23553&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23553&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23553&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23553&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23553&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23553&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23553&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23553&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23553&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23553&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23553&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23553&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23553&r=gnused