]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (#137309)
authorUxío García Andrade <uxiog21@gmail.com>
Tue, 5 May 2026 00:51:39 +0000 (02:51 +0200)
committerGitHub <noreply@github.com>
Tue, 5 May 2026 00:51:39 +0000 (01:51 +0100)
Misc/NEWS.d/next/Core_and_Builtins/2025-08-01-20-31-30.gh-issue-137293.4x3JbV.rst [new file with mode: 0644]
Python/remote_debug.h

diff --git a/Misc/NEWS.d/next/Core_and_Builtins/2025-08-01-20-31-30.gh-issue-137293.4x3JbV.rst b/Misc/NEWS.d/next/Core_and_Builtins/2025-08-01-20-31-30.gh-issue-137293.4x3JbV.rst
new file mode 100644 (file)
index 0000000..83289d4
--- /dev/null
@@ -0,0 +1 @@
+Fix :exc:`SystemError` when searching ELF Files in :func:`sys.remote_exec`.
index 7628fb04ba5bae9dda0d4fd8d937ebe81ed3f461..6c089a834dcd40d0a511395212f029813c8bc7f7 100644 (file)
@@ -781,6 +781,7 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
         }
 
         if (strstr(filename, substr)) {
+            PyErr_Clear();
             retval = search_elf_file_for_section(handle, secname, start, path);
             if (retval
                 && (validator == NULL || validator(handle, retval)))