tobim opened a new issue, #48134:
URL: https://github.com/apache/arrow/issues/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` `nd invalidate the `shared_ptr` from the first thread, 
thereby also invalidating the returned reference.
   
   ### Component(s)
   
   C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to