From: MichaelGlazer at quickenloans dot com
Operating system: WinXP
PHP version: 4.3.4
PHP Bug Type: Reproducible crash
Bug description: Tomcat PHP Servlet Segfaults
Description:
------------
I have a WinXP with the latest PHP and Tomcat.
After following the instructions on how to make a servlet of PHP on Tomcat
I load a phpinfo file.
It displays the file properly but on reloading the page Tomcat segfaults.
Below (in actual result) is the error in the Tomcat log:
Actual result:
--------------
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
PC=0x390408C
Function=zend_hash_index_update_or_next_insert+0x2C
Library=C:\WINDOWS\System32\php4ts.dll
Current Java thread:
at net.php.reflect.setResultFromObject(Native Method)
at net.php.reflect.setResult(reflect.java:105)
at net.php.servlet.readCookies(servlet.java:92)
at net.php.servlet.send(Native Method)
at net.php.servlet.service(servlet.java:190)
at net.php.servlet.service(servlet.java:214)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:805)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:696)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:605)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:677)
at java.lang.Thread.run(Unknown Source)
Dynamic libraries:
0x00400000 - 0x00406000 C:\Program Files\Java\j2re1.4.2_02\bin\java.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78086000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08138000 C:\Program
Files\Java\j2re1.4.2_02\bin\client\jvm.dll
0x77D40000 - 0x77DCC000 C:\WINDOWS\system32\USER32.dll
0x77C70000 - 0x77CB0000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x10000000 - 0x10007000 C:\Program Files\Java\j2re1.4.2_02\bin\hpi.dll
0x76F90000 - 0x76FA0000 C:\WINDOWS\System32\Secur32.dll
0x00390000 - 0x0039E000 C:\Program
Files\Java\j2re1.4.2_02\bin\verify.dll
0x003A0000 - 0x003B9000 C:\Program Files\Java\j2re1.4.2_02\bin\java.dll
0x003C0000 - 0x003CD000 C:\Program Files\Java\j2re1.4.2_02\bin\zip.dll
0x02FB0000 - 0x02FBF000 C:\Program Files\Java\j2re1.4.2_02\bin\net.dll
0x71AB0000 - 0x71AC4000 C:\WINDOWS\System32\WS2_32.dll
0x71AA0000 - 0x71AA8000 C:\WINDOWS\System32\WS2HELP.dll
0x71A50000 - 0x71A8B000 C:\WINDOWS\system32\mswsock.dll
0x71A90000 - 0x71A98000 C:\WINDOWS\System32\wshtcpip.dll
0x03840000 - 0x03846000 C:\WINDOWS\system32\phpsrvlt.dll
0x03850000 - 0x0399F000 C:\WINDOWS\System32\php4ts.dll
0x71AD0000 - 0x71AD8000 C:\WINDOWS\System32\WSOCK32.dll
0x771B0000 - 0x772D1000 C:\WINDOWS\system32\ole32.dll
0x77120000 - 0x771AB000 C:\WINDOWS\system32\OLEAUT32.dll
0x039A0000 - 0x039D2000 C:\WINDOWS\System32\ODBC32.dll
0x77340000 - 0x773CB000 C:\WINDOWS\system32\COMCTL32.dll
0x773D0000 - 0x77BC2000 C:\WINDOWS\system32\SHELL32.dll
0x70A70000 - 0x70AD5000 C:\WINDOWS\system32\SHLWAPI.dll
0x763B0000 - 0x763F5000 C:\WINDOWS\system32\comdlg32.dll
0x71950000 - 0x71A34000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
0x1F850000 - 0x1F866000 C:\WINDOWS\System32\odbcint.dll
0x03B80000 - 0x03BA5000 c:\php\extensions\php_curl.dll
0x03BB0000 - 0x03BD7000 C:\WINDOWS\System32\SSLEAY32.dll
0x03BE0000 - 0x03CB8000 C:\WINDOWS\System32\LIBEAY32.dll
0x03CC0000 - 0x03D4B000 c:\php\extensions\php_domxml.dll
0x03D50000 - 0x03E25000 C:\WINDOWS\System32\iconv.dll
0x039E0000 - 0x039E5000 c:\php\extensions\php_shmop.dll
0x03E30000 - 0x03E3A000 c:\php\extensions\php_sockets.dll
0x03E40000 - 0x03E4F000 c:\php\extensions\php_xmlrpc.dll
0x03E50000 - 0x03E58000 c:\php\extensions\php_xslt.dll
0x03E60000 - 0x03EBE000 C:\WINDOWS\System32\sablot.dll
0x03EC0000 - 0x03EE2000 C:\WINDOWS\System32\expat.dll
0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL
Heap at VM Abort:
Heap
def new generation total 768K, used 421K [0x10010000, 0x100e0000,
0x104f0000)
eden space 704K, 59% used [0x10010000, 0x100796a8, 0x100c0000)
from space 64K, 0% used [0x100c0000, 0x100c0000, 0x100d0000)
to space 64K, 0% used [0x100d0000, 0x100d0000, 0x100e0000)
tenured generation total 9332K, used 5596K [0x104f0000, 0x10e0d000,
0x14010000)
the space 9332K, 59% used [0x104f0000, 0x10a673d0, 0x10a67400,
0x10e0d000)
compacting perm gen total 7680K, used 7520K [0x14010000, 0x14790000,
0x18010000)
the space 7680K, 97% used [0x14010000, 0x14768378, 0x14768400,
0x14790000)
Local Time = Mon Dec 22 14:42:19 2003
Elapsed Time = 57
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_02-b03 mixed mode)
#
--
Edit bug report at http://bugs.php.net/?id=26710&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26710&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26710&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26710&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26710&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26710&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26710&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26710&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26710&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26710&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26710&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26710&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26710&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26710&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26710&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26710&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26710&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26710&r=float