php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15859 Apache crash when using apache2filter and latest CVS
Submitted: 2002-03-04 11:48 UTC Modified: 2002-04-19 11:10 UTC
From: peterd at telephonetics dot co dot uk Assigned:
Status: Closed Package: Apache2 related
PHP Version: 4.0CVS-2002-03-0 OS: Windows NT Server 4
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: peterd at telephonetics dot co dot uk
New email:
PHP Version: OS:

 

 [2002-03-04 11:48 UTC] peterd at telephonetics dot co dot uk
I've compiled the latest beta version of Apache2 and built the latest (2002-03-04) version of PHP to use the Apache2Filter.

It works initially but after a few requests of different pages an Access Violation is generated in apache.  Didn't seem to be too dependent on what the script was although simple scripts (i.e. just calling phpinfo()) didn't seem to cause it.

I think I've seen this before here but I couldn't find it again. so here's the call stack from Visual C++

ap_save_brigade(ap_filter_t * 0x00832068, apr_bucket_brigade * * 0x0083116c, apr_bucket_brigade * * 0x1136fe78, apr_pool_t * 0x00830930) line 473 + 49 bytes
php_output_filter(ap_filter_t * 0x00832068, apr_bucket_brigade * 0x008321d8) line 350 + 32 bytes
ap_pass_brigade(ap_filter_t * 0x00832068, apr_bucket_brigade * 0x008321d8) line 445 + 16 bytes
default_handler(request_rec * 0x00830968) line 2996
ap_run_handler(request_rec * 0x00830968) line 186 + 78 bytes
ap_invoke_handler(request_rec * 0x00830968) line 359 + 9 bytes
ap_process_request(request_rec * 0x00830968) line 290 + 9 bytes
ap_process_http_connection(conn_rec * 0x0082c9b8) line 287 + 9 bytes
ap_run_process_connection(conn_rec * 0x0082c9b8) line 85 + 78 bytes
ap_process_connection(conn_rec * 0x0082c9b8, void * 0x0082c8f8) line 230
worker_main(long 249) line 1077
MSVCRTD! 1020bf53()
KERNEL32! 77f04ede()



Also when compiling the Apache2Filter these error messages were generated.
--------------------Configuration: php4apache2 - Win32 Debug_TS--------------------
Compiling...
apache_config.c
d:\build_area\httpd-2.0.32\srclib\apr\include\apr.h(323) : warning C4142: benign redefinition of type
php_functions.c
d:\build_area\httpd-2.0.32\srclib\apr\include\apr.h(323) : warning C4142: benign redefinition of type
d:\build_area\php4-200203040600\sapi\apache2filter\php_functions.c(91) : warning C4244: 'function' : conversion from '__int64 ' to 'long ', possible loss of data
d:\build_area\php4-200203040600\sapi\apache2filter\php_functions.c(92) : warning C4244: 'function' : conversion from '__int64 ' to 'long ', possible loss of data
sapi_apache2.c
d:\build_area\php4-200203040600\sapi\apache2filter\php_functions.c(91) : warning C4761: integral size mismatch in argument; conversion supplied
d:\build_area\php4-200203040600\sapi\apache2filter\php_functions.c(92) : warning C4761: integral size mismatch in argument; conversion supplied
d:\build_area\httpd-2.0.32\srclib\apr\include\apr.h(323) : warning C4142: benign redefinition of type
d:\build_area\php4-200203040600\sapi\apache2filter\sapi_apache2.c(119) : warning C4018: '<' : signed/unsigned mismatch
Linking...
LINK : fatal error LNK1104: cannot open file "php4ts.lib"
Error executing link.exe.

php4apache2.dll - 1 error(s), 77 warning(s)


The link error is because the php4ts.lib was actually generated as php4ts_debug.lib but the project file didn't reflect this.  Changing that solved the linker problem but the other warnings remained.  the crash also happens in release builds.

The build was just a standard windows PHP build and so was the apache one.  The error occurs in both debug and release builds.

Cheers

Pete Dishman

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-19 11:10 UTC] aaron@php.net
This bug has already been fixed in the latest released version of
PHP, which you can download at http://www.php.net/downloads.php

This has been fixed in both the release branch (4.2.0) and
in HEAD CVS. Please give it another try and thanks for
using Apache/PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC