|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #18939 Access violation in php4ts.dll running as a servlet
Submitted: 2002-08-16 09:48 UTC Modified: 2002-12-24 01:00 UTC
Avg. Score:4.4 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:2 (40.0%)
Same OS:3 (60.0%)
From: mario dot cormier at polyester dot com Assigned:
Status: No Feedback Package: Servlet related
PHP Version: 4.2.2 OS: Windows 2000 Pro SP2
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2002-08-16 09:48 UTC] mario dot cormier at polyester dot com
Running PHP 4.2.2 (binary download) as a servlet under Caucho Resin 2.0.1.  The application I'm trying to run is OBM 0.5.2 (  Following is the error that shows up in Resin's stdout.log.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x9599A40

Current Java thread:
	at net.php.reflect.setResultFromObject(Native Method)
	at net.php.reflect.setResult(
	at net.php.servlet.readCookies(
	at net.php.servlet.send(Native Method)
	at net.php.servlet.service(
	at net.php.servlet.service(
	at javax.servlet.http.HttpServlet.service(
	at com.caucho.server.http.FilterChainServlet.doFilter(
	at com.caucho.server.http.Invocation.service(
	at com.caucho.server.http.CacheInvocation.service(
	at com.caucho.server.http.HttpRequest.handleRequest(
	at com.caucho.server.http.HttpRequest.handleConnection(

Dynamic libraries:
0x00400000 - 0x00405000 	d:\Java\jdk1.4\bin\java.exe
0x77F80000 - 0x77FFB000 	C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0B000 	C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000 	C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DB0000 	C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 	C:\WINNT\system32\MSVCRT.dll
0x6D400000 - 0x6D503000 	d:\Java\jdk1.4\jre\bin\hotspot\jvm.dll
0x77E10000 - 0x77E74000 	C:\WINNT\system32\USER32.dll
0x77F40000 - 0x77F7C000 	C:\WINNT\system32\GDI32.DLL
0x77570000 - 0x775A0000 	C:\WINNT\System32\WINMM.dll
0x75E60000 - 0x75E7A000 	C:\WINNT\System32\IMM32.DLL
0x6CA60000 - 0x6CA68000 	C:\WINNT\System32\LPK.DLL
0x66650000 - 0x666A4000 	C:\WINNT\System32\USP10.dll
0x6D200000 - 0x6D207000 	d:\Java\jdk1.4\jre\bin\hpi.dll
0x6D3D0000 - 0x6D3DD000 	d:\Java\jdk1.4\jre\bin\verify.dll
0x6D240000 - 0x6D255000 	d:\Java\jdk1.4\jre\bin\java.dll
0x6D3F0000 - 0x6D3FD000 	d:\Java\jdk1.4\jre\bin\zip.dll
0x6D340000 - 0x6D34E000 	D:\Java\jdk1.4\jre\bin\net.dll
0x75050000 - 0x75058000 	C:\WINNT\System32\WSOCK32.dll
0x75030000 - 0x75043000 	C:\WINNT\System32\WS2_32.DLL
0x75020000 - 0x75028000 	C:\WINNT\System32\WS2HELP.DLL
0x785C0000 - 0x785CC000 	C:\WINNT\System32\rnr20.dll
0x77980000 - 0x779A4000 	C:\WINNT\System32\DNSAPI.DLL
0x77340000 - 0x77353000 	C:\WINNT\System32\iphlpapi.dll
0x77520000 - 0x77525000 	C:\WINNT\System32\ICMP.DLL
0x77320000 - 0x77337000 	C:\WINNT\System32\MPRAPI.DLL
0x75150000 - 0x75160000 	C:\WINNT\System32\SAMLIB.DLL
0x75170000 - 0x751BF000 	C:\WINNT\System32\NETAPI32.DLL
0x77BE0000 - 0x77BEF000 	C:\WINNT\System32\SECUR32.DLL
0x751C0000 - 0x751C6000 	C:\WINNT\System32\NETRAP.DLL
0x77950000 - 0x77979000 	C:\WINNT\system32\WLDAP32.DLL
0x77A50000 - 0x77B46000 	C:\WINNT\system32\OLE32.DLL
0x779B0000 - 0x77A4B000 	C:\WINNT\system32\OLEAUT32.DLL
0x773B0000 - 0x773DE000 	C:\WINNT\System32\ACTIVEDS.DLL
0x77380000 - 0x773A2000 	C:\WINNT\System32\ADSLDPC.DLL
0x77830000 - 0x7783E000 	C:\WINNT\System32\RTUTILS.DLL
0x77880000 - 0x7790D000 	C:\WINNT\System32\SETUPAPI.DLL
0x77C10000 - 0x77C6D000 	C:\WINNT\System32\USERENV.DLL
0x774E0000 - 0x77512000 	C:\WINNT\System32\RASAPI32.DLL
0x774C0000 - 0x774D1000 	C:\WINNT\System32\rasman.dll
0x77530000 - 0x77552000 	C:\WINNT\System32\TAPI32.dll
0x71730000 - 0x717BA000 	C:\WINNT\system32\COMCTL32.DLL
0x70BD0000 - 0x70C20000 	C:\WINNT\system32\SHLWAPI.DLL
0x77360000 - 0x77379000 	C:\WINNT\System32\DHCPCSVC.DLL
0x775A0000 - 0x77625000 	C:\WINNT\System32\CLBCATQ.DLL
0x777E0000 - 0x777E8000 	C:\WINNT\System32\winrnr.dll
0x74FD0000 - 0x74FEF000 	C:\WINNT\system32\msafd.dll
0x75010000 - 0x75017000 	C:\WINNT\System32\wshtcpip.dll
0x6D350000 - 0x6D357000 	D:\Java\jdk1.4\jre\bin\nio.dll
0x10000000 - 0x10006000 	C:\WINNT\system32\phpsrvlt.dll
0x09500000 - 0x09625000 	C:\WINNT\System32\php4ts.dll
0x1F7B0000 - 0x1F7E3000 	C:\WINNT\System32\ODBC32.dll
0x782F0000 - 0x7852F000 	C:\WINNT\system32\SHELL32.DLL
0x76B30000 - 0x76B6E000 	C:\WINNT\system32\COMDLG32.DLL
0x1F850000 - 0x1F866000 	C:\WINNT\System32\odbcint.dll
0x77920000 - 0x77943000 	C:\WINNT\system32\imagehlp.dll
0x72A00000 - 0x72A2D000 	C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 	C:\WINNT\System32\PSAPI.DLL

Local Time = Fri Aug 16 09:34:02 2002
Elapsed Time = 58
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b65 mixed mode)
# An error report file has been saved as hs_err_pid1892.log.
# Please refer to the file for further information.
Resin 2.0.1 (built Tue Jul 10 13:13:19 PDT 2001)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-16 11:21 UTC] egm_ at hotmail dot com
I have also a related problem.
I'm usign Windows 2000 Server SP2 (All hotfixes).
The application is SquirrelMail version 1.2.7.

The server runs OK for a while, until, it doesn't respond. And the server log show:

The HTTP server encountered an unhandled exception while processing the ISAPI Application '
php4ts!zend_strndup + 0x2B
 + 0xA05C16DC
For additional information specific to this message please visit the Microsoft Online Support site located at:
 [2002-08-16 12:47 UTC]
The microsoft page does not exist, but I am running Win2k IIS/PHP-4.2.2 here, and have not seen this issue.  I consider that bogus.

As for the initial report running as a servlet, I haven't any experience with this webserver... nor do I know if PHP really even works with it (non-documented).  Can you place the error message from hs_err_pid1892.log in the bug report though as well?
 [2002-08-17 11:46 UTC] mario dot cormier at polyester dot com
The log file contains *exactly* the same information I pasted in the original submission.  I would not think Resin per se is the problem, as I managed to see the output of 
<?php phpinfo(); ?> with it.  From my experience, a crash in native code like this one can only result from a bug in the native code or possibly a bug in the JVM.
 [2002-08-17 17:58 UTC] mario dot cormier at polyester dot com
Just marking as "Open" again...
 [2002-10-28 06:37 UTC] bariou at brasnah dot com
RH 7.2 Linux
PHP 4.2.3

It seems to work but .....
I Am enable to run the JAVA extension or PHP as  servlet correctly, for the last test of PHP I try to work with PHP as a servlet. It seems there is a problem with the send () native method of PHP :
(this call is created inside the class from php.../sapi/servlet/ ) => 
Public native send(string requestMethod, String QueryString, String pathInfo, String PathTranslated, String contentType, int contentLength, String authUser, boolean display_sourc_mode).

As developed in the the bug id : 16402, I've also place  inside /usr/java/j2sdk1.4.1/jre/lib with the related correction to the LD_LIBRARY_PATH. I understand that JAVA waiting for a, but it start to work only through a soft link =>
ln -s

if  I rename directly as it does not find any php4 in

java.lang.UnsatisfiedLinkError: no php4 in java.library.path 

With a soft link , It seems to work  with the following file 

echo $a;
It's OK it works... several time, no problem
on the other hand if I try :
The Virtual machine crashes each time.... With the the message than the exception was detected in the native code outside the VM
unexpected Signal: 11 occured at PC=0x4EA8A5BF
Is it a bug in the virtual machine ? I'm circumspect about that ! The ouput is not a well-formed XML tree  ?  But I don't know
 [2002-12-08 17:16 UTC]
Please try using this CVS snapshot:
For Windows:

 [2002-12-24 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2003-01-02 18:10 UTC] brady at dontspam_me_moritzdesigns dot com
I am having an access error as well now, in the latest 4.3.0 release. This under tomcat and windows 2k. The function is not the same as this (zend_hash_index....) I will add the function name when I am able to try this again this evening.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Aug 14 17:03:49 2022 UTC