You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SystemError: <built-in function remote_exec> returned a result with an exception set #137293
3.14bugs and security fixes3.15bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
While testing with sys.remote_exec today I got this error:
OSError: Cannot open ELF file '/home/godlygeek/repos/memray/src/memray/_memray.cpython-314-x86_64-linux-gnu.so (deleted)' for section 'PyRuntime' search: No such file or directory
The above exception was the direct cause of the following exception:
...
SystemError: <built-in function remote_exec> returned a result with an exception set
The root cause is that sys.remote_exec can return a result with an exception set if it fails to open one or more mapped files while searching for the mapping that contains PyRuntime, but eventually successfully reads the file that does contain PyRuntime.
We either need to stop setting exceptions inside search_linux_map_for_section entirely, or print and clear them with PyErr_Print before continuing on with the search.
I'll contribute a fix tomorrow unless someone beats me to it.
3.14bugs and security fixes3.15bugs and security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-bugAn unexpected behavior, bug, or error
Activity
pythongh-137293: Print Exceptions in searching ELF File in Remote Debug
pythongh-137293 print exception instead of clearing
pythongh-137293 clear exception
pythongh-137293 remove exceptions in search_elf_file_for_section
pythongh-137293 Clear exceptions before search_elf_file_for_section
gh-137293: Ignore Exceptions when searching ELF File in Remote Debug (#…
[3.14] gh-137293: Ignore Exceptions when searching ELF File in Remote…