JDK-8055061 : assert at share/vm/services/virtualMemoryTracker.cpp:332 Error: ShouldNotReachHere() when running NMT tests
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2014-08-13
  • Updated: 2015-01-21
  • Resolved: 2014-08-19
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.
JDK 8 JDK 9
8u40Fixed 9 b29Fixed
Related Reports
Blocks :  
Description
Ran NMT tests on Linux i586 with client VM and the following tests:

runtime/NMT/BaselineWithParameter.java
runtime/NMT/JcmdBaselineDetail.java
runtime/NMT/JcmdScale.java
runtime/NMT/JcmdScaleDetail.java
runtime/NMT/ShutdownTwice.java
runtime/NMT/SummaryAfterShutdown.java

hit the following assert:

#  Internal Error (/opt/jprt/T/P1/160847.ctornqvi/s/src/share/vm/services/virtualMemoryTracker.cpp:332), pid=2359, tid=1451232144
#  Error: ShouldNotReachHere()

Stack:

V  [libjvm.so+0xa9c128]  VMError::report_and_die()+0x198
V  [libjvm.so+0x3c771a]  report_should_not_reach_here(char const*, int)+0x7a
V  [libjvm.so+0xa8e8c4]  VirtualMemoryTracker::add_reserved_region(unsigned char*, unsigned int, NativeCallStack const&, MemoryType, bool)+0x144
V  [libjvm.so+0x8a8540]  os::map_memory(int, char const*, unsigned int, char*, unsigned int, bool, bool)+0x100
V  [libjvm.so+0x419f71]  FileMapInfo::map_region(int)+0x61
V  [libjvm.so+0x81641a]  MetaspaceShared::map_shared_spaces(FileMapInfo*)+0x4a
V  [libjvm.so+0x8136a8]  Metaspace::global_initialize()+0x428
V  [libjvm.so+0xa5171d]  universe_init()+0x5d
V  [libjvm.so+0x4fc441]  init_globals()+0x61
V  [libjvm.so+0xa345c4]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x224
V  [libjvm.so+0x647218]  JNI_CreateJavaVM+0x88
C  [libjli.so+0x5edd]  JavaMain+0x8d
C  [libpthread.so.0+0x632f]  start_thread+0xbf
C  [libc.so.6+0xde20e]  clone+0x5e
Comments
I have not been able to reproduce this locally, I've tried on my Linux machine (Oracle Linux 6), a Fedora 10 machine and the machine where this was seen on (Fedora 9).
13-08-2014