php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11925 Php under with sapi servlet crashes
Submitted: 2001-07-06 06:41 UTC Modified: 2002-03-31 00:00 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: daniel dot dadusc at yoda dot it Assigned:
Status: No Feedback Package: Java related
PHP Version: 4.0.6 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 + 34 = ?
Subscribe to this entry?

 
 [2001-07-06 06:41 UTC] daniel dot dadusc at yoda dot it
I'm using
Redhat 7.1
Resin 2.0 (servlet runner)

Php sapi servlet runs for the first few times then makes the servlet runner crash.
This is the purty stack trace:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4b64e196
Function name=zend_hash_index_update_or_next_insert
Library=/usr/local/lib/libphp4.so

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:79)
    at net.php.servlet.send(Native Method)
    at net.php.servlet.service(servlet.java:165)
    at net.php.servlet.service(servlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
    at com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.jav
    at com.caucho.server.http.Invocation.service(Invocation.java:273)
    at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:128)
    at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:334
    at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:
    at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
    at java.lang.Thread.run(Thread.java:484)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-24 06:08 UTC] yohgaki@php.net
Please test with  PHP 4.1.1+JDK 1.2 and report the result back 
Please do not forget  updating PHP version. Thanks.
 [2002-03-30 01:01 UTC] rodgerballard at qwest dot net
Tried with Java 2 Runtime 1.2. Here is what happens:

The first time it was launched, it ran on the first request ok.

The second request got a:
----
javaw.exe - Application Error

The instruction at "0x09f189ea" referenced memory at 0x00080110". The memory could not be "read".

Click on OK to terminate the program
Click on CANCEL to debug the program

[OK] [Cancel]
----

In the default-event.log I see two entries like this:

----
03/29 21:52:16 error (jcp) Connection reset by peer: JVM_recv in socket input stream read [java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read]
java.net.SocketException: Connection reset by peer: JVM_recv in socket input stream read
	at java.net.SocketInputStream.socketRead(Native Method)
	at java.net.SocketInputStream.read(Unknown Source)
	at java.io.BufferedInputStream.fill(Unknown Source)
	at java.io.BufferedInputStream.read1(Unknown Source)
	at java.io.BufferedInputStream.read(Unknown Source)
	at allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java, Compiled Code)
	at allaire.jrun.jrpp.ProxyEndpoint.readFully(ProxyEndpoint.java:308)
	at allaire.jrun.jrpp.ProxyEndpoint.readInt(ProxyEndpoint.java:326)
	at allaire.jrun.jrpp.ProxyEndpoint.readRequest(ProxyEndpoint.java, Compiled Code)
	at allaire.jrun.jrpp.ProxyService.swapRunnable(ProxyService.java:48)
	at allaire.jrun.ThreadPool.swapRunnable(ThreadPool.java, Compiled Code)
	at allaire.jrun.WorkerThread.run(WorkerThread.java, Compiled Code)
----

So I try a third request, and get:

Could not connect to JRun Server

At the very bottom of the default-event.log, the last item to load is:

03/29 21:54:14 info (JRun) php: init

Nothing after that, so it basically up and died on the php init. The JRun service in service manager is fully stopped.
 [2002-03-31 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC