php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26252 VM crash after few php pages
Submitted: 2003-11-14 08:10 UTC Modified: 2003-11-17 18:02 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (50.0%)
From: marc at anodin dot net Assigned:
Status: Wont fix Package: Servlet related
PHP Version: 4.3.4 OS: Linux, Windows
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-11-14 08:10 UTC] marc at anodin dot net
Description:
------------
Java VM crash after few php pages (depends of RAM)
with Unexpected Signal : 11 occurred on linux
and Unexpected Signal : EXCEPTION_ACCESS_VIOLATION under Windows.

 libphp4.so was compiled under linux with :
php-4.3.4# ./configure --with-java=/opt/java2 --with-servlet

under windows I've used binary distribution 4.3.4

I've tried with my own Java web server but TomCat 4.0 crashes with same results



Reproduce code:
---------------
A sample page like :

   <?PHP
     $today = date("d-m-Y");
     print "Today's date is $today\n";
   ?>

also with <? phpinfo(); ?>


Expected result:
----------------
normally php page


Actual result:
--------------
VM Crash under linux-2.4.22 with HotSpot 1.4.2-b28 mixed mode
and under windows 2000 with HotSpot 1.3.1-b24 mixed mode


--------- linux backtrace ----------
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4CFE2509
Function=zend_hash_add_or_update+0xA9
Library=/opt/mywww/modules/libphp4.so

Current Java thread:
        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:185)
...

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:46 173343     /opt/j2sdk_nb/j2sdk1.4.2/bin/java
0804e000-0804f000 rw-p 00005000 03:46 173343     /opt/j2sdk_nb/j2sdk1.4.2/bin/java
40000000-40015000 r-xp 00000000 03:41 124689     /lib/ld-2.3.2.so
40015000-40016000 rw-p 00014000 03:41 124689     /lib/ld-2.3.2.so
40016000-4001a000 rw-s 00000000 03:41 174709     /tmp/hsperfdata_http/6445
...

Heap at VM Abort:
Heap
 def new generation   total 576K, used 501K [0x44740000, 0x447e0000, 0x44c20000)
  eden space 512K,  89% used [0x44740000, 0x447b3248, 0x447c0000)
  from space 64K,  64% used [0x447d0000, 0x447da4c8, 0x447e0000)
  to   space 64K,   0% used [0x447c0000, 0x447c0000, 0x447d0000)
 tenured generation   total 1408K, used 881K [0x44c20000, 0x44d80000, 0x48740000)
   the space 1408K,  62% used [0x44c20000, 0x44cfc488, 0x44cfc600, 0x44d80000)
 compacting perm gen  total 4096K, used 3068K [0x48740000, 0x48b40000, 0x4c740000)
   the space 4096K,  74% used [0x48740000, 0x48a3f180, 0x48a3f200, 0x48b40000)

--------- windows backtrace ----------
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x8e4408c
Function name=zend_hash_index_update_or_next_insert
Library=F:\CVSROOT\mywww\modules\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:185)
...

Dynamic libraries:
0x00400000 - 0x00405000         d:\java3\bin\java.exe
0x78460000 - 0x784E1000         C:\WIN2K\System32\ntdll.dll
0x6D420000 - 0x6D4EF000         d:\java3\jre\bin\hotspot\jvm.dll
...



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-17 18:02 UTC] sniper@php.net
Java/servlet support is highly experimental in PHP 4 and is not supported anymore.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 15:01:28 2024 UTC