Skip to content

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

Closed

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

Activity

  1. added a commit that references this issue on Jul 5, 2024
  2. added this to the 18.0.0 milestone on Jul 5, 2024
  3. lidavidm commented on Jul 5, 2024

    @lidavidm
    Member

    Issue resolved by pull request 43120
    #43120

  4. added
    Critical FixBugfixes for security vulnerabilities, crashes, or invalid data.
    on Oct 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions