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

Virtual thread instability when stack overflows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 20
    • 20
    • hotspot
    • b33
    • generic

    Backports

      Description

        First, apply 1.patch.

        Then run the test like this:

        `CONF=slow make CONF_CHECK=auto LOG=info test TEST=test/jdk/jdk/incubator/concurrent/ScopedValue/StressStackOverflow.java`

        You'll see:

        ```
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/local/theRealAph-jdk/src/hotspot/share/gc/shared/memAllocator.cpp:148), pid=3032125, tid=3032149
        # assert(!(((ThreadShadow*)__the_thread__)->has_pending_exception())) failed: Should not allocate with exception pending
        #
        # JRE version: OpenJDK Runtime Environment (20.0) (slowdebug build 20-internal-adhoc.aph.theRealAph-jdk)
        # Java VM: OpenJDK 64-Bit Server VM (slowdebug 20-internal-adhoc.aph.theRealAph-jdk, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
        # Problematic frame:
        # V [libjvm.so+0xff1c64] MemAllocator::Allocation::verify_before()+0x32
        ```

        Attachments

          1. 1.patch
            0.8 kB
            Andrew Haley

          Issue Links

            Activity

              People

                rpressler Ron Pressler
                aph Andrew Haley
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: