Skip to content
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

pypy3 segmentation fault #6419

Closed
gaborbernat opened this issue Jan 7, 2020 · 3 comments
Closed

pypy3 segmentation fault #6419

gaborbernat opened this issue Jan 7, 2020 · 3 comments

Comments

@gaborbernat
Copy link
Contributor

See https://dev.azure.com/pypa/virtualenv/_build/results?buildId=17086&view=logs&j=b3e1d5b3-7205-5c20-0fbb-9ec4d3f8233f&t=05115d0d-a86f-52ed-4bab-d268832b14e4

platform linux -- Python 3.6.9[pypy-7.2.0-final], pytest-5.3.2, py-1.8.1, pluggy-0.13.1 -- /home/vsts/work/1/s/.tox/pypy3/bin/python
cachedir: .tox/pypy3/.pytest_cache
rootdir: /home/vsts/work/1/s, inifile: setup.cfg
plugins: xonsh-0.9.13.dev1, mock-1.13.0
collecting ... Fatal Python error: Segmentation fault

Stack (most recent call first, approximate line numbers):
  File "/home/vsts/work/1/s/.tox/pypy3/site-packages/virtualenv/interpreters/discovery/py_info.py", line 214 in _load_for_exe
  File "/home/vsts/work/1/s/.tox/pypy3/site-packages/virtualenv/interpreters/discovery/py_info.py", line 199 in from_exe
  File "/home/vsts/work/1/s/.tox/pypy3/site-packages/virtualenv/interpreters/discovery/py_info.py", line 150 in find_exe_based_of
  File "/home/vsts/work/1/s/.tox/pypy3/site-packages/virtualenv/interpreters/discovery/py_info.py", line 137 in system_executable
  File "/home/vsts/work/1/s/tests/unit/interpreters/create/test_creator.py", line 1 in <module>
  File "/home/vsts/work/1/s/.tox/pypy3/site-packages/_pytest/assertion/rewrite.py", line 105 in exec_module
  File ???
  File ???
  File ???
  File ???
  File ???
@gaborbernat
Copy link
Contributor Author

For context seems to happen with pypy 7.2.0+ on both pypy2 and pypy3, and the segfault dump points to scandir... Any workaround?☹️can't we use is.walk instead?

@gaborbernat
Copy link
Contributor Author

eprigorodov added a commit to eprigorodov/celery that referenced this issue Aug 20, 2021
due to possible problems when testing under pypy-3.7, windows-2019
(pytest-dev/pytest#6419)
auvipy pushed a commit to celery/celery that referenced this issue Aug 21, 2021
* Add cleanup implementation to filesystem backend

* improve unit test coverage

in backends.filesystem.FilesystemBackend.cleanup()

* replace os.scandir() with os.listdir()

due to possible problems when testing under pypy-3.7, windows-2019
(pytest-dev/pytest#6419)
jeyrce pushed a commit to jeyrce/celery that referenced this issue Aug 25, 2021
* Add cleanup implementation to filesystem backend

* improve unit test coverage

in backends.filesystem.FilesystemBackend.cleanup()

* replace os.scandir() with os.listdir()

due to possible problems when testing under pypy-3.7, windows-2019
(pytest-dev/pytest#6419)
@LilyFoote
Copy link

I think the pypy issue is now at https://foss.heptapod.net/pypy/pypy/-/issues/3146.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants