JDK-8278074 : assert(target->is_handshake_safe_for(current_thread)) failed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 18
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows
  • Submitted: 2021-12-01
  • Updated: 2021-12-02
Description
Since a while (about 1..2 weeks) GHAs and SAP-local tests on Windows fail sporadically on various jtreg tests. Typically affected are:

- runtime/logging/ThreadLoggingTest.java 
- serviceability/logging/TestBasicLogOutput.java 
- serviceability/logging/TestFullNames.java 
- serviceability/logging/TestQuotedLogOutputs.java 

2021-11-30T11:28:32.6697241Z #
2021-11-30T11:28:32.6698211Z # A fatal error has been detected by the Java Runtime Environment:
2021-11-30T11:28:32.6699051Z #
2021-11-30T11:28:32.6699754Z #  Internal Error (d:\a\jdk\jdk\jdk\src\hotspot\share\runtime\thread.cpp:479), pid=5208, tid=3364
2021-11-30T11:28:32.6700940Z #  assert(target->is_handshake_safe_for(current_thread)) failed: JavaThread=0x000002305c2846c0 is not protected and not handshake safe.
2021-11-30T11:28:32.6701890Z #
2021-11-30T11:28:32.6703358Z # JRE version: OpenJDK Runtime Environment (18.0) (fastdebug build 18-internal+0-tstuefe-a571f6de524337936b8bc90669fe9df233d53dca)
2021-11-30T11:28:32.6706086Z # Java VM: OpenJDK 64-Bit Server VM (fastdebug 18-internal+0-tstuefe-a571f6de524337936b8bc90669fe9df233d53dca, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
2021-11-30T11:28:32.6709745Z # Core dump will be written. Default location: D:\a\jdk\jdk\build\run-test-prebuilt\test-support\jtreg_test_hotspot_jtreg_tier1_runtime\scratch\hs_err_pid5208.mdmp
2021-11-30T11:28:32.6710886Z #
2021-11-30T11:28:32.6711849Z # An error report file with more information is saved as:
2021-11-30T11:28:32.6712949Z # D:\a\jdk\jdk\build\run-test-prebuilt\test-support\jtreg_test_hotspot_jtreg_tier1_runtime\scratch\hs_err_pid5208.log
2021-11-30T11:28:32.6713789Z #
2021-11-30T11:28:32.6714536Z # If you would like to submit a bug report, please visit:
2021-11-30T11:28:32.6715565Z #   https://bugreport.java.com/bugreport/crash.jsp
2021-11-30T11:28:32.6717149Z #
Comments
Or "not an issue".
02-12-2021

Only bugs associated with a changeset should be closed as "Fixed". This bug should be closed as a duplicate of the bug that fixed the issue. Or it can be closed as "Not Reproducible".
01-12-2021