Skip to content

Commit 3f8c485

Browse files
[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 2995d45) Co-authored-by: Uxío García Andrade <uxiog21@gmail.com>
1 parent a458589 commit 3f8c485

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix :exc:`SystemError` when searching ELF Files in :func:`sys.remote_exec`.

Python/remote_debug.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
762762
}
763763

764764
if (strstr(filename, substr)) {
765+
PyErr_Clear();
765766
retval = search_elf_file_for_section(handle, secname, start, path);
766767
if (retval
767768
&& (validator == NULL || validator(handle, retval)))

0 commit comments

Comments
 (0)