ID:               26252
 Updated by:       [EMAIL PROTECTED]
 Reported By:      marc at anodin dot net
-Status:           Open
+Status:           Wont fix
 Bug Type:         Reproducible crash
 Operating System: Linux, Windows
 PHP Version:      4.3.4
 New Comment:

Java/servlet support is highly experimental in PHP 4 and is not
supported anymore.



Previous Comments:
------------------------------------------------------------------------

[2003-11-14 08:10:18] 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
...




------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26252&edit=1

Reply via email to