Skip to content

Commit 2995d45

Browse files
authored
gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (#137309)
1 parent 88844d2 commit 2995d45

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
@@ -781,6 +781,7 @@ search_linux_map_for_section(proc_handle_t *handle, const char* secname, const c
781781
}
782782

783783
if (strstr(filename, substr)) {
784+
PyErr_Clear();
784785
retval = search_elf_file_for_section(handle, secname, start, path);
785786
if (retval
786787
&& (validator == NULL || validator(handle, retval)))

0 commit comments

Comments
 (0)