https://github.com/python/cpython/commit/3f8c4856609cfa676209ff0f3e3c6dc26bdbd30e
commit: 3f8c4856609cfa676209ff0f3e3c6dc26bdbd30e
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: pablogsal <[email protected]>
date: 2026-05-05T01:15:33Z
summary:

[3.14] gh-137293: Ignore Exceptions when searching ELF File in Remote Debug 
(GH-137309) (#149391)

gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (GH-137309)
(cherry picked from commit 2995d4565978365233e01ad8b472c5512f3991be)

Co-authored-by: Uxío García Andrade <[email protected]>

files:
A 
Misc/NEWS.d/next/Core_and_Builtins/2025-08-01-20-31-30.gh-issue-137293.4x3JbV.rst
M 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
index 00000000000000..83289d4d9bc875
--- /dev/null
+++ 
b/Misc/NEWS.d/next/Core_and_Builtins/2025-08-01-20-31-30.gh-issue-137293.4x3JbV.rst
@@ -0,0 +1 @@
+Fix :exc:`SystemError` when searching ELF Files in :func:`sys.remote_exec`.
diff --git a/Python/remote_debug.h b/Python/remote_debug.h
index df1225f2eda101..6a7706bb76e8ab 100644
--- a/Python/remote_debug.h
+++ b/Python/remote_debug.h
@@ -762,6 +762,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)))

_______________________________________________
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]

Reply via email to