ID:               34333
 User updated by:  php at sagi dot org
 Reported By:      php at sagi dot org
-Status:           Feedback
+Status:           Closed
 Bug Type:         Reproducible crash
 Operating System: Linux
 PHP Version:      5CVS-2005-09-01 (CVS)
 New Comment:

Works with php5-200509020830, even with full configuration.


Previous Comments:
------------------------------------------------------------------------

[2005-09-02 00:23:13] [EMAIL PROTECTED]

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-01 19:42:57] 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):
[EMAIL PROTECTED]:~# /usr/local/php5/bin/php -v
[EMAIL PROTECTED]:~#

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 this bug report at http://bugs.php.net/?id=34333&edit=1

Reply via email to