php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29706 JVM crash randomly
Submitted: 2004-08-16 17:20 UTC Modified: 2004-08-28 20:16 UTC
Votes:4
Avg. Score:5.0 ± 0.0
Reproduced:4 of 4 (100.0%)
Same Version:4 (100.0%)
Same OS:3 (75.0%)
From: jtbpagor at aintel dot bi dot ehu dot es Assigned:
Status: Not a bug Package: Servlet related
PHP Version: 4.3.8 OS: Linux
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: jtbpagor at aintel dot bi dot ehu dot es
New email:
PHP Version: OS:

 

 [2004-08-16 17:20 UTC] jtbpagor at aintel dot bi dot ehu dot es
Description:
------------
I'm trying to setup php support with jakarta-tomcat-4.1.30. I?ve compiled php with  ./configure --with-tsrm-pthreads --with-servlet --with-java, after make i've copied the sapi/servlet/phpsvlt.jar to $TOMCAT_HOME/common/lib, exported the LD_LIBRARY_PATH=$PHP_HOME/libs and edited the $TOMCAT_HOME/conf/web.xml. I try it with a page that only contains +++ <?php phpinfo(); ?> +++, and it is served a random number of times untill the JVM crashes giving the following message:


---------------------------------------------------------------------
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4EA0B943
Function=zend_hash_index_update_or_next_insert+0x33
Library=/usr/local/php-4.3.8/libs/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:93)
        at net.php.servlet.send(Native Method)
        at net.php.servlet.service(servlet.java:198)
        at net.php.servlet.service(servlet.java:214)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2422)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:163)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:199)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:828)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:700)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:584)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
        at java.lang.Thread.run(Thread.java:534)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:02 2384826    /usr/local/j2sdk1.4.2_04/bin/java
0804e000-0804f000 rw-p 00005000 03:02 2384826    /usr/local/j2sdk1.4.2_04/bin/java
40000000-40016000 r-xp 00000000 03:02 1583207    /lib/ld-2.3.2.so
40016000-40017000 rw-p 00015000 03:02 1583207    /lib/ld-2.3.2.so
40028000-40034000 r-xp 00000000 03:02 1586449    /lib/tls/libpthread-0.60.so
40034000-40035000 rw-p 0000c000 03:02 1586449    /lib/tls/libpthread-0.60.so
40038000-4003a000 r-xp 00000000 03:02 1583310    /lib/tls/libdl-2.3.2.so
4003a000-4003b000 rw-p 00001000 03:02 1583310    /lib/tls/libdl-2.3.2.so
4003b000-4016b000 r-xp 00000000 03:02 1583308    /lib/tls/libc-2.3.2.so
4016b000-40174000 rw-p 0012f000 03:02 1583308    /lib/tls/libc-2.3.2.so
40177000-40572000 r-xp 00000000 03:02 2383770    /usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
40572000-4058d000 rw-p 003fa000 03:02 2383770    /usr/local/j2sdk1.4.2_04/jre/lib/i386/client/libjvm.so
405a0000-405a8000 r-xp 00000000 03:02 2366439    /usr/local/j2sdk1.4.2_04/jre/lib/i386/native_threads/libhpi.so
405a8000-405a9000 rw-p 00007000 03:02 2366439    /usr/local/j2sdk1.4.2_04/jre/lib/i386/native_threads/libhpi.so
405b0000-405c2000 r-xp 00000000 03:02 1583313    /lib/tls/libnsl-2.3.2.so
405c2000-405c3000 rw-p 00011000 03:02 1583313    /lib/tls/libnsl-2.3.2.so
405c5000-405e7000 r-xp 00000000 03:02 1583311    /lib/tls/libm-2.3.2.so
405e7000-405e8000 rw-p 00022000 03:02 1583311    /lib/tls/libm-2.3.2.so
405e8000-405ec000 rw-s 00000000 03:02 1893144    /tmp/hsperfdata_root/6371
405f8000-405ff000 r-xp 00000000 03:02 1583314    /lib/tls/libnss_compat-2.3.2.so
405ff000-40600000 rw-p 00007000 03:02 1583314    /lib/tls/libnss_compat-2.3.2.so
40600000-40609000 r-xp 00000000 03:02 1583318    /lib/tls/libnss_nis-2.3.2.so
40609000-4060a000 rw-p 00008000 03:02 1583318    /lib/tls/libnss_nis-2.3.2.so
4060a000-40613000 r-xp 00000000 03:02 1583316    /lib/tls/libnss_files-2.3.2.so
40613000-40614000 rw-p 00008000 03:02 1583316    /lib/tls/libnss_files-2.3.2.so
40614000-40624000 r-xp 00000000 03:02 2366446    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libverify.so
40624000-40626000 rw-p 0000f000 03:02 2366446    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libverify.so
40626000-40646000 r-xp 00000000 03:02 2366447    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libjava.so
40646000-40648000 rw-p 0001f000 03:02 2366447    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libjava.so
40648000-4065c000 r-xp 00000000 03:02 2366449    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libzip.so
4065c000-4065f000 rw-p 00013000 03:02 2366449    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libzip.so
4065f000-40739000 r--s 00000000 03:02 2269332    /usr/local/jakarta-tomcat-4.1.30/common/endorsed/xercesImpl.jar
40739000-40758000 r--s 00000000 03:02 2269333    /usr/local/jakarta-tomcat-4.1.30/common/endorsed/xmlParserAPIs.jar
40758000-40894000 r--s 00000000 03:02 2269628    /usr/local/jakarta-tomcat-4.1.30/common/endorsed/xalan.jar
40894000-408b3000 r--s 00000000 03:02 2269630    /usr/local/jakarta-tomcat-4.1.30/common/endorsed/xml-apis.jar
408b3000-409fd000 r--s 00000000 03:02 2269631    /usr/local/jakarta-tomcat-4.1.30/common/endorsed/xsltc.jar
409fd000-4239d000 r--s 00000000 03:02 2366520    /usr/local/j2sdk1.4.2_04/jre/lib/rt.jar
423e7000-423fd000 r--s 00000000 03:02 2366471    /usr/local/j2sdk1.4.2_04/jre/lib/sunrsasign.jar
423fd000-424d8000 r--s 00000000 03:02 2366504    /usr/local/j2sdk1.4.2_04/jre/lib/jsse.jar
424d8000-424e9000 r--s 00000000 03:02 2366472    /usr/local/j2sdk1.4.2_04/jre/lib/jce.jar
424e9000-42a42000 r--s 00000000 03:02 2366505    /usr/local/j2sdk1.4.2_04/jre/lib/charsets.jar
44aea000-44aeb000 r--s 00000000 03:02 2383797    /usr/local/j2sdk1.4.2_04/jre/lib/security/US_export_policy.jar
44aeb000-44aec000 r--s 00000000 03:02 2383800    /usr/local/j2sdk1.4.2_04/jre/lib/security/local_policy.jar
4ccf0000-4cef0000 r--p 00000000 03:02 2350213    /usr/lib/locale/locale-archive
4cef0000-4cef1000 r--p 00359000 03:02 2350213    /usr/lib/locale/locale-archive
4d0f1000-4d10d000 r--s 00000000 03:02 2383782    /usr/local/j2sdk1.4.2_04/jre/lib/ext/sunjce_provider.jar
4d10d000-4d110000 r--s 00000000 03:02 2383785    /usr/local/j2sdk1.4.2_04/jre/lib/ext/dnsns.jar
4d110000-4d11d000 r--s 00000000 03:02 2383791    /usr/local/j2sdk1.4.2_04/jre/lib/ext/ldapsec.jar
4d11d000-4d1d9000 r--s 00000000 03:02 2384819    /usr/local/j2sdk1.4.2_04/jre/lib/ext/localedata.jar
4d1d9000-4d6b5000 r--s 00000000 03:02 2387625    /usr/local/j2sdk1.4.2_04/lib/tools.jar
4d6b5000-4d6bb000 r--s 00000000 03:02 2269319    /usr/local/jakarta-tomcat-4.1.30/bin/bootstrap.jar
4d6bb000-4d6be000 r--s 00000000 03:02 2269321    /usr/local/jakarta-tomcat-4.1.30/bin/commons-daemon.jar
4d6be000-4d6ca000 r--s 00000000 03:02 2269334    /usr/local/jakarta-tomcat-4.1.30/common/lib/activation.jar
4d6ca000-4d7b3000 r--s 00000000 03:02 2269336    /usr/local/jakarta-tomcat-4.1.30/common/lib/ant.jar
4d7b3000-4d7dc000 r--s 00000000 03:02 2269561    /usr/local/jakarta-tomcat-4.1.30/common/lib/commons-collections.jar
4d7dc000-4d7f5000 r--s 00000000 03:02 2269562    /usr/local/jakarta-tomcat-4.1.30/common/lib/commons-dbcp-1.1.jar
4d7f5000-4d7fb000 r--s 00000000 03:02 2269563    /usr/local/jakarta-tomcat-4.1.30/common/lib/commons-logging-api.jar
4d7fb000-4d805000 r--s 00000000 03:02 2269564    /usr/local/jakarta-tomcat-4.1.30/common/lib/commons-pool-1.1.jar
4d805000-4d832000 r--s 00000000 03:02 2269565    /usr/local/jakarta-tomcat-4.1.30/common/lib/jasper-compiler.jar
4d832000-4d844000 r--s 00000000 03:02 2269566    /usr/local/jakarta-tomcat-4.1.30/common/lib/jasper-runtime.jar
4d844000-4d846000 r--s 00000000 03:02 2269567    /usr/local/jakarta-tomcat-4.1.30/common/lib/jdbc2_0-stdext.jar
4d846000-4d85f000 r--s 00000000 03:02 2269568    /usr/local/jakarta-tomcat-4.1.30/common/lib/jndi.jar
4d85f000-4d862000 r--s 00000000 03:02 2269569    /usr/local/jakarta-tomcat-4.1.30/common/lib/jta.jar
4d862000-4d8a7000 r--s 00000000 03:02 2268995    /usr/local/jakarta-tomcat-4.1.30/common/lib/mail.jar
4d8a7000-4d8ae000 r--s 00000000 03:02 2269571    /usr/local/jakarta-tomcat-4.1.30/common/lib/naming-common.jar
4d8ae000-4d8b3000 r--s 00000000 03:02 2269572    /usr/local/jakarta-tomcat-4.1.30/common/lib/naming-factory.jar
4d8b3000-4d8bd000 r--s 00000000 03:02 2269573    /usr/local/jakarta-tomcat-4.1.30/common/lib/naming-resources.jar
4d8bd000-4d8d1000 r--s 00000000 03:02 2269574    /usr/local/jakarta-tomcat-4.1.30/common/lib/servlet.jar
4d8d1000-4d905000 r--s 00000000 03:02 2269632    /usr/local/jakarta-tomcat-4.1.30/common/lib/pg74.213.jdbc3.jar
4d905000-4d909000 r--s 00000000 03:02 2268699    /usr/local/jakarta-tomcat-4.1.30/common/lib/phpsrvlt.jar
4d909000-4d90d000 r--s 00000000 03:02 2269581    /usr/local/jakarta-tomcat-4.1.30/server/lib/catalina-ant.jar
4d90d000-4d9c5000 r--s 00000000 03:02 2269582    /usr/local/jakarta-tomcat-4.1.30/server/lib/catalina.jar
4d9c5000-4d9e2000 r--s 00000000 03:02 2269583    /usr/local/jakarta-tomcat-4.1.30/server/lib/commons-beanutils.jar
4d9e2000-4d9fd000 r--s 00000000 03:02 2269584    /usr/local/jakarta-tomcat-4.1.30/server/lib/commons-digester.jar
4d9fd000-4da03000 r--s 00000000 03:02 2269585    /usr/local/jakarta-tomcat-4.1.30/server/lib/commons-fileupload-1.0.jar
4da03000-4da0b000 r--s 00000000 03:02 2269586    /usr/local/jakarta-tomcat-4.1.30/server/lib/commons-logging.jar
4da0b000-4da26000 r--s 00000000 03:02 2269587    /usr/local/jakarta-tomcat-4.1.30/server/lib/commons-modeler.jar
4da26000-4da40000 r--s 00000000 03:02 2269588    /usr/local/jakarta-tomcat-4.1.30/server/lib/jaas.jar
4da40000-4da47000 r--s 00000000 03:02 2269589    /usr/local/jakarta-tomcat-4.1.30/server/lib/jakarta-regexp-1.3.jar
4da47000-4da9b000 r--s 00000000 03:02 2269590    /usr/local/jakarta-tomcat-4.1.30/server/lib/mx4j-jmx.jar
4da9b000-4da9d000 r--s 00000000 03:02 2269593    /usr/local/jakarta-tomcat-4.1.30/server/lib/servlets-common.jar
4da9d000-4daa2000 r--s 00000000 03:02 2269594    /usr/local/jakarta-tomcat-4.1.30/server/lib/servlets-default.jar
4daa2000-4daa4000 r--s 00000000 03:02 2269595    /usr/local/jakarta-tomcat-4.1.30/server/lib/servlets-invoker.jar
4daa4000-4daa9000 r--s 00000000 03:02 2269596    /usr/local/jakarta-tomcat-4.1.30/server/lib/servlets-manager.jar
4daa9000-4daaf000 r--s 00000000 03:02 2269598    /usr/local/jakarta-tomcat-4.1.30/server/lib/servlets-webdav.jar
4daaf000-4dac0000 r--s 00000000 03:02 2269599    /usr/local/jakarta-tomcat-4.1.30/server/lib/tomcat-coyote.jar
4dac0000-4dacd000 r--s 00000000 03:02 2269600    /usr/local/jakarta-tomcat-4.1.30/server/lib/tomcat-http11.jar
4dacd000-4dadd000 r--s 00000000 03:02 2269601    /usr/local/jakarta-tomcat-4.1.30/server/lib/tomcat-jk.jar
4dadd000-4daf6000 r--s 00000000 03:02 2269602    /usr/local/jakarta-tomcat-4.1.30/server/lib/tomcat-jk2.jar
4daf6000-4db24000 r--s 00000000 03:02 2269603    /usr/local/jakarta-tomcat-4.1.30/server/lib/tomcat-util.jar
4db24000-4db2a000 r--s 00000000 03:02 2269604    /usr/local/jakarta-tomcat-4.1.30/server/lib/tomcat-warp.jar
4db2a000-4db2f000 r--s 00000000 03:02 2269592    /usr/local/jakarta-tomcat-4.1.30/server/lib/servlets-cgi.jar
4db2f000-4db3f000 r-xp 00000000 03:02 2366452    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libnet.so
4db3f000-4db40000 rw-p 0000f000 03:02 2366452    /usr/local/j2sdk1.4.2_04/jre/lib/i386/libnet.so
4db40000-4db68000 r--s 00000000 03:02 1860879    /home/rodri/CVS-velocimetro/CVSgestioner/gestioner/WEB-INF/lib/jaxen-core.jar
4db68000-4db6a000 r--s 00000000 03:02 1860891    /home/rodri/CVS-velocimetro/CVSgestioner/gestioner/WEB-INF/lib/jaxen-jdom.jar
4db6a000-4db8c000 r--s 00000000 03:02 1860591    /home/rodri/CVS-velocimetro/CVSgestioner/gestioner/WEB-INF/lib/jdom.jar
4db8c000-4dbd1000 r--s 00000000 03:02 1860643    /home/rodri/CVS-velocimetro/CVSgestioner/gestioner/WEB-INF/lib/mail.jar
4dbd1000-4dc05000 r--s 00000000 03:02 1860770    /home/rodri/CVS-velocimetro/CVSgestioner/gestioner/WEB-INF/lib/pg74.213.jdbc3.jar
4dc05000-4dc0b000 r--s 00000000 03:02 1860486    /home/rodri/CVS-velocimetro/CVSgestioner/gestioner/WEB-INF/lib/saxpath.jar
4dd0b000-4dd85000 r--s 00000000 03:02 2436965    /usr/local/jakarta-tomcat-4.1.30/server/webapps/admin/WEB-INF/lib/struts.jar
4de7f000-4def9000 r--s 00000000 03:02 2436965    /usr/local/jakarta-tomcat-4.1.30/server/webapps/admin/WEB-INF/lib/struts.jar
4e8f9000-4ea4d000 r-xp 00000000 03:02 2320028    /usr/local/php-4.3.8/libs/libphp4.so
4ea4d000-4ea5c000 rw-p 00154000 03:02 2320028    /usr/local/php-4.3.8/libs/libphp4.so
4ea70000-4ea74000 r-xp 00000000 03:02 1583309    /lib/tls/libcrypt-2.3.2.so
4ea74000-4ea75000 rw-p 00004000 03:02 1583309    /lib/tls/libcrypt-2.3.2.so
4ea9c000-4eaab000 r-xp 00000000 03:02 1586450    /lib/tls/libresolv-2.3.2.so
4eaab000-4eaac000 rw-p 0000f000 03:02 1586450    /lib/tls/libresolv-2.3.2.so

Heap at VM Abort:
Heap
 def new generation   total 768K, used 252K [0x44af0000, 0x44bc0000, 0x44fd0000)
  eden space 704K,  35% used [0x44af0000, 0x44b2e558, 0x44ba0000)
  from space 64K,   4% used [0x44ba0000, 0x44ba0ab8, 0x44bb0000)
  to   space 64K,   0% used [0x44bb0000, 0x44bb0000, 0x44bc0000)
 tenured generation   total 9736K, used 6485K [0x44fd0000, 0x45952000, 0x48af0000)
   the space 9736K,  66% used [0x44fd0000, 0x45625460, 0x45625600, 0x45952000)
 compacting perm gen  total 8704K, used 8622K [0x48af0000, 0x49370000, 0x4caf0000)
   the space 8704K,  99% used [0x48af0000, 0x4935b8d8, 0x4935ba00, 0x49370000)

Local Time = Mon Aug 16 16:56:56 2004
Elapsed Time = 28
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2_04-b05 mixed mode)
#
# An error report file has been saved as hs_err_pid6371.log.
# Please refer to the file for further information.
#
Aborted
------------------------------------------------------------------


Thanks in advance.

RODRI.-


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-16 17:41 UTC] jtbpagor at aintel dot bi dot ehu dot es
i think the reason is that the phpsvlt.jar does not free the memory it uses and the jvm runs out of memory and because of that it crashes
 [2004-08-28 20:16 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Search the database for similar issues..(all bogused, AFAICT)

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC