ID:               19482
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Feedback
+Status:           Open
 Bug Type:         Reproducible crash
 Operating System: Redhat 7.3
 PHP Version:      4.2.3
 New Comment:

Ok, did this with the new snapshot, however I've figured out what
causes the PHP 4.3.0-dev to hang.  Basically if I use the --with-zlib
configure option, a simple <?phpinfo()?> fails to load correctly.  If I
take this option out, then the <?phpinfo()?> displays correctly.  I
then tried to reinstall zlib (in case it was somehow messed up in
RedHat) but that made no difference.  I tried different variations of
--with-zlib such as:

* --with-zlib
* --with-zlib=/usr/local
* --with-zlib=/usr
* --with-zlib=/usr/local --with-zlib-dir=/usr/local
* --with-zlib=/usr --with-zlib-dir=/usr

If I use any of these, PHP scripts fail to load with the new dev
snapshot.  However, I am using this option with 4.2.3 with no problems.
 Maybe its a bug in the dev snapshot?  If you need any more information
let me know.

Thanks


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

[2002-09-19 20:58:11] [EMAIL PROTECTED]

Please try with a new snapshot from http://snaps.php.net/
as there were some fixes which might have fixed this too.

And please try with ONLY --with-apxs option first. If that works, then
add your options..


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

[2002-09-19 08:53:57] [EMAIL PROTECTED]

Forgot to mention in there I actually did compile the snapshot :)

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

[2002-09-19 08:53:03] [EMAIL PROTECTED]

Sorry if I wasn't specific enough.  Here is what I did

* configure the snapshot with the following options

./configure --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars
--with-openssl=/usr/local/ssl --with-zlib --with-bz2 --with-pspell
--with-db3=/usr/lib --enable-ftp --with-gd
--with-imap=/usr/local/imap-2001a --with-imap-ssl=/usr/local/ssl
--with-ldap --with-jpeg-dir=/usr/lib --with-xpm-dir=/usr/lib
--with-png-dir=/usr/lib --with-freetype-dir=/usr/lib --enable-sigchild
--with-gettext --with-mcrypt --with-xml --with-mysql=/usr/local/mysql
--enable-cli --with-dom --with-dom-xslt --with-dom-exslt --with-mhash
--with-mm --enable-debug

  
* shutdown the web server
* run "make install"
* start up the web server
* restart the web server again for good measure
* request a PHP file with <?phpinfo()?> in it

Basically what happens is that the browser hangs while trying to load
the <?phpinfo()?> file.  It sits there trying  to load the file, and
nothing happens.  Nothing gets printed to the error_log except the
following:  

[Thu Sep 19 09:27:41 2002] [notice] Apache/1.3.26 (Unix) PHP/4.3.0-dev
mod_ssl/2.8.10 OpenSSL/0.9.6g configured -- resuming normal operations
[Thu Sep 19 09:27:41 2002] [notice] Accept mutex: sysvsem (Default:
sysvsem)

So after a minute, I shutdown the web server and now lots of stuff
starts spitting out to the error_log

/usr/local/software/php4-200209181500/main/spprintf.c(143) :  Freeing
0x081804D4 (257 bytes), script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 2 times
/usr/local/software/php4-200209181500/main/output.c(415) :  Freeing
0x081802AC (23 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/output.c(409) :  Freeing
0x0817EA74 (6145 bytes), script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 1 time
/usr/local/software/php4-200209181500/Zend/zend_stack.c(27) :  Freeing
0x0817E6F4 (256 bytes), script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 7 times
/usr/local/software/php4-200209181500/Zend/zend_opcode.c(295) : 
Freeing 0x08182B44 (120 bytes),
script=/usr/local/apache/htdocs/web/test.php
Zend/zend_language_scanner.c(4433) :  Freeing 0x08183A74 (8 bytes),
script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_opcode.c(65) :  Freeing
0x08182B0C (4 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_hash.c(262) :  Freeing
0x08182A7C (89 bytes), script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 66 times
/usr/local/software/php4-200209181500/Zend/zend_compile.c(136) : 
Freeing 0x0817E9BC (54 bytes),
script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_execute.c(1597) : 
Freeing 0x0817E864 (12 bytes),
script=/usr/local/apache/htdocs/web/test.phpZend/zend_language_scanner.c(3054)
:  Freeing 0x0817E604 (84 bytes),
script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/output.c(336) :  Freeing
0x0817E53C (1 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/output.c(340) :  Freeing
0x0817E4F4 (24 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/ext/mbstring/mbstring.c(773) : 
Freeing 0x0817E474 (20 bytes),
script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_hash.c(178) :  Freeing
0x0817E424 (32 bytes), script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 10 times
/usr/local/software/php4-200209181500/main/main.c(1345) :  Freeing
0x0817E2C4 (44 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_API.c(565) : Actual
location (location was relayed)
/usr/local/software/php4-200209181500/main/main.c(1344) :  Freeing
0x0817E284 (12 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/main.c(1327) :  Freeing
0x0817DD34 (44 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_API.c(565) : Actual
location (location was relayed)
/usr/local/software/php4-200209181500/main/main.c(1326) :  Freeing
0x0817DCF4 (12 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/main.c(1429) :  Freeing
0x0817DC04 (12 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/main.c(1382) :  Freeing
0x0817DB54 (44 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_API.c(565) : Actual
location (location was relayed)
/usr/local/software/php4-200209181500/main/main.c(1381) :  Freeing
0x0817DB14 (12 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/php_variables.c(172) : 
Freeing 0x0817DA74 (12 bytes),
script=/usr/local/apache/htdocs/web/test.phpLast leak repeated 49
times
/usr/local/software/php4-200209181500/ext/standard/string.c(2387) : 
Freeing 0x0817DA2C (19 bytes),
script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 49 times
/usr/local/software/php4-200209181500/Zend/zend_hash.c(440) :  Freeing
0x0817CD9C (128 bytes), script=/usr/local/apache/htdocs/web/test.php
Last leak repeated 1 time
/usr/local/software/php4-200209181500/main/main.c(1208) :  Freeing
0x0817B9FC (44 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_API.c(565) : Actual
location (location was relayed)
/usr/local/software/php4-200209181500/main/main.c(1207) :  Freeing
0x0817B9BC (12 bytes), script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/main/php_variables.c(235) : 
Freeing 0x0817B90C (44 bytes),
script=/usr/local/apache/htdocs/web/test.php
/usr/local/software/php4-200209181500/Zend/zend_API.c(565) : Actual
location (location was relayed)
Last leak repeated 1 time
/usr/local/software/php4-200209181500/main/php_variables.c(234) : 
Freeing 0x
817B8CC (12 bytes), script=/usr/local/apache/htdocs/web/test.php
...
...
<lots more stuff>

However, static HTML files load up correctly without any problems.  But
anything that is PHP related fails to display.  Any more help is
appreciated.

Thanks

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

[2002-09-19 05:00:44] [EMAIL PROTECTED]

Exactly WHAT doesn't work with the snapshot?
Did you restart apache after updating PHP? 
In apache error_log you should propably see something about it.. 


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

[2002-09-18 20:51:30] [EMAIL PROTECTED]

Thanks for the quick response.  I tried your suggestion, but the CVS
snapshot doesn't work at all on the machine.  I even tried a simple
<?phpinfo()?> test file, but that failed to load.  If I go back to
4.2.3 everything works fine.  Any ideas about why it completely failed
to load even a simple PHP file?  I used the exact same configure line
that I used for 4.2.3.  Is there anything you suggest I change?  Or any
other error logs that I should check?

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/19482

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

Reply via email to