Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080084

[macosx] java/awt/Graphics2D/DrawString/DrawStringCrash.java fails with G1 GC

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      b29
    • CPU:
      generic
    • OS:
      os_x

      Description

      Testsuite name: Regression(jdk_awt)
      Test name(s): java/awt/Graphics2D/DrawString/DrawStringCrash.java
      Product(s) tested: JDK 9b62(64-bit), JDK 9b55(64-bit)
      OS/architecture: MacOSX/x64
      Error log file (if present): attached
      Reproducible: Always
      Reproducible on machine: stt-mac-05.ru.oracle.com
      Is it a Regression: No
      Regression introduced in release/build:N/A
      Is it a platform specific issue: Yes (passes on OEL 6.4 and Solaris 11)
      [If platform specific issue] Is it a new (previously unsupported) OS/browser/mode testing: No
      [If new configuration testing] Issue specific to execution mode or OS/browser version: No

      Exception/Error from Log: see jtr attached

        Activity

        Hide
        vdyakov Victor Dyakov added a comment - - edited
        Srinivasan, is this bug fix still in your plans to meet ZBB(Oct 20)?
        http://openjdk.java.net/projects/jdk9/
        Show
        vdyakov Victor Dyakov added a comment - - edited Srinivasan, is this bug fix still in your plans to meet ZBB(Oct 20)? http://openjdk.java.net/projects/jdk9/
        Hide
        vadim Vadim Pakhnushev added a comment -
        Asking for deferral - not enough resources to fix
        Show
        vadim Vadim Pakhnushev added a comment - Asking for deferral - not enough resources to fix
        Hide
        yan Yuri Nesterenko (Inactive) added a comment -
        SQE: JDK 9: OK to defer
        Show
        yan Yuri Nesterenko (Inactive) added a comment - SQE: JDK 9: OK to defer
        Hide
        vdyakov Victor Dyakov added a comment -
        Approved by component triage team to defer
        Show
        vdyakov Victor Dyakov added a comment - Approved by component triage team to defer
        Hide
        vdyakov Victor Dyakov added a comment -
        Targeted to 10 as an issue introduced in 8u or 9
        Show
        vdyakov Victor Dyakov added a comment - Targeted to 10 as an issue introduced in 8u or 9
        Hide
        prr Philip Race added a comment -
        OOME is not actually a failure of what this is testing. In fact the expected behaviour of this test is OOME instead of a crash.
        The test catches OOME and returns "successfully". However in the case of the logged failure the OOME is out-side the try/catch,
        in executing StringBuilder.append() :

         java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOf(Arrays.java:3332)
        at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:140)
        at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
        at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:435)
        at java.lang.StringBuffer.append(StringBuffer.java:306)
        at DrawStringCrash.main(DrawStringCrash.java:59)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:502)
        at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
        at java.lang.Thread.run(Thread.java:745)


        ----

        This can be corrected.

        But additionally it is probably prudent to make this an othervm test ..
        Show
        prr Philip Race added a comment - OOME is not actually a failure of what this is testing. In fact the expected behaviour of this test is OOME instead of a crash. The test catches OOME and returns "successfully". However in the case of the logged failure the OOME is out-side the try/catch, in executing StringBuilder.append() :  java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:140) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:435) at java.lang.StringBuffer.append(StringBuffer.java:306) at DrawStringCrash.main(DrawStringCrash.java:59) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:502) at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94) at java.lang.Thread.run(Thread.java:745) ---- This can be corrected. But additionally it is probably prudent to make this an othervm test ..
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk10/client/rev/74429839ae97
        User: prr
        Date: 2017-10-10 19:20:12 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk10/client/rev/74429839ae97 User: prr Date: 2017-10-10 19:20:12 +0000
        Hide
        hgupdate HG Updates added a comment -
        URL: http://hg.openjdk.java.net/jdk10/master/rev/74429839ae97
        User: prr
        Date: 2017-10-19 18:50:32 +0000
        Show
        hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk10/master/rev/74429839ae97 User: prr Date: 2017-10-19 18:50:32 +0000

          People

          • Assignee:
            prr Philip Race
            Reporter:
            sgupta Shobhit Gupta
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: