-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
TDLib crashes when compiled with OpenSSL 3.4.0 #3171
Comments
When compiled with OpenSSL 3.2.2, as expected TDLib 1.8.41 works fine. |
The trace point to internals of the OpenSSL, which highly likely makes the bug an OpenSSL 3.4.0 bug. To confirm this and remove other possible causes a minimal example is required. Could you build the code
, call the function from your code without loading TDLib and check whether it crashes? |
Does it crash only for some specific architecture? |
I think so as it didn't crash on the watchOS simulator (arm64). It only crashed on the watch device (arm64_32) |
Could you show the exact place of the crash in |
Could you do the last test before this can be properly reported to the OpenSSL team? Could you rebuild OpenSSL 3.4.0 with |
Sorry but can you advise where to add |
The Makefile has the line
which can be replaced with |
Thanks will do |
Looks like that solves it - the minimal example didn't crash Will build TDLib 1.8.41 again, if it works fine I will send in a pull request for the patch file (update: yes it worked) |
Thank you. Now we have enough data to be sure that this is an OpenSSL 3.4.0 bug and what causes it. OpenSSL introduced a new hashtable implementation this year, which didn't exist in 3.3.0 and was merged to 3.4.0. The crash happens on the first access to the hashtable, so I don't think that the specific called OpenSSL method matters. It is likely that the implementation of the hashtable is incorrect for Now we need to create an issue at https://github.com/openssl/openssl/issues. Do you want me to describe the issue to them or do you want to do this yourself? |
Ah I see. Thanks for the explanation. I think you understand the problem better than I do, so I think it would be better if you describe the issue to them. If subsequently they need any more data then I can help to provide. |
Closing this as issue is fixed with openssl/openssl@038b0f6 |
Crashes after first few updates are received.
Looking at crash location, I suspect it's an incompatibility with OpenSSL 3.4.0. Will confirm later by recompiling using 3.2.2 which is a known good version.
Information:
The text was updated successfully, but these errors were encountered: