Linux siginfo_t is not Send/Sync since 0.2.190

Open
#5,624 7 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
backend

Research direction

The report identifies libc::siginfo_t on x86_64-unknown-linux-gnu and links PR #5345 plus the change in version 0.2.190. Read that PR and compare the Send and Sync implementations for siginfo_t between 0.2.189 and 0.2.190. Determine whether the trait change was intentional; done means the behavior is explained and, if unintended, the appropriate regression is resolved.

Written by the indexing model from the issue text.

Description

Since c55443670d285a5168c156db982a55e4cfe5be07 / https://github.com/rust-lang/libc/pull/5345, x86_64-unknown-linux-gnu's libc::siginfo_t that used to implement Send and Sync in 0.2.189 no longer does. It isn't clear from the PR or commit descriptions that this was intentional.

fn require_send_sync<T: Send + Sync>() {}

fn main() {
    require_send_sync::<libc::siginfo_t>();
}

@dybucc @tgross35

Dominant language
Rust
Stars
2.6k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
27

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/libc

All issues in rust-lang/libc

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.