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
This is https://bugs.kde.org/show_bug.cgi?id=396415 , but opening it here just for tracking/visibility. When running a script under valgrind mis-reports /proc/self/exe as the path to the script itself instead of the path to the script interpreter. This means that, at least on glibc/Linux, the $ORIGIN-relative library paths that are used by python-build-standalone don't get resolved correctly for scripts installed in a different directory to the Python interpreter (notably, those installed in a venv), and the Python interpreter fails to launch.
The minimal reproduction is something like valgrind --tool=none some/venv/bin/pytest (or just plain valgrind).
This was reported specifically as codspeed run pytest (invoked by CodSpeedHQ/action in GHA) not working. CodSpeed internally uses valgrind.
A workaround is to invoke the interpreter directly instead of using a script, either with an appropriate python -m command (e.g. python -m pytest), or by passing the script as an argument to the interpreter (e.g., python some/venv/bin/pytest).
The text was updated successfully, but these errors were encountered:
I tested it and it seems to work, and I opened CodSpeedHQ/valgrind-codspeed#1 requesting that they backport this one patch, because from valgrind-announce archives, they seem to go anywhere from six months to a couple of years between releases.
This is https://bugs.kde.org/show_bug.cgi?id=396415 , but opening it here just for tracking/visibility. When running a script under valgrind mis-reports /proc/self/exe as the path to the script itself instead of the path to the script interpreter. This means that, at least on glibc/Linux, the
$ORIGIN
-relative library paths that are used by python-build-standalone don't get resolved correctly for scripts installed in a different directory to the Python interpreter (notably, those installed in a venv), and the Python interpreter fails to launch.The minimal reproduction is something like
valgrind --tool=none some/venv/bin/pytest
(or just plainvalgrind
).This was reported specifically as
codspeed run pytest
(invoked by CodSpeedHQ/action in GHA) not working. CodSpeed internally uses valgrind.A workaround is to invoke the interpreter directly instead of using a script, either with an appropriate
python -m
command (e.g.python -m pytest
), or by passing the script as an argument to the interpreter (e.g.,python some/venv/bin/pytest
).The text was updated successfully, but these errors were encountered: