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

Add a test case that exercises pybind11_protobuf use in parallel. #16

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Sep 1, 2021

Add a test case that exercises pybind11_protobuf use in parallel.

Tests both with and without the GIL held, and it uncovered an issue in
pybind11 handling of std::string_view when the GIL is not held.

BUG: pybind/pybind11#2765

The bug is that the string_view constructs an object which should be placed on life_support, but due to the underlying mechanism it is not retained in a multi-threaded environment.

@copybara-service copybara-service bot force-pushed the cl/394314149 branch 6 times, most recently from db805b8 to 1b053b3 Compare September 2, 2021 01:27
Tests both with and without the GIL held, and it uncovered an issue in
pybind11 handling of std::string_view when the GIL is not held.

BUG: pybind/pybind11#2765

The bug is that the string_view constructs an object which should be placed on life_support, but due to the underlying mechanism it is not retained in a multi-threaded environment.

PiperOrigin-RevId: 394360131
@copybara-service copybara-service bot merged commit fea3304 into main Sep 2, 2021
@copybara-service copybara-service bot deleted the cl/394314149 branch September 2, 2021 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant