proc: check map pointer for NULL in threadInfo
@@ -1286,6 +1286,7 @@ int proc_threadsList(int n, threadinfo_t *info)
info[i].vmem = 0;
+ if (map != NULL) {
proc_lockSet(&map->lock);
entry = lib_treeof(map_entry_t, linkage, lib_rbMinimum(map->tree.root));
@@ -1294,6 +1295,7 @@ int proc_threadsList(int n, threadinfo_t *info)
entry = lib_treeof(map_entry_t, linkage, lib_rbNext(&entry->linkage));
}
proc_lockClear(&map->lock);
+ }
++i;
t = lib_treeof(thread_t, idlinkage, lib_rbNext(&t->idlinkage));
