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

Remove assert that ensures thread identifier remains the same

    XMLWordPrintable

    Details

    • Subcomponent:
      gc
    • Resolved In Build:
      b29
    • CPU:
      aarch64
    • OS:
      linux

      Backports

        Description

        The following test failed in the JDK17 CI:

        applications/kitchensink/Kitchensink.java

        Here's a snippet from the log file:

        Output and diagnostic info for process 3800988 was saved into 'pid-3800988-output.log'
        [stress.process.out] [thread 3794627 also had an error][thread 3794626 also had an error][thread 3794625 also had an error][thread 3794629 also had an error]
        [stress.process.out]
        [stress.process.out]
        [stress.process.out] #
        [stress.process.out] # A fatal error has been detected by the Java Runtime Environment:
        [stress.process.out] #
        [stress.process.out] # Internal Error (/opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13236/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ac8debd0-d4ab-4b0a-8040-6cd20dcfa74d/runs/9b797805-7c31-45ef-9693-b4955bf10761/workspace/open/src/hotspot/share/gc/shared/copyFailedInfo.hpp:77), pid=3794563, tid=3794624
        [stress.process.out] # assert(((Thread::current())->jfr_thread_local()->thread_id()) == _thread_trace_id) failed: The PromotionFailedInfo should be thread local.
        [stress.process.out] #
        [stress.process.out] # JRE version: Java(TM) SE Runtime Environment (17.0+26) (fastdebug build 17-ea+26-LTS-2343)
        [stress.process.out] # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-ea+26-LTS-2343, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, parallel gc, linux-aarch64)
        [stress.process.out] # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13243/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2da2d2ea-f814-4ce1-a81a-a8aef205bd30/runs/de21deb9-72d7-4da5-bc90-0a8d3f50faa1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/core.3794563)
        [stress.process.out] #
        [stress.process.out] Unsupported internal testing APIs have been used.
        [stress.process.out]
        [stress.process.out] # An error report file with more information is saved as:
        [stress.process.out] # /opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13243/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2da2d2ea-f814-4ce1-a81a-a8aef205bd30/runs/de21deb9-72d7-4da5-bc90-0a8d3f50faa1/testoutput/test-support/jtreg_closed_test_hotspot_jtreg_applications_kitchensink_Kitchensink_java/scratch/0/hs_err_pid3794563.log
        [stress.process.out]
        [stress.process.out] [thread 3794630 also had an error]
        [stress.process.out] #
        [stress.process.out] # If you would like to submit a bug report, please visit:
        [stress.process.out] # https://bugreport.java.com/bugreport/crash.jsp
        [stress.process.out] #


        Here's the crashing thread's stack:

        --------------- T H R E A D ---------------

        Current thread (0x0000fffd40002460): GCTaskThread "GC Thread#1" [stack: 0x0000fffd1c9e0000,0x0000fffd1cbe0000] [id=3794624]

        Stack: [0x0000fffd1c9e0000,0x0000fffd1cbe0000], sp=0x0000fffd1cbddf20, free space=2039k
        Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
        V [libjvm.so+0x1819c30] VMError::report_and_die(int, char const*, char const*, std::__va_list, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x170
        V [libjvm.so+0x181a920] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, std::__va_list)+0x50
        V [libjvm.so+0xa14488] report_vm_error(char const*, int, char const*, char const*, ...)+0x118
        V [libjvm.so+0xa2c394] PromotionFailedInfo::register_copy_failure(unsigned long)+0xb4
        V [libjvm.so+0x152e630] PSPromotionManager::oop_promotion_failed(oop, markWord)+0x19c
        V [libjvm.so+0x15312ec] oop PSPromotionManager::copy_to_survivor_space<false>(oop)+0x40c
        V [libjvm.so+0x153208c] void PSPromotionManager::copy_and_push_safe_barrier<false, narrowOop>(narrowOop*)+0xcc
        V [libjvm.so+0x152f8fc] PSPromotionManager::drain_stacks_depth(bool)+0x298
        V [libjvm.so+0x153abe0] PSEvacuateFollowersClosure::do_void()+0x20
        V [libjvm.so+0x1549c80] ReferenceProcessor::process_final_keep_alive_work(DiscoveredList&, OopClosure*, VoidClosure*)+0x1c0
        V [libjvm.so+0x15533c0] RefProcPhase3Task::rp_work(unsigned int, BoolObjectClosure*, OopClosure*, VoidClosure*)+0x60
        V [libjvm.so+0x1537358] ParallelScavengeRefProcProxyTask::work(unsigned int)+0xc8
        V [libjvm.so+0x187a818] GangWorker::run_task(WorkData)+0x98
        V [libjvm.so+0x187a978] GangWorker::loop()+0x58
        V [libjvm.so+0x187a9cc]
        V [libjvm.so+0x173e5f8] Thread::call_run()+0xf8
        V [libjvm.so+0x145a7f8] thread_native_entry(Thread*)+0x108
        C [libpthread.so.0+0x7738] start_thread+0x198

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                lkorinth Leo Korinth
                Reporter:
                dcubed Daniel Daugherty
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: