United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6536670 JVM crashes in ClassLoader
JDK-6536670 : JVM crashes in ClassLoader

Details
Type:
Bug
Submit Date:
2007-03-21
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-04-23
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u1,7
Fixed Versions:
hs10 (b14)

Related Reports
Backport:
Backport:

Sub Tasks

Description
JVM crashes in the class loader:

Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libc.so.6+0x6785c]  memcpy+0x1c
V  [libjvm.so+0x1766e3]
V  [libjvm.so+0x178956]
V  [libjvm.so+0x36fa6e]
V  [libjvm.so+0x281a73]
V  [libjvm.so+0x2662e0]
C  [libjava.so+0xb581]  Java_java_lang_ClassLoader_defineClass1+0x1e1
J  java.lang.ClassLoader.defineClass1(Ljava/lang/String;[BIILjava/security/ProtectionDomain;Ljava/lang/String;)Ljava/lang/Class;
J  java.lang.ClassLoader.defineClass(Ljava/lang/String;[BIILjava/security/ProtectionDomain;)Ljava/lang/Class;
...

The crash is observed in JDK 7-b09 and JDK 6u1-b06 under Linux and Windows. Solaris has not been tested.

                                    

Comments
EVALUATION

Test takes a random seed and does random modifications to the bytecodes.Good stress test. Target fix for JDK 7.
                                     
2007-03-22
EVALUATION

integer overflow in the classfile stream.  Perform the checks in such a way to remove the overflow.
                                     
2007-06-04



Hardware and Software, Engineered to Work Together