php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34333 PHP5.1 crash / immediate exit
Submitted: 2005-09-01 19:42 UTC Modified: 2005-09-02 11:20 UTC
From: php at sagi dot org Assigned:
Status: Closed Package: Reproducible crash
PHP Version: 5CVS-2005-09-01 (CVS) OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at sagi dot org
New email:
PHP Version: OS:

 

 [2005-09-01 19:42 UTC] php at sagi dot org
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.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-02 00:23 UTC] sniper@php.net
Can not reproduce. Try with latest CVS as of now and use this configure line:

# ./configure --disable-all \
--prefix=/usr/local/php5 \
--with-apxs2=/usr/bin/apxs2

And make sure you don't have multiple LoadModule lines or disabled such in your httpd.conf. 

And if "php -v" doesn't seem to work, try "php -n -v"


 
 [2005-09-02 11:20 UTC] php at sagi dot org
Works with php5-200509020830, even with full configuration.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 02 03:00:02 2025 UTC