gh-149619: Fix `_remote_debugging` permissions error on Linux (#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.
I
ivonastojanovic committed
0563890872b3c63f94953e983fe396615b708540
Parent: a5cb7c3
Committed by GitHub <noreply@github.com>
on 5/24/2026, 1:12:05 PM