https://github.com/python/cpython/commit/8e496013b287a7f60c9cee71f4321dddc0776b61 commit: 8e496013b287a7f60c9cee71f4321dddc0776b61 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: vstinner <[email protected]> date: 2025-12-12T13:38:09Z summary:
[3.14] gh-142627: Ignore anonymous mappings in Linux remote debugging (GH-142628) (#142630) gh-142627: Ignore anonymous mappings in Linux remote debugging (GH-142628) (cherry picked from commit e0bca091a4f112b9f0beb4ce19dfac2a7fc50342) Co-authored-by: Victor Stinner <[email protected]> files: M Python/remote_debug.h diff --git a/Python/remote_debug.h b/Python/remote_debug.h index 8f9b6cd4c4960f..ed213859a8afab 100644 --- a/Python/remote_debug.h +++ b/Python/remote_debug.h @@ -720,6 +720,11 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c } const char *path = line + path_pos; + if (path[0] == '[' && path[strlen(path)-1] == ']') { + // Skip [heap], [stack], [anon:cpython:pymalloc], etc. + continue; + } + const char *filename = strrchr(path, '/'); if (filename) { filename++; // Move past the '/' _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
