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

Intermittent CI _parse_ffi_str failure #418

Open
mborgerson opened this issue Sep 9, 2024 · 0 comments
Open

Intermittent CI _parse_ffi_str failure #418

mborgerson opened this issue Sep 9, 2024 · 0 comments

Comments

@mborgerson
Copy link
Member

Description

 _______________ ERROR collecting tests/test_arm_postprocess.py ________________
pyvex\tests\test_arm_postprocess.py:1: in <module>
    import pyvex
C:\Users\runneradmin\venv\lib\site-packages\pyvex\__init__.py:8: in <module>
    from . import const, expr, stmt
C:\Users\runneradmin\venv\lib\site-packages\pyvex\const.py:3: in <module>
    from .enums import VEXObject, get_enum_from_int
C:\Users\runneradmin\venv\lib\site-packages\pyvex\enums.py:3: in <module>
    from .native import ffi, pvc
C:\Users\runneradmin\venv\lib\site-packages\pyvex\native.py:74: in <module>
    pvc: Any = _find_c_lib()  # This should be properly typed, but this seems non trivial
C:\Users\runneradmin\venv\lib\site-packages\pyvex\native.py:64: in _find_c_lib
    _parse_ffi_str()
C:\Users\runneradmin\venv\lib\site-packages\pyvex\native.py:39: in _parse_ffi_str
    cache = pickle.loads(f.read())
E   EOFError: Ran out of input

Looks like an init race in:

cache = pickle.loads(f.read())
when running pytest via
pytest -n auto pyvex
.

Steps to reproduce the bug

No response

Environment

pyvex @ 390b91e

Additional context

No response

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

No branches or pull requests

1 participant