JDK-6539466 : Crash in libzip, usually near startup of tomcat.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2007-03-27
  • Updated: 2010-05-14
  • Resolved: 2010-05-14
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Server VM (build 1.6.0-b105, mixed mode)


FULL OS VERSION :
Linux somehost.net 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 10:11:19 EST 2007 i686 i686 i386 GNU/Linux

EXTRA RELEVANT SYSTEM CONFIGURATION :
I'm using a released version of Java6 (it only has Beta on the bug submission form). Tomcat it set to use -Xmx1024m (2GB total system RAM)

A DESCRIPTION OF THE PROBLEM :
This sometimes (rarely) occurs near startup when reading data from a jar/war file.



THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Did not try

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Happens near startup.

EXPECTED VERSUS ACTUAL BEHAVIOR :
It should not crash, it does.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
See above.

REPRODUCIBILITY :
This bug can be reproduced rarely.

---------- BEGIN SOURCE ----------
If you need code referenced from the stack trace please let me know.
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Restart tomcat.

Comments
EVALUATION Stack: [0x6f65e000,0x6f6af000), sp=0x6f6ad1e4, free space=316k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x6aa2c] memcpy+0x1c C [libzip.so+0xbfbb] ZIP_GetEntry+0x10b C [libzip.so+0x3169] Java_java_util_zip_ZipFile_getEntry+0xc9 J java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J ... This is again another "jar is overriden while is still in use by other" issue. see #6929479
14-05-2010