On debug, it just asserts, since the empty reserved region we create to hold the output of the mmap-search is created with address=NULL:
```
(gdb) call pp(0x7ffff010b030)
"Executing pp"
Thread 2 "java" received signal SIGSEGV, Segmentation fault.
0x00007ffff6721a71 in VirtualMemoryRegion::VirtualMemoryRegion (this=this@entry=0x7ffff5bb2620, addr=addr@entry=0x0, size=size@entry=0) at /shared/projects/openjdk/jdk-jdk/source/src/hotspot/share/services/virtualMemoryTracker.hpp:180
180 assert(addr != NULL, "Invalid address");
```
On release we don't assert and get further, but the use of SafeFetch is slightly wrong. It will deny us any NMT data about p if *p==0:
```
if (CanUseSafeFetchN() && SafeFetchN((intptr_t*)p, 0) != 0) {
```
- relates to
-
JDK-8280289 Enhance debug pp() command with NMT info
-
- Resolved
-