-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
multidict 4.7.1 causes segfault when bundled with PyInstaller #432
Comments
Im getting this with every version > 4.6.1 (4.7.0 and 4.7.1). |
Thanks for the report! |
This also happens when multidict is used with nuitka. @razaqq A temporary workaround is to set the I encountered this problem, and changed the install lines in my CI/CD pipeline to:
|
@asvetlov GDB states that the segfault occurs at https://github.com/aio-libs/multidict/blob/master/multidict/_multidict.c#L1595 , though I don't know if that's 100% accurate, as I wasn't working with a debug build (I don't think). |
Decref of static type is definitely a mistake but it happens on import failing only as I see. |
The fail happens here - https://github.com/aio-libs/multidict/blob/master/multidict/_multidict.c#L1494. And only when using pyinstaller. |
@iemelyanov thanks! |
A segfault with 4.7.0 also occurred in open-telemetry/opentelemetry-python#329. This is not using py installer or any other bundling tool. |
Can confirm that we've been getting random segfaults with 4.7.1; downgrading to 4.6.1 fixed the issue for us. This is through regular pip installation. |
In my case, it crashed with |
Fixed by #438 |
Describe the bug
After upgrading to
multidict
4.7.1 we have found that the applications we bundle using PyInstaller crash. Actually, I discovered this problem because we useaiohttp
which depends onmultidict
. Version 4.6.1 does not have this problem.To Reproduce
pip install multidict==4.7.1 pyinstaller
test.py
script with:pyinstaller test.py
Expected behavior
Application prints "Hello!" and quits nicely.
Logs/tracebacks
Provided above.
Your version of the Python
Observed with 3.6.9 and 3.7.5
Your version of the multidict distribution
4.7.1
Additional context
N/A
The text was updated successfully, but these errors were encountered: