[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 2995d45659)

Co-authored-by: Uxío García Andrade <uxiog21@gmail.com>
This commit is contained in:
Miss Islington (bot)
2026-05-05 03:15:33 +02:00
committed by GitHub
parent a458589a7e
commit 3f8c485660
2 changed files with 2 additions and 0 deletions
@@ -0,0 +1 @@
Fix :exc:`SystemError` when searching ELF Files in :func:`sys.remote_exec`.
+1
View File
@@ -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)))