| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…Linux (pythonGH-150012) When running profiling on Linux without sudo, attempts to read process memory would fail with the misleading error 'Failed to find the PyRuntime section in process <pid> on Linux platform'. The actual issue is a permissions error because profiling was not run with sudo. We were clearing the exception on Linux when trying to read memory, instead, we should bubble up the permissions error and show it properly. (cherry picked from commit 0563890) Co-authored-by: ivonastojanovic <80911834+ivonastojanovic@users.noreply.github.com>
| Back | FazBrowse Home | New Git URL |
Backport of GH-150012 to Python 3.14.
This preserves PermissionError when runtime-cookie validation fails and prevents the Linux runtime lookup from replacing it with a misleading RuntimeError. Python 3.14 already contains the overlapping map-search propagation from GH-151032, so this backport includes only the two remaining required changes.
Without this fix, process_vm_readv() returning EPERM is reported as “Failed to find the PyRuntime section” instead of the actual permissions error.
(cherry picked from commit 0563890)