#34333 [NEW]: PHP5.1 crash / immediate exit
| From: | php at sagi dot org | Date: | Thu, 01 Sep 2005 17:43:00 +0000 |
| Subject: | #34333 [NEW]: PHP5.1 crash / immediate exit | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-84313@lists.php.net to get a copy of this message | ||
From: php at sagi dot org
Operating system: Linux
PHP version: 5CVS-2005-09-01 (CVS)
PHP Bug Type: Reproducible crash
Bug description: PHP5.1 crash / immediate exit
Description:
------------
I'm trying to run the latest snapshot, php5-200509011630, on i686 machine
running debian sarge, apache2 sapi.
It compiles without any problem, but 'make install' fails with the
following:
Installing PEAR environment: /usr/local/php5/share/pear/
make[1]: *** [install-pear-installer] Error 1
make: *** [install-pear] Error 2
It seems like the CLI bin and the apache2 module were installed, but when
running php -v, the program just exists (no crash):
root@damka:~# /usr/local/php5/bin/php -v
root@damka:~#
GDB output:
(gdb) run
Starting program: /usr/local/php5/bin/php
[Thread debugging using libthread_db enabled]
[New Thread 1076854912 (LWP 1377)]
Program exited with code 01.
(gdb)
Strace: http://beep.boom.org.il/~sagi/bugs/php5_200509011630_strace.txt
When running as apache2 module, it crashes immediately when getting the
first PHP request. Backtrace:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1079532448 (LWP 1394)]
0x40884031 in php_handler (r=0x81ce510) at
/usr/local/src/php5-200509011630/sapi/apache2handler/sapi_apache2.c:496
496 if (!AP2(engine)) {
(gdb) bt
#0 0x40884031 in php_handler (r=0x81ce510) at
/usr/local/src/php5-200509011630/sapi/apache2handler/sapi_apache2.c:496
#1 0x080783a5 in ap_run_handler ()
#2 0x080789b0 in ap_invoke_handler ()
#3 0x08069c9a in ap_process_request ()
#4 0x0806512d in _start ()
#5 0x081ce510 in ?? ()
#6 0x00000004 in ?? ()
#7 0x081ce510 in ?? ()
#8 0x0808373c in ap_run_pre_connection ()
#9 0x080835f5 in ap_run_process_connection ()
#10 0x080769a4 in ap_graceful_stop_signalled ()
#11 0x08076bbb in ap_graceful_stop_signalled ()
#12 0x08076c18 in ap_graceful_stop_signalled ()
#13 0x0807748a in ap_mpm_run ()
#14 0x0807dabd in main ()
(gdb)
PHP was configured with the following parameters:
./configure \
--prefix=/usr/local/php5 \
--with-apxs2=/usr/bin/apxs2 \
--with-zlib \
--with-mysql=shared \
--with-pgsql=shared \
--with-sqlite=shared \
--with-pdo=shared \
--with-pdo-pgsql=shared \
--with-pdo-mysql=shared \
--with-pdo-sqlite=shared \
--with-pear=/usr/local/php5/share/pear \
--with-xmlrpc \
--enable-soap \
--with-gettext=shared \
--with-gd=shared \
--with-jpeg-dir=shared,/usr \
--with-xsl=shared \
--enable-memory-limit
php-5.1.0RC1 works without any problems with the very same configuration
on the same machine.
--
Edit bug report at http://bugs.php.net/?id=34333&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34333&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34333&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34333&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34333&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34333&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34333&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34333&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34333&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34333&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34333&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34333&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34333&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34333&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34333&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34333&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34333&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34333&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34333&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34333&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34333&r=mysqlcfg