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

thread_stress_test flaky (Linux dbg and opt) #13330

Closed
yang-g opened this issue Nov 9, 2017 · 10 comments
Closed

thread_stress_test flaky (Linux dbg and opt) #13330

yang-g opened this issue Nov 9, 2017 · 10 comments
Assignees
Labels
disposition/BUILDNURSE For all buildnurse related build/test failures and flakes lang/c++ platform/Linux

Comments

@yang-g
Copy link
Member

yang-g commented Nov 9, 2017

[ RUN      ] AsyncClientEnd2endTest/0.ThreadStress
D1108 17:22:51.526708000 140735181389824 ev_posix.cc:135]              Using polling engine: poll
D1108 17:22:51.526754000 140735181389824 dns_resolver.cc:307]          Using native dns resolver
I1108 17:22:51.529232000 140735181389824 server_builder.cc:269]        Synchronous server. Num CQs: 8, Min pollers: 1, Max Pollers: 2, CQ timeout (msec): 10000
libc++abi.dylib: libc++abi.dylib: libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailableterminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailableterminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailable


libc++abi.dylib: libc++abi.dylib: libc++abi.dylib: terminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailableterminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailableterminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailable
libc++abi.dylib: libc++abi.dylib: 

terminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailableterminating with uncaught exception of type std::__1::system_error: thread constructor failed: Resource temporarily unavailable
@dgquintas
Copy link
Contributor

@dgquintas
Copy link
Contributor

@jtattermusch
Copy link
Contributor

Still happening for bins/opt/thread_stress_test --gtest_filter=AsyncClientEnd2endTest/0.ThreadStress GRPC_POLL_STRATEGY=poll on Mac.

@jtattermusch jtattermusch changed the title macos C++ test fails because of running out of threads MacOS thread_stress_test consistently fails (because of running out of threads?) Nov 13, 2017
@jtattermusch
Copy link
Contributor

Bumping to P1. @vjpai do you have cycles to actively investigate this or should be reassign?

@vjpai
Copy link
Member

vjpai commented Nov 14, 2017

Since we are allergic to exceptions, I propose that we stop using std::thread in the C++ library. We should be using gpr_thread so that we can at least clean it up and return resources_exhausted. I'll write a PR to do this.

@vjpai
Copy link
Member

vjpai commented Nov 28, 2017

Still working on the sync server refactor that should help here

@jtattermusch
Copy link
Contributor

This also seems to be flaky with tsan and asan, as well as on linux dbg and opt.

@jtattermusch jtattermusch changed the title MacOS thread_stress_test consistently fails (because of running out of threads?) thread_stress_test flaky (Linux dbg and opt) Dec 14, 2017
@jtattermusch
Copy link
Contributor

@jtattermusch
Copy link
Contributor

Duplicate of #13148.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
disposition/BUILDNURSE For all buildnurse related build/test failures and flakes lang/c++ platform/Linux
Projects
None yet
Development

No branches or pull requests

5 participants