php.net |  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
Votes:5
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mario dot cormier at polyester dot com
New email:
PHP Version: OS:

 

 [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 (www.aliacom.fr).  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
Function=zend_hash_index_update_or_next_insert+0x20
Library=C:\WINNT\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:93)
	at net.php.servlet.send(Native Method)
	at net.php.servlet.service(servlet.java:188)
	at net.php.servlet.service(servlet.java:212)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
	at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:82)
	at com.caucho.server.http.Invocation.service(Invocation.java:272)
	at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
	at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:216)
	at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
	at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
	at java.lang.Thread.run(Thread.java:579)

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)

Patches

Pull Requests

History

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: http://www.microsoft.com/contentredirect.asp.
 [2002-08-16 12:47 UTC] kalowsky@php.net
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 2.4.7.10
PHP 4.2.3
TOMCAT4.1.12
COCOON2.0.3
JSDK1.4.1

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 servlet.java 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 libphp4.so  inside /usr/java/j2sdk1.4.1/jre/lib with the related correction to the LD_LIBRARY_PATH. I understand that JAVA waiting for a php4.so, but it start to work only through a soft link =>
ln -s libphp4.so php4.so

if  I rename directly libphp4.so as php4.so it does not find any php4 in library.java.path

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

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

<?php
echo "PHP AS A SERVLET";
$a=2.0*5;
echo $a;
?>
It's OK it works... several time, no problem
on the other hand if I try :
<?php
phpinfo();
?>
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
Function=zend_hash_index_update_or_next_insert+0x3B
library=......../i386/libphp4.so
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
Marcel
 [2002-12-08 17:16 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip


 [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-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC