tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22353] New: - Tomcat crashes with unexpected exception when used with MCVE API
Date Tue, 12 Aug 2003 16:00:49 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22353>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22353

Tomcat crashes with unexpected exception when used with MCVE API

           Summary: Tomcat crashes with unexpected exception when used with
                    MCVE API
           Product: Tomcat 4
           Version: 4.1.27
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: bruce_rice@yahoo.com


We have been using Tomcat along with MCVE (a credit card payment engine) for
some time.  We have it working with Tomcat 4.1.24 just fine.  When we tried
testing it out with Tomcat 4.1.27, we started getting this error.

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4002ACF2
Function=__pthread_mutex_lock+0x12
Library=/lib/i686/libpthread.so.0

Current Java thread:
        at com.mainstreetsoftworks.MCVE.M_DestroyConn(Native Method)
        at com.mainstreetsoftworks.MCVE.finalize(MCVE.java:15)
        at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
        at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
        at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
        at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Am running Redhat 8.0 (kernel 2.4.20-19.8) with Sun java version 1.4.2.  We are
using the newest MCVE Java API 3.1 which is build on the MCVE C API 3.2.1. These
libraries can be downloaded from http://www.mcve.com/?page=17.  

The error only seems to come when the MCVE.finalize() is called.  This however
is what closes the connection to MCVE.  Without this call the socket connections
are left open and can start to be a problem.

Here is the error log that gets genereated:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0x4EE1C4F3
Function=Java_com_mainstreetsoftworks_MCVE_M_1DestroyConn+0x1D
Library=/usr/java/j2sdk1.4.2/jre/lib/i386/libmcvejni.so

Current Java thread:
	at com.mainstreetsoftworks.MCVE.M_DestroyConn(Native Method)
	at com.mainstreetsoftworks.MCVE.finalize(MCVE.java:15)
	at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
	at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)
	at java.lang.ref.Finalizer.access$100(Finalizer.java:14)
	at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)

Dynamic libraries:
08048000-0804e000 r-xp 00000000 03:09 276833     /usr/java/j2sdk1.4.2/bin/java
0804e000-0804f000 rw-p 00005000 03:09 276833     /usr/java/j2sdk1.4.2/bin/java
40000000-40013000 r-xp 00000000 03:03 71485      /lib/ld-2.3.2.so
40013000-40014000 rw-p 00013000 03:03 71485      /lib/ld-2.3.2.so
40014000-4001c000 r-xp 00000000 03:09 601211    
/usr/java/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so
4001c000-4001d000 rw-p 00007000 03:09 601211    
/usr/java/j2sdk1.4.2/jre/lib/i386/native_threads/libhpi.so
40021000-40024000 r--s 00000000 03:09 633999    
/usr/java/j2sdk1.4.2/jre/lib/ext/dnsns.jar
40024000-40031000 r-xp 00000000 03:03 79565      /lib/i686/libpthread-0.10.so
40031000-40034000 rw-p 0000d000 03:03 79565      /lib/i686/libpthread-0.10.so
40075000-40077000 r-xp 00000000 03:03 71414      /lib/libdl-2.3.2.so
40077000-40078000 rw-p 00002000 03:03 71414      /lib/libdl-2.3.2.so
40078000-4046f000 r-xp 00000000 03:09 634006    
/usr/java/j2sdk1.4.2/jre/lib/i386/client/libjvm.so
4046f000-4048a000 rw-p 003f6000 03:09 634006    
/usr/java/j2sdk1.4.2/jre/lib/i386/client/libjvm.so
4049d000-404b0000 r-xp 00000000 03:03 71418      /lib/libnsl-2.3.2.so
404b0000-404b1000 rw-p 00012000 03:03 71418      /lib/libnsl-2.3.2.so
404b3000-404d4000 r-xp 00000000 03:03 79563      /lib/i686/libm-2.3.2.so
404d4000-404d5000 rw-p 00021000 03:03 79563      /lib/i686/libm-2.3.2.so
404d5000-404e2000 r--s 00000000 03:09 634000    
/usr/java/j2sdk1.4.2/jre/lib/ext/ldapsec.jar
404e2000-404e5000 r--s 00000000 03:05 1233088   
/web/tomcat-4.1.27/bin/commons-daemon.jar
404e5000-404f0000 r-xp 00000000 03:03 71434      /lib/libnss_files-2.3.2.so
404f0000-404f1000 rw-p 0000a000 03:03 71434      /lib/libnss_files-2.3.2.so
404f1000-40501000 r-xp 00000000 03:09 1250648   
/usr/java/j2sdk1.4.2/jre/lib/i386/libverify.so
40501000-40503000 rw-p 0000f000 03:09 1250648   
/usr/java/j2sdk1.4.2/jre/lib/i386/libverify.so
40503000-40523000 r-xp 00000000 03:09 1250634   
/usr/java/j2sdk1.4.2/jre/lib/i386/libjava.so
40523000-40525000 rw-p 0001f000 03:09 1250634   
/usr/java/j2sdk1.4.2/jre/lib/i386/libjava.so
40525000-40539000 r-xp 00000000 03:09 1250649   
/usr/java/j2sdk1.4.2/jre/lib/i386/libzip.so
40539000-4053c000 rw-p 00013000 03:09 1250649   
/usr/java/j2sdk1.4.2/jre/lib/i386/libzip.so
4053c000-40617000 r--s 00000000 03:05 1135873   
/web/tomcat-4.1.27/common/endorsed/xercesImpl.jar
40617000-40636000 r--s 00000000 03:05 1135874   
/web/tomcat-4.1.27/common/endorsed/xmlParserAPIs.jar
40636000-41fc1000 r--s 00000000 03:09 569111     /usr/java/j2sdk1.4.2/jre/lib/rt.jar
41fc1000-41fd7000 r--s 00000000 03:09 569110    
/usr/java/j2sdk1.4.2/jre/lib/sunrsasign.jar
41fd7000-41fe8000 r--s 00000000 03:09 568889    
/usr/java/j2sdk1.4.2/jre/lib/jce.jar
41fe8000-41fee000 r--s 00000000 03:05 1233089   
/web/tomcat-4.1.27/bin/bootstrap.jar
41fee000-41ff4000 r--s 00000000 03:05 1054614   
/web/tomcat-4.1.27/common/lib/commons-logging-api.jar
41ff4000-41ff6000 r--s 00000000 03:05 1054616   
/web/tomcat-4.1.27/common/lib/jdbc2_0-stdext.jar
41ff6000-41ffe000 r--s 00000000 03:05 1054617   
/web/tomcat-4.1.27/common/lib/commons-pool.jar
41ffe000-42000000 r--s 00000000 03:05 438073    
/web/tomcat-4.1.27/server/lib/servlets-invoker.jar
42000000-42134000 r-xp 00000000 03:03 79568      /lib/i686/libc-2.3.2.so
42134000-42139000 rw-p 00134000 03:03 79568      /lib/i686/libc-2.3.2.so
42185000-42260000 r--s 00000000 03:09 569109    
/usr/java/j2sdk1.4.2/jre/lib/jsse.jar
42260000-427b9000 r--s 00000000 03:09 568890    
/usr/java/j2sdk1.4.2/jre/lib/charsets.jar
44861000-44866000 r--s 00000000 03:05 1054619   
/web/tomcat-4.1.27/common/lib/naming-factory.jar
44866000-44870000 r--s 00000000 03:05 1054623   
/web/tomcat-4.1.27/common/lib/naming-resources.jar
4ca73000-4cc73000 r--p 00000000 03:09 212127     /usr/lib/locale/locale-archive
4ce77000-4cf33000 r--s 00000000 03:09 634007    
/usr/java/j2sdk1.4.2/jre/lib/ext/localedata.jar
4cf33000-4cf4f000 r--s 00000000 03:09 634002    
/usr/java/j2sdk1.4.2/jre/lib/ext/sunjce_provider.jar
4cf4f000-4d42b000 r--s 00000000 03:09 1136335    /usr/java/j2sdk1.4.2/lib/tools.jar
4d42b000-4d43f000 r--s 00000000 03:05 1054612   
/web/tomcat-4.1.27/common/lib/servlet.jar
4d43f000-4d484000 r--s 00000000 03:05 1054613   
/web/tomcat-4.1.27/common/lib/mail.jar
4d484000-4d4ad000 r--s 00000000 03:05 1054615   
/web/tomcat-4.1.27/common/lib/commons-collections.jar
4d4ad000-4d4da000 r--s 00000000 03:05 1054618   
/web/tomcat-4.1.27/common/lib/jasper-compiler.jar
4d4da000-4d4f3000 r--s 00000000 03:05 1054620   
/web/tomcat-4.1.27/common/lib/jndi.jar
4d4f3000-4d4ff000 r--s 00000000 03:05 1054621   
/web/tomcat-4.1.27/common/lib/activation.jar
4d4ff000-4d511000 r--s 00000000 03:05 1054622   
/web/tomcat-4.1.27/common/lib/jasper-runtime.jar
4d511000-4d518000 r--s 00000000 03:05 1054624   
/web/tomcat-4.1.27/common/lib/naming-common.jar
4d518000-4d528000 r--s 00000000 03:05 1054625   
/web/tomcat-4.1.27/common/lib/commons-dbcp.jar
4d528000-4d5dd000 r--s 00000000 03:05 1054626   
/web/tomcat-4.1.27/common/lib/ant.jar
4d5dd000-4d5e0000 r--s 00000000 03:05 1054627   
/web/tomcat-4.1.27/common/lib/jta.jar
4d5e0000-4d6ff000 r--s 00000000 03:05 65052     
/web/tomcat-4.1.27/common/lib/ojdbc14.jar
4d6ff000-4d753000 r--s 00000000 03:05 438069    
/web/tomcat-4.1.27/server/lib/mx4j-jmx.jar
4d753000-4d75b000 r--s 00000000 03:05 438070    
/web/tomcat-4.1.27/server/lib/commons-logging.jar
4d75b000-4d776000 r--s 00000000 03:05 438071    
/web/tomcat-4.1.27/server/lib/commons-digester.jar
4d776000-4d77b000 r--s 00000000 03:05 438074    
/web/tomcat-4.1.27/server/lib/servlets-manager.jar
4d77b000-4d783000 r--s 00000000 03:05 438075    
/web/tomcat-4.1.27/server/lib/commons-modeler.jar
4d783000-4d788000 r--s 00000000 03:05 438076    
/web/tomcat-4.1.27/server/lib/servlets-default.jar
4d788000-4d792000 r--s 00000000 03:05 438077    
/web/tomcat-4.1.27/server/lib/tomcat-http11.jar
4d792000-4d7bb000 r--s 00000000 03:05 438079    
/web/tomcat-4.1.27/server/lib/tomcat-util.jar
4d7bb000-4d873000 r--s 00000000 03:05 438080    
/web/tomcat-4.1.27/server/lib/catalina.jar
4d873000-4d890000 r--s 00000000 03:05 438081    
/web/tomcat-4.1.27/server/lib/commons-beanutils.jar
4d890000-4d8a0000 r--s 00000000 03:05 438082    
/web/tomcat-4.1.27/server/lib/tomcat-coyote.jar
4d8a0000-4d8ba000 r--s 00000000 03:05 438083    
/web/tomcat-4.1.27/server/lib/jaas.jar
4d8ba000-4d8bc000 r--s 00000000 03:05 438085    
/web/tomcat-4.1.27/server/lib/servlets-common.jar
4d8bc000-4d8c2000 r--s 00000000 03:05 438086    
/web/tomcat-4.1.27/server/lib/servlets-webdav.jar
4d8c2000-4d8c8000 r--s 00000000 03:05 438087    
/web/tomcat-4.1.27/server/lib/tomcat-warp.jar
4d8c8000-4d8cc000 r--s 00000000 03:05 438088    
/web/tomcat-4.1.27/server/lib/catalina-ant.jar
4d8cc000-4d8e0000 r--s 00000000 03:05 438089    
/web/tomcat-4.1.27/server/lib/tomcat-jk2.jar
4d8e0000-4d8e6000 r--s 00000000 03:05 438090    
/web/tomcat-4.1.27/server/lib/commons-fileupload-1.0.jar
4d8e6000-4d8ee000 r--s 00000000 03:05 438091    
/web/tomcat-4.1.27/server/lib/jakarta-regexp-1.2.jar
4d8ee000-4d8fe000 r--s 00000000 03:05 438092    
/web/tomcat-4.1.27/server/lib/tomcat-jk.jar
4d8fe000-4d90e000 r-xp 00000000 03:09 1250645   
/usr/java/j2sdk1.4.2/jre/lib/i386/libnet.so
4d90e000-4d90f000 rw-p 0000f000 03:09 1250645   
/usr/java/j2sdk1.4.2/jre/lib/i386/libnet.so
4d90f000-4d91b000 r--s 00000000 03:05 64899     
/web/tomcat-4.1.27/shared/lib/activation.jar
4d91b000-4d91d000 r--s 00000000 03:05 65034     
/web/tomcat-4.1.27/shared/lib/jaxp.jar
4d91d000-4d91f000 r--s 00000000 03:05 65036     
/web/tomcat-4.1.27/shared/lib/jcert.jar
4d91f000-4d92a000 r-xp 00000000 03:03 71442      /lib/libnss_nisplus-2.3.2.so
4d92a000-4d92b000 rw-p 0000a000 03:03 71442      /lib/libnss_nisplus-2.3.2.so
4d92b000-4d92e000 r-xp 00000000 03:03 71431      /lib/libnss_dns-2.3.2.so
4d92e000-4d92f000 rw-p 00003000 03:03 71431      /lib/libnss_dns-2.3.2.so
4d92f000-4d93e000 r-xp 00000000 03:03 71446      /lib/libresolv-2.3.2.so
4d93e000-4d93f000 rw-p 0000f000 03:03 71446      /lib/libresolv-2.3.2.so
4d941000-4d9bb000 r--s 00000000 03:05 1054611   
/web/tomcat-4.1.27/server/webapps/admin/WEB-INF/lib/struts.jar
4d9bb000-4da0c000 r--s 00000000 03:05 64900     
/web/tomcat-4.1.27/shared/lib/ant.jar
4da0c000-4da1e000 r--s 00000000 03:05 64901     
/web/tomcat-4.1.27/shared/lib/antlr.jar
4da1e000-4da28000 r--s 00000000 03:05 65027     
/web/tomcat-4.1.27/shared/lib/classgen.jar
4da28000-4da2f000 r--s 00000000 03:05 65029     
/web/tomcat-4.1.27/shared/lib/commons-logging.jar
4da2f000-4da30000 r--s 00000000 03:05 65038     
/web/tomcat-4.1.27/shared/lib/jnet.jar
4da30000-4da31000 r--s 00000000 03:05 65048     
/web/tomcat-4.1.27/shared/lib/MCVE.jar
4dab6000-4db30000 r--s 00000000 03:05 1054611   
/web/tomcat-4.1.27/server/webapps/admin/WEB-INF/lib/struts.jar
4e5c5000-4e623000 r--s 00000000 03:05 64902     
/web/tomcat-4.1.27/shared/lib/axis-ant.jar
4e623000-4e74f000 r--s 00000000 03:05 64903     
/web/tomcat-4.1.27/shared/lib/axis.jar
4e74f000-4e769000 r--s 00000000 03:05 64904     
/web/tomcat-4.1.27/shared/lib/bsf.jar
4e769000-4e79b000 r--s 00000000 03:05 64905     
/web/tomcat-4.1.27/shared/lib/checkstyle-2.4.jar
4e79b000-4e7e5000 r--s 00000000 03:05 65026     
/web/tomcat-4.1.27/shared/lib/checkstyle-all-2.4.jar
4e7e5000-4e7f6000 r--s 00000000 03:05 65028     
/web/tomcat-4.1.27/shared/lib/commons-discovery.jar
4e7f6000-4e847000 r--s 00000000 03:05 65030     
/web/tomcat-4.1.27/shared/lib/com_nicusa.jar
4e847000-4e855000 r--s 00000000 03:05 65031     
/web/tomcat-4.1.27/shared/lib/gnu_regexp.jar
4e855000-4eaf0000 r--s 00000000 03:05 65032     
/web/tomcat-4.1.27/shared/lib/ii.jar
4eaf0000-4eaf8000 r--s 00000000 03:05 65033     
/web/tomcat-4.1.27/shared/lib/jakarta-regexp-1.2.jar
4eaf8000-4eb01000 r--s 00000000 03:05 65035     
/web/tomcat-4.1.27/shared/lib/jaxrpc.jar
4eb01000-4ebc6000 r--s 00000000 03:05 65037     
/web/tomcat-4.1.27/shared/lib/jconn2.jar
4ebc6000-4ec26000 r--s 00000000 03:05 65039     
/web/tomcat-4.1.27/shared/lib/js.jar
4ec26000-4ec98000 r--s 00000000 03:05 65040     
/web/tomcat-4.1.27/shared/lib/jsse.jar
4ec98000-4ecbb000 r--s 00000000 03:05 65041     
/web/tomcat-4.1.27/shared/lib/kicfw.jar
4ed3c000-4ed45000 r--s 00000000 03:05 65042     
/web/tomcat-4.1.27/shared/lib/kic.jar
4ed45000-4ed4d000 r--s 00000000 03:05 65043     
/web/tomcat-4.1.27/shared/lib/ldapfilt.jar
4ed4d000-4ed78000 r--s 00000000 03:05 65044     
/web/tomcat-4.1.27/shared/lib/ldapjdk.jar
4ed78000-4edd5000 r--s 00000000 03:05 65046     
/web/tomcat-4.1.27/shared/lib/log4j-1.2.4.jar
4edd5000-4ee1a000 r--s 00000000 03:05 65047     
/web/tomcat-4.1.27/shared/lib/mail.jar
4ee1a000-4ee1f000 r-xp 00000000 03:09 1250413   
/usr/java/j2sdk1.4.2/jre/lib/i386/libmcvejni.so
4ee1f000-4ee20000 rw-p 00004000 03:09 1250413   
/usr/java/j2sdk1.4.2/jre/lib/i386/libmcvejni.so
4ee20000-4ee26000 r--s 00000000 03:09 292227     /usr/lib/gconv/gconv-modules.cache
4ee30000-4ee39000 r-xp 00000000 03:08 178466     /usr/local/lib/libmcve.so.0.0.0
4ee39000-4ee3a000 rw-p 00009000 03:08 178466     /usr/local/lib/libmcve.so.0.0.0
4ee3a000-4ee67000 r-xp 00000000 03:03 71406      /lib/libssl.so.0.9.6b
4ee67000-4ee6a000 rw-p 0002d000 03:03 71406      /lib/libssl.so.0.9.6b
4ee6a000-4ef2f000 r-xp 00000000 03:03 71404      /lib/libcrypto.so.0.9.6b
4ef2f000-4ef3b000 rw-p 000c4000 03:03 71404      /lib/libcrypto.so.0.9.6b

Heap at VM Abort:
Heap
 def new generation   total 704K, used 64K [0x44870000, 0x44930000, 0x44d50000)
  eden space 640K,   0% used [0x44870000, 0x448700e8, 0x44910000)
  from space 64K, 100% used [0x44910000, 0x44920000, 0x44920000)
  to   space 64K,   0% used [0x44920000, 0x44920000, 0x44930000)
 tenured generation   total 8816K, used 5304K [0x44d50000, 0x455ec000, 0x48870000)
   the space 8816K,  60% used [0x44d50000, 0x4527e1f8, 0x4527e200, 0x455ec000)
 compacting perm gen  total 8704K, used 8485K [0x48870000, 0x490f0000, 0x4c870000)
   the space 8704K,  97% used [0x48870000, 0x490b94f8, 0x490b9600, 0x490f0000)

Local Time = Fri Aug  8 16:39:16 2003
Elapsed Time = 45
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#

Mime
View raw message