JDK-6366468 : SIGSEGV from memcpy
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.jar
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: linux
  • CPU: x86
  • Submitted: 2005-12-22
  • Updated: 2012-09-03
  • Resolved: 2006-10-30
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
Java HotSpot(TM) Client VM (1.6.0-rc-b62) 

A DESCRIPTION OF THE PROBLEM :
running an application i develop, i chose the "About" menu item, and the VM crashed. that code will have wanted to pull an image from the JAR file, which presumably explains the crash being in ZIP_GetEntry.

i haven't seen this before, and have been running Java 6 weeklies with this application on and off for weeks.

I've got something more useful; it's another similar crash in the same place (in the VM) from a different place (in my code). again, it's loading a class from a JAR file. i've been running this application with Java 6 builds for several weeks, and fairly often too, and these are the only two crashes i've had. they've been the same crash, and they're with the same build.

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

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

REGRESSION.  Last worked in version mustang

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Attached seperately


REPRODUCIBILITY :
This bug can be reproduced rarely.


---------- BEGIN SOURCE ----------
here's a snippet of the code causing the problem:

        helpMenuItem.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                String details = PROGRAM_NAME + " (" + PROGRAM_VERSION +
")\n";
                details += "Copyright \u00a9 2005 BlueArc\n";
                String title = "About " + PROGRAM_NAME;
                Icon icon = new LogoIcon();
                JOptionPane.showMessageDialog(null, details, title,
JOptionPane.INFORMATION_MESSAGE, icon);
            }
        });
---------- END SOURCE ----------

Comments
EVALUATION Submitter replied that it's very unlikely to be a dup of 4425695 (Updating jar files crashes running programs). Bug has not been seen since 1.6.0-rc-b62. Closing due to inability to reproduce.
30-10-2006

EVALUATION This could be a dup of 4425695 (Updating jar files crashes running programs). I emailed submitter directly, asking that, and if problem occurs in more recent builds.
24-10-2006

EVALUATION The most likely cause is that the JAR file is somehow corrupted. The stack trace is as follows: Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [libc.so.6+0x6f20f] memcpy+0x2f C [libzip.so+0xbc62] C [libzip.so+0xbe3b] ZIP_GetEntry+0x10b C [libzip.so+0x3129] Java_java_util_zip_ZipFile_getEntry+0xc9 j java.util.zip.ZipFile.getEntry(JLjava/lang/String;Z)J+0 j java.util.zip.ZipFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;+31 j java.util.jar.JarFile.getEntry(Ljava/lang/String;)Ljava/util/zip/ZipEntry;+2 j java.util.jar.JarFile.getJarEntry(Ljava/lang/String;)Ljava/util/jar/JarEntry;+2 j sun.misc.URLClassPath$JarLoader.getResource(Ljava/lang/String;Z)Lsun/misc/Resour ce;+48 The problem is clearly happening in the ZIP_GetEntry method, I am reassigning this bug to the ZIP team for further evaluation and action.
23-10-2006