-
-
Notifications
You must be signed in to change notification settings - Fork 506
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
Segfault Connecting After Importing Asana (2.7.X) #603
Comments
One more note - this is connecting to Amazon Redshift. I actually just had trouble reproducing this in Postgres proper :(. |
I've seen this happen on other platforms/languages too. Two lbraries, libpq and whatever used by asana are linked against different versions of libcrypto. A solution is to make sure there is only 1 version of libcrypto onbthe system: you may need to build from source to make sure all packages use it. |
The problem is caused by the psycopg2 wheel package and will not present compiling psycopg from source. You can find details here: http://initd.org/psycopg/docs/install.html#binary-install-from-pypi |
Thank you for the info! |
@theaeolianmachine I'm trying to fix this problem but I have problems reproducing it. Would you be able to provide a Dockerfile recreate it? Thank you very much. |
Hey @dvarrazzo - I appreciate you looking into it further, but we did fix this problem by installing via source (appreciate the context). Given the lack of deep knowledge I personally have around our systems and what else is installed on them, it might take a bit. - just let me know if you'd like to keep hunting down this issue. |
Hey psycopg2 maintainers,
Recently we encountered an issue where by running the following program, you get a segfault when psycopg2 tries to connect to a database:
asana is a 3rd-party library, in particular it's this one: Github | PyPI
There are two important characteristics of the repro:
The backtrace we got looks like it's in making an SSL connection and using libcrypto. Of note is that asana is all in python and doesn't explicitly do any crypto work, but it uses
requests
(requests >=2.14.2, == 2.14.*
) andrequests_oauthlib
(requests_oauthlib >= 0.6.1, == 0.6.*
) which to my knowledge should also use lower level libraries when making SSL connections.The backtrace itself:
Can you all see if you can reproduce this issue? We unfortunately had to downgrade psycopg2 as a result, and we'd love to have some of the great 2.7 features back.
Thank you!
The text was updated successfully, but these errors were encountered: