-
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
Destructor S3CrtClient::~S3CrtClient() hangs, as of release 1.11.195 #2969
Comments
Also hangs in release 1.11.328 . |
Looks like function |
Problem seems to be that if the caller creates and destroys an
-- and passes that semaphore to the wrapped Crt Client:
Then, inside the destructor:
However, the call to I wonder if there's an implicit assumption, at the Crt layer, that there is always only 1 S3 (crt) client alive, at a time? What's supposed to happen, if the caller does:
? |
My hanging/failing test is a Google-test "crash test," and the hanging process is the process I wonder if some "Crt" state that used to be tied to a given |
A quick note is that forking can lead to somewhat unexpected results currently when used in conjunction with CRT. |
Confirmed that the proposed workaround, to call ShutdownAPI before forking, works. Thanks! |
@hunjmes Did you have any other questions about this sdk? |
Describe the bug
Symptoms are superficially similar to #2769 , except that issue involved calling
Aws::ShutdownAPI()
, while anS3CrtClient
was still alive.This bug involves the
S3CrtClient::~S3CrtClient()
destructor, itself. We see a hang/deadlock inside:Expected Behavior
The
S3CrtClient
's destructor should not hang. (This was the behavior, as of release 1.11.175.)Current Behavior
The
S3CrtClient
's destructor hangs, as of release 1.11.195.Reproduction Steps
We don't have a formal repro yet. I am trying to nail down the root cause of the hang -- it might be unexpected/incorrect usage of the AWS API, by our client application -- concurrently with filing this bug.
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
1.11.195
Compiler and Version used
gcc 11
Operating System and version
Linux 5.10.216-182.855.amzn2int.x86_64
The text was updated successfully, but these errors were encountered: