From:             [EMAIL PROTECTED]
Operating system: Windows NT Server 4
PHP version:      4.0CVS-2002-03-04
PHP Bug Type:     Apache2 related
Bug description:  Apache crash when using apache2filter and latest CVS

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
-- 
Edit bug report at http://bugs.php.net/?id=15859&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=15859&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=15859&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=15859&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15859&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15859&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15859&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=15859&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=15859&r=submittedtwice

Reply via email to