You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] StructArray::field() is not thread safe #48134
Describe the bug, including details regarding any error messages, version, and platform.
It is possible for two threads calling StructArray::field() with the same index at the same time to cause a race on the stored entry in boxed_fields_. I.e. if a second thread goes into the path that calls MakeArray() before the first thread stored its own new array, the second thread would also write to the same shared_ptr and invalidate the shared_ptr from the first thread, thereby also invalidating the returned reference.
Activity
[-]StructArray::field() is not thread safe[/-][+][C++] StructArray::field() is not thread safe[/+]GH-48134: [C++] Make StructArray::field() thread-safe (#48128)
pitrou commentedon Nov 20, 2025
Issue resolved by pull request 48128
#48128
apacheGH-48134: [C++] Make StructArray::field() thread-safe (apache#4…