ID:               35484
 User updated by:  minnoce at polito dot it
 Reported By:      minnoce at polito dot it
-Status:           Bogus
+Status:           Open
 Bug Type:         Apache2 related
 Operating System: Linux RHEL 4
-PHP Version:      4.4.2RC1
+PHP Version:      5.1.1
 New Comment:

Please Re-Open!
The bug #35029 as marked Closed, but the bug is still there!

I reproduced this bug on Apache 2.0.55 + PHP 5.1.1 as module (all
compiled from sources).

The compile configurations are as shown above (in my previous
comment).

Follow the complete GDB backtrace:
# gdb /services/apache/bin/httpd /tmp/php/core.29747
GNU gdb Red Hat Linux (6.3.0.0-1.63rh)
Copyright 2004 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-redhat-linux-gnu"...(no debugging
symbols found)
Using host libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `/services/apache/bin/httpd -f
/services/httpd/conf/httpd.conf -d /services/apac'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libssl.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libssl.so.4
Reading symbols from /lib/libcrypto.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypto.so.4
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging
symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /lib/libcom_err.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libresolv.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from
/dati/services/apache_so-2.0.55/lib/libaprutil-0.so.0...
(no debugging symbols found)...done.
Loaded symbols for /services/apache_so-2.0.55/lib/libaprutil-0.so.0
Reading symbols from /usr/lib/libgdbm.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libgdbm.so.2
Reading symbols from /lib/tls/i686/libdb-4.2.so...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/i686/libdb-4.2.so
Reading symbols from /usr/lib/libexpat.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from
/dati/services/apache_so-2.0.55/lib/libapr-0.so.0...
(no debugging symbols found)...done.
Loaded symbols for /services/apache_so-2.0.55/lib/libapr-0.so.0
Reading symbols from /lib/tls/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/librt.so.1
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...
(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/tls/libpthread.so.0...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libpthread.so.0
Reading symbols from /lib/libdl.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols
found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /lib/ld-linux.so.2...
(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from
/dati/services/apache_so-2.0.55/modules/libphp551.so...(no debugging
symbols found)...done.
Loaded symbols for /services/apache/modules/libphp551.so
Reading symbols from /usr/lib/libmysqlclient.so.14...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmysqlclient.so.14
Reading symbols from
/dati/services/libmcrypt-2.5.7/lib/libmcrypt.so.4...(no debugging
symbols found)...done.
Loaded symbols for /services/libmcrypt-2.5.7/lib/libmcrypt.so.4
Reading symbols from /usr/lib/libltdl.so.3...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libltdl.so.3
Reading symbols from /usr/lib/libldap-2.2.so.7...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libldap-2.2.so.7
Reading symbols from /usr/lib/liblber-2.2.so.7...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/liblber-2.2.so.7
Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libpng12.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpng12.so.0
Reading symbols from /usr/lib/libjpeg.so.62...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /usr/lib/libcurl.so.3...
(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcurl.so.3
Reading symbols from /usr/lib/libidn.so.11...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /usr/lib/libxml2.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2

#0  0x01146c60 in _zend_hash_index_update_or_next_insert () from
/services/apache/modules/libphp551.so
(gdb) where
#0  0x01146c60 in _zend_hash_index_update_or_next_insert () from
/services/apache/modules/libphp551.so
#1  0x011493fb in zend_register_resource () from
/services/apache/modules/libphp551.so
#2  0x0110912e in _php_stream_alloc () from
/services/apache/modules/libphp551.so
#3  0x0110eb4f in _php_stream_fopen_from_fd () from
/services/apache/modules/libphp551.so
#4  0x0110fa56 in _php_stream_fopen () from
/services/apache/modules/libphp551.so
#5  0x011102c0 in _php_stream_fopen_with_path () from
/services/apache/modules/libphp551.so
#6  0x0110c6bb in _php_stream_open_wrapper_ex () from
/services/apache/modules/libphp551.so
#7  0x010f6f35 in zif_set_time_limit () from
/services/apache/modules/libphp551.so
#8  0x0114fb90 in zend_stream_fixup () from
/services/apache/modules/libphp551.so
#9  0x0111fe79 in compile_file () from
/services/apache/modules/libphp551.so
#10 0x0113e821 in zend_execute_scripts () from
/services/apache/modules/libphp551.so
#11 0x011be557 in zend_get_zval_ptr_ptr () from
/services/apache/modules/libphp551.so
#12 0x080ab2b5 in ap_invoke_handler ()
#13 0x080c878d in ap_run_sub_req ()
#14 0x08067399 in _start ()
#15 0x08f19fd8 in ?? ()
#16 0x08eecd58 in ?? ()
#17 0x08eee670 in ?? ()
#18 0x08eee898 in ?? ()
#19 0x00002000 in ?? ()
#20 0x00000000 in ?? ()


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

[2005-11-30 13:34:38] [EMAIL PROTECTED]

Actually it wasn't even closed.


------------------------------------------------------------------------

[2005-11-30 13:29:13] minnoce at polito dot it

Please, the bug #35029 seem's to be fixed (for the user who entered)
with latest PHP from CVS.
But that's NOT true for me!

Maybe You want to reopen the bug #35029...

------------------------------------------------------------------------

[2005-11-30 12:35:05] [EMAIL PROTECTED]

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #35029.

------------------------------------------------------------------------

[2005-11-30 12:31:36] minnoce at polito dot it

Description:
------------
I'm compiling PHP with this configuration line:

./configure \
"--prefix=/services/php-4.4-CVS" \
"--with-apxs2=/services/apache/bin/apxs" \
"--with-openssl" \
"--with-config-file-path=/services/httpd/conf" \
"--with-mysql=/usr" \
"--with-zlib" \
"--with-gd" \
"--with-jpeg-dir" \
"--with-png-dir" \
"--with-ldap" \
"--with-freetype-dir" \
"--with-mcrypt=/services/libmcrypt" \
"--with-curl" \
"--with-freetds=/services/freetds" \
"--enable-mbstring"

All the PHP 4.3.11, 4.4.1, 4.4-LATEST-CVS used as module under Apache
2.0.54 work fine.

All the PHP 4.3.11, 4.4.1m 4.4-LATEST-CVS used as module under Apache
2.0.55 cause a segmentation fault when I try to include some PHP script
with more than one Apache's "include virtual" (even a simple <? echo
'TEST'; ?>).

Examples:
- test.html
<html>
<body>
<!--#include virtual="test.php" -->
<!--#include virtual="test.php" -->
</body>
</html>

- test.php
<? echo 'TEST'; ?>

With only one "include virtual" all works fine.
With the two include virtual the Apache child process associated exit
with segmentation fault after the output of the first include.



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35484&edit=1

Reply via email to