United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6981746 G1: SEGV with -XX:+TraceGen0Time
JDK-6981746 : G1: SEGV with -XX:+TraceGen0Time

Details
Type:
Bug
Submit Date:
2010-09-01
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
hs20 (b01)

Related Reports
Backport:
Backport:

Sub Tasks

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
SUGGESTED FIX

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

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

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

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



Hardware and Software, Engineered to Work Together