JDK-6986571 : Java.lang.VerifyError thrown for jdk7b110 codecoverage test
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 7
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2010-09-22
  • Updated: 2013-04-17
  • Resolved: 2013-04-17
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.
Other
hs25Resolved
Related Reports
Relates :  
Description
Bug Description: There are 15 cases threw java.lang.VerifyError for jdk7b110 codecoverage test.
Testsuite name: 2D
JDK/JRE tested: jdk7b110(jdk-7-ea-bin-b110-windows-i586-16_sep_2010.exe)
OS/architecture:winxppro-sp3-i586
Reproducible: Always
Is it a platform specific regression: N 
Is it a Regression: Y
[If yes] Regression introduced in release/build: 7b109
[If yes] Test result on FCS: See the actual result.

Test run log location: http://jsqalab.sfbay.sun.com/results/Evergreen/7/1.7.0b110/2d/winxppro-sp3-i586/work/java/awt/FontClass/AwtHebrew/

Test run result location: http://jsqalab.sfbay.sun.com/results/Evergreen/7/1.7.0b110/2d/winxppro-sp3-i586/work/

Steps to reproduce:
For this build, we need to generate codecoverage. So please refer to the attachment arg file reg_2d.zip.
The detailed step listed below:
1.Install test bundle JDK7b110 into C:/jdk1.7.0, which download from http://jre.sfbay/java/re/jdk/7/promoted/ea/b110/bundles/windows-i586/

2.Install Jtreg to C:/jct3.2, which download from http://jre.sfbay.sun.com/java/re/jtreg/3.2.2_03/promoted/latest/binaries/jtreg/

3.Download and unzip ws to to C:/reg which download from http://sqindia.india.sun.com/export/disk16/Applabs_Results/workspaces/6u18/workspace_2d_reg_1600909.tar: 

4.Download jcov files and put to to C:/jcov, which download from http://jre.sfbay/java/re/jcov/1.3/nightly/binaries/latest/jcov_1.3/  

5.Modify the reg_2d.sh as below or all parameter in one line like the attachment"reg_2d.zip":

[JTREG-DIR]=c:/jct3.2

[OS]=win32

[STABLE_JAVA_HOME]=C:/jdk1.7.0

[TESTED_JAVA_HOME]=C:/jdk1.7.0

[RESULT-DIR]=C:/reg/result

[WORK-DIR]=C:/reg/work

[WORKSPACE]=C:/reg            ---------------it is the same location as TEST.ROOT

[VM_OPTS]= -javaagent:C:/jcov/lib/jcov.jar=format=legacy,include=java.awt.AlphaComposite,include=java.awt.BasicStroke,include=java.awt.BufferCapabilities,include=java.awt.BufferCapabilities.FlipContents,include=java.awt.Color,include=java.awt.ColorPaintContext,include=java.awt.Dimension,include=java.awt.DisplayMode,include=java.awt.Font,include=java.awt.FontFormatException,include=java.awt.FontMetrics,include=java.awt.GradientPaint,include=java.awt.GradientPaintContext,include=java.awt.Graphics,include=java.awt.Graphics2D,include=java.awt.GraphicsConfiguration,include=java.awt.GraphicsConfigTemplate,include=java.awt.GraphicsDevice,include=java.awt.GraphicsEnvironment,include=java.awt.Image,include=java.awt.ImageCapabilities,include=java.awt.MediaTracker,include=java.awt.Composite,include=java.awt.CompositeContext,include=java.awt.Paint,include=java.awt.PaintContext,include=java.awt.Point,include=java.awt.Polygon,include=java.awt.PrintGraphics,include=java.awt.Rectangle,include=java.awt.RenderingHints,include=java.awt.RenderingHints.Key,include=java.awt.Shape,include=java.awt.Stroke,include=java.awt.TexturePaint,include=java.awt.TexturePaintContext,include=java.awt.Transparency,include=java.awt.color.*,include=java.awt.font.*,include=java.awt.geom.*,include=java.awt.image.*,include=java.awt.print.*,include=javax.print.*,include=javax.imageio.*,include=sun.awt.SunHints,include=sun.awt.X11GraphicsConfig,include=sun.awt.X11GraphicsDevice,include=sun.awt.X11GraphicsEnvironment,include=sun.java2d.*,include=sun.awt.color.*,include=sun.awt.geom.*,include=sun.awt.image.*,include=sun.dc.*,include=sun.font.*,include=sun.print.*,include=com.sun.image.*,include=com.sun.imageio.*,include=java.awt.LinearGradientPaint,include=java.awt.LinearGradientPaintContext,include=java.awt.MultipleGradientPaint,include=java.awt.MultipleGradientPaintContext,include=java.awt.RadialGradientPaint,include=java.awt.RadialGradientPaintContext

6.Make printer work fine.

7.From command line, run ���sh reg_2d.sh ���

8.After Jtreg launched, choose view filter, and click the button to choose keyword and mark it as manual, please see attachment change_keyword.pnp. 

9.Click the start tunnin gthe test button to run the case such as sun/java2d/GdiRendering/GdiBlitOffscreenTest.java

Actual behavior:
java.lang.VerifyError thrown.

The following cases has this issue:
java/awt/FontClass/AwtHebrew/AwtHebrew.html
java/awt/font/NumericShaper/ShaperTest.html
java/awt/im/JTextFieldTest.java
java/awt/image/AffineTransformOp/DrawShort.java
java/awt/print/PrinterJob/CompareImageable.java
java/awt/print/PrinterJob/PrintTextLayout.java
sun/awt/font/win32/nrScalerContext/TestArabicHebrew.html
sun/awt/print/PrintDialog/PrintDialogAsianLocales/PrintDialogAsianLocales.java
sun/java2d/GdiRendering/GdiBlitOffscreenTest.java
sun/java2d/GraphicsConfiguration/CV.java
sun/java2d/GraphicsConfiguration/NonDefaultGC.java
sun/java2d/SunGraphics2D/DrawRenderedImageTest.java
sun/java2d/SunGraphics2D/RevalidateBug.java
sun/java2d/doubleBuffering/WindowMover/WindowMover.java
sun/java2d/volatileImage/BSRestoration.java

With the same build, no codecoverage test, it can pass.
(without codecoverage, that means you should run reg_2d.sh with out "-javaagent" like that: C:/jct3.2/win32/bin/jtreg -cpa:c:/reg -g -v -m -jdk:c:/jdk1.7.0 -r:c:/reg/result -w:c:/reg/work c:/reg)

When use jdk6u18 with codecoverage args, it can pass.
With b102, b103,..b108, even with codeavoerage test, it can pass.
Only for b109, it get fail with code coverage, get pass without codecoverage.


Exception:
"An exception has occurred in the compiler (1.7.0-ea). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you."
java.lang.VerifyError: Bad return type in method com.sun.tools.javac.jvm.Items.makeImmediateItem(Lcom/sun/tools/javac/code/Type;Ljava/lang/Object;)Lcom/sun/tools/javac/jvm/Items$Item; at offset 10
         at com.sun.tools.javac.jvm.Gen.initCode(Gen.java:979)
         at com.sun.tools.javac.jvm.Gen.genMethod(Gen.java:908)
         at com.sun.tools.javac.jvm.Gen.visitMethodDef(Gen.java:884)
         at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:659)
         at com.sun.tools.javac.jvm.Gen.genDef(Gen.java:683)
         at com.sun.tools.javac.jvm.Gen.genClass(Gen.java:2283)
         at com.sun.tools.javac.main.JavaCompiler.genCode(JavaCompiler.java:689)
         at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1383)
         at com.sun.tools.javac.main.JavaCompiler.generate(JavaCompiler.java:1351)
         at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:842)
         at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:801)
         at com.sun.tools.javac.main.Main.compile(Main.java:409)
         at com.sun.tools.javac.main.Main.compile(Main.java:327)
         at com.sun.tools.javac.main.Main.compile(Main.java:318)
         at com.sun.tools.javac.Main.compile(Main.java:82)
         at com.sun.tools.javac.Main.main(Main.java:67)
Code coverage process:
http://j2se.sfbay.sun.com/web/bin/view/SQE/SECodeCoverageProcess

Comments
Duplicate of 6991315.
17-04-2013

EVALUATION This is likely the same root case as 6991315, which as been fixed for hs20b03. Should rerun this test again with a newer JVM to see if it is resolved.
08-11-2010