Skip to content

[C++][ArrowFlight] Crash due to UCS thread mode  #43130

@amirgon

Description

@amirgon

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

ArrowFlight UCX transport sets UCS_THREAD_MODE_SERIALIZED mode:

worker_params.thread_mode = UCS_THREAD_MODE_SERIALIZED;

This can cause UCX to crash (mpool corruption).
This happens when buffer is deallocated on a different thread. In such case two threads access UCX memory pool simultaneously.
To fix that, need to change thread mode to UCS_THREAD_MODE_MULTI.

See discussion on UCX forum: openucx/ucx#9987

Opened a PR: #43120

Component(s)

C++, FlightRPC

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions