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

Popping a stack frame after exception breakpoint sets last method param to exception

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 7u80, 8, 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Environment:

      JDK 1.8.0

    • Subcomponent:
    • Introduced In Build:
      b104
    • Introduced In Version:
    • Resolved In Build:
      b66
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        See https://netbeans.org/bugzilla/show_bug.cgi?id=251569

        Use the attached class to reproduce the bug.

        Run the class under debugger:
        $ java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=localhost:37535 -classpath ... exceptionbug.ExceptionBug

        Then attach jdb:
        $ jdb -attach localhost:37535

        main[1] cont
        >
        Exception occurred: java.lang.UnsupportedOperationException (uncaught)"thread=main", exceptionbug.ExceptionBug.criticalMethod(), line=26 bci=48

        main[1] pop
        main[1] step
        >
        Step completed: "thread=main", exceptionbug.ExceptionBug.criticalMethod(), line=20 bci=0

        main[1] print importantString
         importantString = "java.lang.UnsupportedOperationException: Kaboom!"

          Activity

          Hide
          sspitsyn Serguei Spitsyn added a comment - - edited
          [to Abhijit: ]
          This is an 8u60 bug, so the introduced in build must be related to 8, b104.
          The regression was most likely backported from 8 to 7u60.

          It looks like I have a fix for this issue.
          But the normal process is to fix it in this order: 9 => 8u => 7u.
          Please, let me know if it is NOT Ok for this sage of 7u80.
          If I understand it correctly, the 7u80 has been completed.
          If so, are there any plans for the next 7 update?

          I have no plans to backport the fix to the 7u and do rely on the Sustaining team.
          Show
          sspitsyn Serguei Spitsyn added a comment - - edited [to Abhijit: ] This is an 8u60 bug, so the introduced in build must be related to 8, b104. The regression was most likely backported from 8 to 7u60. It looks like I have a fix for this issue. But the normal process is to fix it in this order: 9 => 8u => 7u. Please, let me know if it is NOT Ok for this sage of 7u80. If I understand it correctly, the 7u80 has been completed. If so, are there any plans for the next 7 update? I have no plans to backport the fix to the 7u and do rely on the Sustaining team.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          Forgot to tell about the 8 regression that came with the b104.
          This is the email that lists the fix of JDK-7187554 (the same as the 7u60 b08 does):

          hs25-b46 has been integrated into jdk8-b104.

          http://hg.openjdk.java.net/jdk8/jdk8/rev/ceefd94ef326
          http://hg.openjdk.java.net/jdk8/jdk8/corba/rev/d411c60a8c2f
          http://hg.openjdk.java.net/jdk8/jdk8/hotspot/rev/104743074675
          http://hg.openjdk.java.net/jdk8/jdk8/jaxp/rev/a22fe9bd01e6
          http://hg.openjdk.java.net/jdk8/jdk8/jaxws/rev/42211ab0ab1c
          http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/f1d8d15bfcb5
          http://hg.openjdk.java.net/jdk8/jdk8/langtools/rev/dd4a00c220c6
          http://hg.openjdk.java.net/jdk8/jdk8/nashorn/rev/afc100513451

          Component : VM
          Status : 0 major failures, 0 minor failures
          Date : 08/20/2013 at 21:57
          Tested By : VM SQE &leonid.mesnik@oracle.com
          Cost(total man-days): 1

          Workspace :
          Bundles :

          Platforms :
          Others

          Tests :/net/sqenfs-1.sfbay/export1/comp/vm/testbase/
          Browsers : NA
          Patches : NA
          Logs : none
          Number of Tests Executed : 0 product tests, 0 unit tests, 0 tck tests

          Bug verification status:
          ======================================
           Tested, Pass:

           Tested, Pass (partial fixes):

           Tested, Fail:

           Untested bug fixes:
              Setup is not available:
          7187554: JSR 292: JVMTI PopFrame needs to handle appendix arguments
          8009728: nsk/jvmti/AttachOnDemand/attach030 crashes on Win32
          8016601: Unable to build hsx24 on Windows using project creator and Visual Studio
          8019583: [TESTBUG] runtime/7107135 always passes
          8019915: whitebox testClearMethodStateTest fails with tiered on sparc
          8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0
          8021771: warning stat64 is deprecated - when building on OSX 10.7.5
          8022093: syntax error near "umpiconninfo_t" -- when building on Solaris 10
          8022188: Make zero compile after 8016131 and 8016697
          8022284: Hide internal data structure in PhaseCFG
          8022452: Hotspot needs to know about Windows 8.1 and Windows Server 2012 R2
          8022475: Remove unneeded ad-files
          8022688: new hotspot build - hs25-b46
          8022740: Visual 2008 IDE build is broken
          8022800: Use specific generations rather than generation iteration
          8022880: False sharing between PSPromotionManager instances
          8022899: SunStudio compiler can not handle EXCEPTION_MARK and inlining
          8022993: Convert MAX_UNROLL constant to LoopMaxUnroll C2 flag
          8023021: Unnecessary clearing of the card table introduced by the fix for JDK-8023013

              Build change only:

           New bugs filed:
              Bugs in PIT build:

              Bugs in earlier promoted build:

          Number of PIT requested: 1
          Integration target J2SE build number: 1.8.0-b104.

          Issues and Notes:
            This is PIT for HS25 b46 for JDK 8 b104.
          Show
          sspitsyn Serguei Spitsyn added a comment - Forgot to tell about the 8 regression that came with the b104. This is the email that lists the fix of JDK-7187554 (the same as the 7u60 b08 does): hs25-b46 has been integrated into jdk8-b104. http://hg.openjdk.java.net/jdk8/jdk8/rev/ceefd94ef326 http://hg.openjdk.java.net/jdk8/jdk8/corba/rev/d411c60a8c2f http://hg.openjdk.java.net/jdk8/jdk8/hotspot/rev/104743074675 http://hg.openjdk.java.net/jdk8/jdk8/jaxp/rev/a22fe9bd01e6 http://hg.openjdk.java.net/jdk8/jdk8/jaxws/rev/42211ab0ab1c http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/f1d8d15bfcb5 http://hg.openjdk.java.net/jdk8/jdk8/langtools/rev/dd4a00c220c6 http://hg.openjdk.java.net/jdk8/jdk8/nashorn/rev/afc100513451 Component : VM Status : 0 major failures, 0 minor failures Date : 08/20/2013 at 21:57 Tested By : VM SQE & leonid.mesnik@oracle.com Cost(total man-days): 1 Workspace : Bundles : Platforms : Others Tests :/net/sqenfs-1.sfbay/export1/comp/vm/testbase/ Browsers : NA Patches : NA Logs : none Number of Tests Executed : 0 product tests, 0 unit tests, 0 tck tests Bug verification status: ======================================  Tested, Pass:  Tested, Pass (partial fixes):  Tested, Fail:  Untested bug fixes:     Setup is not available: 7187554: JSR 292: JVMTI PopFrame needs to handle appendix arguments 8009728: nsk/jvmti/AttachOnDemand/attach030 crashes on Win32 8016601: Unable to build hsx24 on Windows using project creator and Visual Studio 8019583: [TESTBUG] runtime/7107135 always passes 8019915: whitebox testClearMethodStateTest fails with tiered on sparc 8020598: ObjectCountEventSender::send needs INCLUDE_TRACE guards when building OpenJDK with INCLUDE_TRACE=0 8021771: warning stat64 is deprecated - when building on OSX 10.7.5 8022093: syntax error near "umpiconninfo_t" -- when building on Solaris 10 8022188: Make zero compile after 8016131 and 8016697 8022284: Hide internal data structure in PhaseCFG 8022452: Hotspot needs to know about Windows 8.1 and Windows Server 2012 R2 8022475: Remove unneeded ad-files 8022688: new hotspot build - hs25-b46 8022740: Visual 2008 IDE build is broken 8022800: Use specific generations rather than generation iteration 8022880: False sharing between PSPromotionManager instances 8022899: SunStudio compiler can not handle EXCEPTION_MARK and inlining 8022993: Convert MAX_UNROLL constant to LoopMaxUnroll C2 flag 8023021: Unnecessary clearing of the card table introduced by the fix for JDK-8023013     Build change only:  New bugs filed:     Bugs in PIT build:     Bugs in earlier promoted build: Number of PIT requested: 1 Integration target J2SE build number: 1.8.0-b104. Issues and Notes:   This is PIT for HS25 b46 for JDK 8 b104.
          Hide
          sspitsyn Serguei Spitsyn added a comment -
          I'm re-targetting this bug to 9 as this must be fixed in jdk 9 first.
          I will create an 8u60 backport of this bug.
          Show
          sspitsyn Serguei Spitsyn added a comment - I'm re-targetting this bug to 9 as this must be fixed in jdk 9 first. I will create an 8u60 backport of this bug.
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/fb5a26de630e
          User: sspitsyn
          Date: 2015-04-30 02:30:11 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/fb5a26de630e User: sspitsyn Date: 2015-04-30 02:30:11 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/fb5a26de630e
          User: lana
          Date: 2015-05-27 18:31:25 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/fb5a26de630e User: lana Date: 2015-05-27 18:31:25 +0000

            People

            • Assignee:
              sspitsyn Serguei Spitsyn
              Reporter:
              mentlich Martin Entlicher
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: