From cc0c90a4a4599ca6f0470157db5fc78c2708a904 Mon Sep 17 00:00:00 2001 From: John McCann Cunniff Jr <36013983+jmc1283@users.noreply.github.com> Date: Thu, 20 Feb 2020 11:45:22 -0500 Subject: [PATCH] Fix vmmap crash when PG is disabled (#709) --- pwndbg/vmmap.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pwndbg/vmmap.py b/pwndbg/vmmap.py index 4c65b06e5..be89b47c3 100644 --- a/pwndbg/vmmap.py +++ b/pwndbg/vmmap.py @@ -245,6 +245,11 @@ def monitor_info_mem(): # TODO: add debug logging return tuple() + # Handle disabled PG + # This will prevent a crash on abstract architectures + if len(lines) == 1 and lines[0] == 'PG disabled': + return tuple() + pages = [] for line in lines: dash_idx = line.index('-')