JDK-8324114 : [lworld] GTestWrapper.java fails with "assert(LockingMode == LM_LEGACY) failed: should only be called with legacy stack locking"
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: repo-valhalla
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-01-18
  • Updated: 2024-02-08
  • Resolved: 2024-02-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaFixed
Related Reports
Relates :  
Description
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (/opt/mach5/mesos/work_dir/slaves/0db9c48f-6638-40d0-9a4b-bd9cc7533eb8-S18605/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/f1392778-dd52-487e-bee8-d68b03e6ec26/runs/01c6bacc-b930-415a-9107-1d7b5734580a/workspace/open/src/hotspot/share/oops/markWord.hpp:283), pid=27749, tid=27749
#  assert(LockingMode == LM_LEGACY) failed: should only be called with legacy stack locking
#
# JRE version: Java(TM) SE Runtime Environment (22.0+1) (fastdebug build 22-valhalla+1-40)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 22-valhalla+1-40, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V  [libjvm.so+0x5d86b7]  assert_unlocked_state(markWord)+0x1c7
........
Command Line: -XX:+ExecutingUnitTests 
........
Stack: [0x00007ffdc09c1000,0x00007ffdc0ac1000],  sp=0x00007ffdc0abf680,  free space=1017k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x5d86b7]  assert_unlocked_state(markWord)+0x1c7  (markWord.hpp:283)
V  [libjvm.so+0x5d8ebe]  markWord_prototype_vm_Test::TestBody()+0xe  (test_markWord.cpp:138)
V  [libjvm.so+0x1ece05f]  testing::Test::Run()+0xcf  (gtest.cc:2670)
V  [libjvm.so+0x1ece20d]  testing::TestInfo::Run()+0x18d  (gtest.cc:2836)
V  [libjvm.so+0x1ece3d9]  testing::TestSuite::Run()+0x1a9  (gtest.cc:3015)
V  [libjvm.so+0x1ed63ef]  testing::internal::UnitTestImpl::RunAllTests()+0x4df  (gtest.cc:5920)
V  [libjvm.so+0x1ec9b2d]  testing::UnitTest::Run()+0x8d  (gtest.cc:2670)
V  [libjvm.so+0x4055ac]  runUnitTestsInner(int, char**)+0x29c  (gtest.h:2317)
C  [gtestLauncher+0x6e9]  main+0x20  (gtestLauncher.cpp:40)


Comments
A pull request was submitted for review. URL: https://git.openjdk.org/valhalla/pull/973 Date: 2024-01-19 08:11:03 +0000
19-01-2024