-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
s2n_init() failure on Ubuntu 22.04 #2667
Comments
Hello @disa6302 , Thank you very much for your submission. I am assuming that you are installing libssl-dev and all header files (-dev packages) for libcurl, libopenssl, libuuid, zlib following the developer guide documentation for installing the packages on Debian/Ubuntu-based systems:
Could you please share the Cmake command you are running? I also wanted to recommend to use the latest version of the SDK as best practice (1.10.9 is quite old and there has been plenty of changes implemented in the SDK since). There was also a similar issue submitted a while back : #2359 My first assumption here is that there must be an issue in your environment set up. Best, Yasmine |
Hello @yasminetalby , Thank you for your response. I have installed the packages already. The same version used to work on Ubunut 18.04, but started failing when I moved to 22.04.
I tried moving to the latest, but I hit a segfault. Maybe something to do the AWSInitApi and moving to newer version will be some effort. So using the existing version. I also tried setting USE_OPENSSL to OFF and it ended up building AWS-LC, however, when I run the application I hit a coredump in free(), which does not make sense since I do not explictly invoke it at the start of the application. Looking at the stack trace, it seemed to be happening in some curl calls. A little more context: |
Hello @disa6302 , Thank you very much for providing more context. Could you try passing -DCMAKE_PREFIX_PATH={path to openssl where lib and include dirs are found} and let me know if this resolves your issue? Best regards, Yasmine |
That does not seem to fix it. I am installing in ${CMAKE_CURRENT_SOURCE_DIR} where I see the bin, lib and include directories. I use |
It seems to work. I had to point to the lib directory specifically. Thank you for your quick responses! |
|
Describe the bug
I am using this SDK as a dependency in another project on Ubuntu 22.04 EC2 instance. When I build with cmake, it builds fine, but when I run the application, I see this:
I install
libssl-dev
using apt-get. This is my cmake file:Expected Behavior
The app should not segfault.
Current Behavior
When running the app, it segfaults.
Reproduction Steps
https://github.com/aws-samples/amazon-kinesis-video-streams-demos/tree/master/canary/producer-cpp.
I do not have a small reproducible sample, but this is the repo. This seems to be an issue which should be common, but cannot find the required details. Let me know if you still need a small sample and I can create one.
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.10.9
Compiler and Version used
11.4.0
Operating System and version
Ubuntu 22.04 EC2
The text was updated successfully, but these errors were encountered: