ID: 39221 User updated by: kris at k-software dot org Reported By: kris at k-software dot org Status: Open Bug Type: Apache2 related Operating System: windows server 2003 x64 PHP Version: 5CVS-2006-10-20 (snap) New Comment:
It appears that setting the CPU affinity of the apache http process to a single physical processor stops the crashing... Setting the server to NOT use the second hyperthreaded core of the xeons (i.e. CPUs 0+2 or 1+3) seems to solve this random crashing. Will test with a prefork MPM. Previous Comments: ------------------------------------------------------------------------ [2006-10-22 12:49:58] kris at k-software dot org I'm currently unable to track down a single script/function which causes this error, and am therefore unable to provide a code sample. I realise that the bug report is pretty useless without reproducable code, so I'm still investigating and trying to track down the exact cause of the crashes. ------------------------------------------------------------------------ [2006-10-21 20:38:21] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2006-10-21 12:03:28] kris at k-software dot org Dr Watson log file : Application exception occurred: App: C:\Program Files (x86)\Apache Group\Apache2\bin\httpd.exe (pid=2632) When: 10/21/2006 @ 13:02:13.937 Exception number: c0000005 (access violation) *----> System Information <----* Computer Name: SECAMSERVER1 User Name: SYSTEM Terminal Session Id: 0 Number of Processors: 4 Processor Type: EM64T Family 15 Model 4 Stepping 3 Windows Version: 5.2 Current Build: 3790 Service Pack: 1 Current Type: Multiprocessor Free *----> Module List <----* 00000000003e0000 - 00000000003f7000: C:\WINDOWS\system32\odbcint.dll 0000000000400000 - 0000000000405000: C:\Program Files (x86)\Apache Group\Apache2\bin\httpd.exe 00000000007f0000 - 0000000000842000: C:\WINDOWS\syswow64\SHLWAPI.dll 0000000000950000 - 0000000000e14000: C:\php5\php5ts.dll 0000000000e20000 - 0000000000eac000: C:\WINDOWS\syswow64\OLEAUT32.dll 00000000012b0000 - 00000000013bd000: c:\php5\ext\php_gd2.dll 00000000013c0000 - 00000000013df000: c:\php5\ext\php_ldap.dll 00000000013e0000 - 0000000001412000: C:\WINDOWS\system32\SSLEAY32.dll 0000000001420000 - 000000000152b000: C:\WINDOWS\system32\LIBEAY32.dll 0000000001530000 - 00000000016ce000: c:\php5\ext\php_mbstring.dll 00000000016d0000 - 00000000016dc000: c:\php5\ext\php_mysql.dll 00000000016e0000 - 000000000184a000: C:\WINDOWS\system32\LIBMYSQL.dll 0000000001860000 - 000000000188a000: c:\php5\ext\php_pgsql.dll 0000000010000000 - 0000000010009000: C:\php5\php5apache2_2.dll 000000004bf70000 - 000000004bfad000: C:\WINDOWS\system32\ODBC32.dll 000000005f270000 - 000000005f2c9000: C:\WINDOWS\system32\hnetcfg.dll 0000000069500000 - 0000000069517000: C:\WINDOWS\system32\faultrep.dll 000000006ee50000 - 000000006ee59000: C:\Program Files (x86)\Apache Group\Apache2\bin\libapriconv-1.dll 000000006ee60000 - 000000006ee89000: C:\Program Files (x86)\Apache Group\Apache2\bin\libaprutil-1.dll 000000006eec0000 - 000000006eedf000: C:\Program Files (x86)\Apache Group\Apache2\bin\libapr-1.dll 000000006faf0000 - 000000006faf6000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_authz_user.so 000000006fb00000 - 000000006fb06000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_authz_host.so 000000006fb10000 - 000000006fb16000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_authz_groupfile.so 000000006fb20000 - 000000006fb26000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_authz_default.so 000000006fb40000 - 000000006fb46000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_authn_file.so 000000006fb50000 - 000000006fb56000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_authn_default.so 000000006fc00000 - 000000006fc06000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_setenvif.so 000000006fc10000 - 000000006fc19000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_negotiation.so 000000006fc20000 - 000000006fc27000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_mime.so 000000006fc30000 - 000000006fc37000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_log_config.so 000000006fc40000 - 000000006fc48000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_isapi.so 000000006fc50000 - 000000006fc5a000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_include.so 000000006fc60000 - 000000006fc67000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_imagemap.so 000000006fc70000 - 000000006fc76000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_env.so 000000006fc80000 - 000000006fc86000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_dir.so 000000006fc90000 - 000000006fc97000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_cgi.so 000000006fca0000 - 000000006fca8000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_autoindex.so 000000006fcc0000 - 000000006fcc6000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_asis.so 000000006fcd0000 - 000000006fcd6000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_alias.so 000000006fce0000 - 000000006fce6000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_actions.so 000000006fe70000 - 000000006fe7e000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_rewrite.so 000000006fef0000 - 000000006fef6000: C:\Program Files (x86)\Apache Group\Apache2\modules\mod_auth_basic.so 000000006ff00000 - 000000006ff47000: C:\Program Files (x86)\Apache Group\Apache2\bin\libhttpd.dll 0000000071ae0000 - 0000000071ae8000: C:\WINDOWS\System32\wshtcpip.dll 0000000071bb0000 - 0000000071bb9000: C:\WINDOWS\system32\WSOCK32.dll 0000000071bf0000 - 0000000071bf8000: C:\WINDOWS\system32\WS2HELP.dll 0000000071c00000 - 0000000071c17000: C:\WINDOWS\system32\WS2_32.dll 0000000071c40000 - 0000000071c98000: C:\WINDOWS\syswow64\NETAPI32.dll 00000000762b0000 - 00000000762fa000: C:\WINDOWS\syswow64\comdlg32.dll 0000000076920000 - 00000000769e4000: C:\WINDOWS\system32\USERENV.dll 0000000076ed0000 - 0000000076eff000: C:\WINDOWS\system32\DNSAPI.dll 0000000076f10000 - 0000000076f3e000: C:\WINDOWS\syswow64\WLDAP32.dll 0000000076f70000 - 0000000076f77000: C:\WINDOWS\System32\winrnr.dll 0000000076f80000 - 0000000076f88000: C:\WINDOWS\system32\rasadhlp.dll 00000000770e0000 - 00000000771ea000: C:\WINDOWS\system32\SETUPAPI.dll 00000000771f0000 - 0000000077201000: C:\WINDOWS\system32\WINSTA.dll 0000000077530000 - 00000000775c7000: C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.1830_x-ww_1B6F474A\COMCTL32.dll 0000000077670000 - 00000000777a4000: C:\WINDOWS\syswow64\ole32.dll 0000000077b90000 - 0000000077b98000: C:\WINDOWS\syswow64\VERSION.dll 0000000077ba0000 - 0000000077bfa000: C:\WINDOWS\syswow64\msvcrt.dll 0000000077f50000 - 0000000077fec000: C:\WINDOWS\syswow64\ADVAPI32.dll 000000007c8d0000 - 000000007d0d4000: C:\WINDOWS\syswow64\shell32.dll 000000007d4c0000 - 000000007d5f0000: C:\WINDOWS\syswow64\kernel32.dll 000000007d600000 - 000000007d6f0000: C:\WINDOWS\system32\ntdll.dll 000000007d800000 - 000000007d890000: C:\WINDOWS\syswow64\GDI32.dll 000000007d930000 - 000000007da00000: C:\WINDOWS\syswow64\USER32.dll 000000007da20000 - 000000007db00000: C:\WINDOWS\syswow64\RPCRT4.dll 000000007db30000 - 000000007dbb0000: C:\WINDOWS\system32\MSWSOCK.dll 000000007dbd0000 - 000000007dcd3000: C:\WINDOWS\WinSxS\WOW64_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.1830_x-ww_0213CDC8\comctl32.dll *----> State Dump for Thread Id 0x1308 <----* eax=011e8148 ebx=0900d008 ecx=00000001 edx=00000004 esi=01198140 edi=00050008 eip=00959e40 esp=07f3f820 ebp=77bbce33 iopl=0 nv up ei ng nz ac pe cy cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010293 *** WARNING: Unable to verify checksum for C:\php5\php5ts.dll function: php5ts!_zend_mm_free_int 00959e21 06 push es 00959e22 f6c101 test cl,0x1 00959e25 0f85bc010000 jne php5ts!_zend_mm_free_int+0x217 (00959fe7) 00959e2b 24fc and al,0xfc 00959e2d 03c6 add eax,esi 00959e2f f60001 test byte ptr [eax],0x1 00959e32 0f85ec000000 jne php5ts!_zend_mm_free_int+0x154 (00959f24) 00959e38 8b4808 mov ecx,[eax+0x8] 00959e3b 8b500c mov edx,[eax+0xc] 00959e3e 3bca cmp ecx,edx FAULT ->00959e40 89510c mov [ecx+0xc],edx ds:002b:0000000d=???????? 00959e43 894a08 mov [edx+0x8],ecx 00959e46 751d jnz php5ts!_zend_mm_free_int+0x95 (00959e65) 00959e48 8b08 mov ecx,[eax] 00959e4a 81f908010000 cmp ecx,0x108 00959e50 7313 jnb php5ts!_zend_mm_free_int+0x95 (00959e65) 00959e52 c1e903 shr ecx,0x3 00959e55 49 dec ecx 00959e56 ba01000000 mov edx,0x1 00959e5b d3e2 shl edx,cl 00959e5d 8b0b mov ecx,[ebx] *----> Stack Back Trace <----* ChildEBP RetAddr Args to Child 07f3f828 0095a541 0900d008 01198148 00000000 php5ts!_zend_mm_free_int+0x70 (FPO: [2,0,3]) (CONV: cdecl) 07f3f83c 00a020f7 01198148 0af7144c 009e35e3 php5ts!_efree+0x21 (FPO: [1,0,0]) (CONV: cdecl) 07f3f848 009e35e3 01198098 0af70fb8 009e74e7 php5ts!_zval_dtor_func+0x27 (FPO: [1,0,1]) (CONV: cdecl) 07f3f854 009e74e7 0af7144c 0af71880 0ac1d1f0 php5ts!_zval_ptr_dtor+0x23 (FPO: [1,0,1]) (CONV: cdecl) 07f3f86c 00a02129 0af70c08 0af7188c 009e35e3 php5ts!zend_hash_destroy+0x27 (FPO: [EBP 0x77bbce33] [1,0,4]) (CONV: cdecl) 07f3f878 009e35e3 0ac1d1f0 0af71388 009e74e7 php5ts!_zval_dtor_func+0x59 (FPO: [1,0,1]) (CONV: cdecl) 07f3f884 009e74e7 0af7188c 01ac7868 0abf43b0 php5ts!_zval_ptr_dtor+0x23 (FPO: [1,0,1]) (CONV: cdecl) 07f3f89c 00a02129 0abf4548 0abf451c 009e35e3 php5ts!zend_hash_destroy+0x27 (FPO: [EBP 0x07f3fa50] [1,0,4]) (CONV: cdecl) 07f3f8a8 009e35e3 0abf43b0 0abf4510 009e76c7 php5ts!_zval_dtor_func+0x59 (FPO: [1,0,1]) (CONV: cdecl) 07f3f8b4 009e76c7 0abf451c 01b8a1c8 01ac7868 php5ts!_zval_ptr_dtor+0x23 (FPO: [1,0,1]) (CONV: cdecl) 07f3f8cc 009e7733 01ac7868 0abf4510 01b8a1c8 php5ts!zend_hash_apply_deleter+0x97 (FPO: [EBP 0x01b8a1c8] [2,0,4]) (CONV: cdecl) 07f3f8dc 009e2f78 01ac7868 00dedc00 009e3410 php5ts!zend_hash_graceful_reverse_destroy+0x13 (FPO: [1,0,1]) (CONV: cdecl) 07f3f904 7d61f63d 09f28588 07f3f9f0 7d61f5c9 php5ts!shutdown_executor+0x68 (CONV: cdecl) ------------------------------------------------------------------------ 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/39221 -- Edit this bug report at http://bugs.php.net/?id=39221&edit=1