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

Remove call from queued picks when failing it due to channel destruction #20128

Merged

Conversation

apolcyn
Copy link
Contributor

@apolcyn apolcyn commented Aug 29, 2019

This fixes the repro of a SEGV seen in an internal stress test

For background, the test involves a few hundred grpclb/DNS channels. Here's the bottom of the log of a crash: https://gist.github.com/apolcyn/c30716d9b03d5414be0b463f3d66cf1c. gdb showed a nullptr access on pending_batches_[0].batch on this line, with SetPickerInDataPlane in the stack trace. It also showed that this happened after the call's channel's disconnect_error_ had already been set.

@apolcyn apolcyn added lang/core release notes: no Indicates if PR should not be in release notes labels Aug 29, 2019
@linux-foundation-easycla
Copy link

CLA Check
The committers are authorized under a signed CLA.

@apolcyn apolcyn added release notes: yes Indicates if PR needs to be in release notes and removed release notes: no Indicates if PR should not be in release notes labels Aug 29, 2019
Copy link
Member

@markdroth markdroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this!

@apolcyn
Copy link
Contributor Author

apolcyn commented Aug 30, 2019

Flake seen in python_macos_opt_native.py37_native.test.unit._server_ssl_cert_config_test.ServerSSLCertReloadTestWithoutClientAuth, in https://source.cloud.google.com/results/invocations/b0e38382-87f3-4671-ba1f-bc469e356288/targets/github%2Fgrpc%2Fpython_macos_opt_native/tests

@apolcyn
Copy link
Contributor Author

apolcyn commented Aug 31, 2019

re-kicking kokoro

@apolcyn
Copy link
Contributor Author

apolcyn commented Aug 31, 2019

python windows: #19170
python macos: #17138
bazel RBE TSAN C/C++: #19726

@apolcyn apolcyn merged commit f78966e into grpc:master Aug 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Nov 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang/core release notes: yes Indicates if PR needs to be in release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants