Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-142627: Ignore anonymous mappings in Linux remote debugging
  • Loading branch information
vstinner committed Dec 12, 2025
commit 73711a35eaf92f040738c800e0f4b5566b5ada50
5 changes: 5 additions & 0 deletions Python/remote_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,11 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
filename = path; // No directories, or an empty string
}

if (filename[0] == '[' && filename[strlen(filename)-1] == ']') {
// Skip anonymous mapping: [heap], [anon:cpython:pymalloc], etc.
continue;
}

if (strstr(filename, substr)) {
retval = search_elf_file_for_section(handle, secname, start, path);
if (retval) {
Expand Down
Loading