JDK-6546086 : VM crash when parsing a classfile with garbage in it.
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-04-13
  • Updated: 2012-10-08
  • Resolved: 2007-06-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6 JDK 7 Other
6u4Fixed 7Fixed hs10Fixed
Related Reports
Relates :  
An agent which tries to redefine a class with an incomplete classfile can cause a VM crash during classfile parsing.   Refer to the details of CR 6545149.  In that case, the agent is not reading the full classfile and passing the partial classfile to the VM, which is crashing.

EVALUATION Added a single check to make sure the method signature is valid before trying to parse it. This check now occurs regardless of the verification state of the class.

EVALUATION The class file parser silently ignores a number of legitimate errors for trusted classes (those loaded by bootstrap and not going to be verified). Those classes should not be given a free pass since if the data is wrong it can crash the VM.