Skip to content
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

HANG attaching to app that continually creates threads #3023

Closed
derekbruening opened this issue May 23, 2018 · 0 comments
Closed

HANG attaching to app that continually creates threads #3023

derekbruening opened this issue May 23, 2018 · 0 comments
Assignees
Labels

Comments

@derekbruening
Copy link
Contributor

A 3rd-party app that continually creates threads (similar to api.detach_spawn and other tests of ours, which are indeed flaky) can hang during static-DR attach: it hits the loop added for #2603 waiting on uninit_thread_count.

One solution is a full #1305 barrier where no threads make progress until all are attached, but I am worried about performance there for apps with many threads. Instead I'm putting in a new-thread barrier where no new threads in taken-over threads are allowed until attach is finished.

@derekbruening derekbruening self-assigned this May 23, 2018
derekbruening added a commit that referenced this issue May 23, 2018
Adds a barrier to taken-over threads creating new threads until attach
is fully finished.  This avoids problems keeping up with an app that
is creating threads while we try to attach.

Fixes #3023
derekbruening added a commit that referenced this issue May 23, 2018
Adds a barrier to taken-over threads creating new threads until attach
is fully finished.  This avoids problems keeping up with an app that
is creating threads while we try to attach.

Fixes #3023
fhahn pushed a commit that referenced this issue Jun 18, 2018
Adds a barrier to taken-over threads creating new threads until attach
is fully finished.  This avoids problems keeping up with an app that
is creating threads while we try to attach.

Fixes #3023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant