-
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
Default value of installSigPipeHandler must be true #2323
Comments
Hi @majetideepak , Thank you a lot for your query. However, we are going to describe the issue of OpenSSL+Curl sending the signal, and the option to install a default dummy sigpipe handler more explicitly in our documentation. Best regards, |
@SergeyRyabinin thanks for the clarification! |
We have updated our documentation here:
Thanks for bringing the original issue to our attention. Please let us know if this or any other parts of our documentation need more clarification. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
The current default of installSigPipeHandler is set to false (https://github.com/aws/aws-sdk-cpp/blob/main/src/aws-cpp-sdk-core/include/aws/core/Aws.h#L83) and this can lead to hard to track process terminations as described here (https://github.com/aws/aws-sdk-cpp/blob/main/src/aws-cpp-sdk-core/include/aws/core/Aws.h#L96) and observed here (facebookincubator/velox#3800).
There are no log messages or core dumps when this happens and it becomes very hard to track.
Expected Behavior
The default behavior should be to catch the SIGPIPE signal and log a message and prevent the process from termination.
Current Behavior
When using the C++ SDK in a Velox application (Prestissimo), we noticed frequent process terminations without any notification.
We had to run the process in gdb to track the issue which is not always possible.
The backtrace observed is
Reproduction Steps
We need to query data on S3 with Presto with the C++ native worker (Prestissimo).
Steps to install Presto https://github.com/prestodb/presto
Possible Solution
Set the default to true
Additional Information/Context
No response
AWS CPP SDK version used
1.9.379
Compiler and Version used
C++ Compiler Version: 9.3.1
Operating System and version
AmazonLinux2 Linux-5.10.162-141.675.amzn2.x86_64
The text was updated successfully, but these errors were encountered: