Skip to content

[C++] Possible data race in accessing scalars #40069

@mpimenov

Description

@mpimenov

Describe the bug, including details regarding any error messages, version, and platform.

I use an arrow::compute::literal in my parquet reading pipeline and get ThreadSanitizer reports about this code:

auto* offsets = reinterpret_cast<offset_type*>(scratch_space);
offsets[0] = 0;
offsets[1] = static_cast<offset_type>(value_size);

If I am reading it right, this results in issuing write instructions during what would seem to be read-only accesses, and this indeed looks racy.

Component(s)

C++, Parquet

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions