JDK-6981746 : G1: SEGV with -XX:+TraceGen0Time
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-09-01
  • Updated: 2013-09-18
  • Resolved: 2011-03-08
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
6u25Fixed 7Fixed hs20Fixed
Description
John Bielaszewski from Intel reported the following crash with G1:

-----------------------
Hello Tony & John,

A fairly recent openjdk build crashes during termination when using G1 with ���XX:TraceGen0Time.

Based on the last line written to the GClog, the fault might be originating in
	G1CollectorPolicy::print_summary(PauseSummary* summary)

That apparent location could of course be due to unflushed log buffers.
Gclog and hs_log attached.  Additional details on request.

Regards,
Johnb
-------------------------------

As JohnB said, the gclog and hs_err file are attached.

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/6eddcbe17c83
20-09-2010

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/6eddcbe17c83
13-09-2010

SUGGESTED FIX Pass the correct array length to the NumberSeq constructor; dereference the pointer iff it's non-null.
13-09-2010

EVALUATION Incorrect array length passed to NumberSeq constructor causing a buffer overflow. Also there are unguarded dereferences of a pointer variable.
13-09-2010