-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
NumPy and SciPy are seeing segfaults with Pytest 5.1 and Python 3.5.6-dbg #5759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Can you git-bisect it? |
See also #5751 (comment) (by yours). Good to have it separated out though probably. |
I was hoping you wouldn't ask :) Yes, but I will need to install 3.5.6-dbg to do so, so it will be a bit of a slog. |
OK, got the debug version of 3.5.6 installed and can reproduce the error. I'll look to bisecting tomorrow. |
This comment has been minimized.
This comment has been minimized.
Bisecting with pytest-leaks (whose test suite also triggers an assert with pytest 5.1.0 on debug build): without set -e
mkdir -p tmp
cd tmp
export PYTHON=python3.5-dbg
test -d pytest || git clone https://github.com/pytest-dev/pytest pytest
test -d pytest-leaks || git clone https://github.com/abalkin/pytest-leaks pytest-leaks
git -C pytest-leaks checkout 6e15091aa5bb7e586a4af12e0b04f83f4ff9970d
git -C pytest clean -f -d -x
git -C pytest-leaks clean -f -d -x
test -d env || $PYTHON -mvenv env
source env/bin/activate
pip install -e pytest-leaks
pip uninstall -y pytest
pip install -e pytest
cd pytest
cat <<__EOF__ > check.sh
if python -mpytest ../pytest-leaks/tests; then
exit 0
else
exit 1
fi
__EOF__
git bisect start
git bisect good 5.0.1
git bisect bad 5.1.0
git bisect run bash check.sh says
Indeed, gdb shows a traceback like
|
This comment has been minimized.
This comment has been minimized.
@blueyed I can confirm that 5.1.1 fixes my problem. |
Great, can we close this then? |
Fine with me, I was waiting for @pv to sign off. |
Insofar as pytest-leaks is concerned, pytest master branch indeed works. |
NumPy and SciPy are seeing segfaults with Pytest 5.1 and Python 3.5.6-dbg. For example, https://travis-ci.org/numpy/numpy/jobs/573017630, which also shows the environment. Plain old Python 3.5.6 passes.
The text was updated successfully, but these errors were encountered: