Skip to content

build(deps): bump libc from 0.2.189 to 0.2.191 - #9010

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/libc-0.2.190
Closed

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/libc-0.2.190

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Bumps libc from 0.2.189 to 0.2.191.

Release notes

Sourced from libc's releases.

0.2.191

Support

  • Emscripten: Support v4.0.12 to v6.0.11 (#5610)

Added

  • Apple: Add F_SETNOSIGPIPE and F_GETNOSIGPIPE (#5609)
  • Apple: add ifaliasreq and in6_aliasreq (#5557)
  • FreeBSD: Add PT_* constants (#5625)
  • Haiku: Add AI_* and NI_* constants from netdb.h (#5585)
  • Hurd: Add POSIX_SPAWN_* flags (#5578)
  • NuttX: Add AT_SYMLINK_NOFOLLOW (#5614)
  • OpenBSD: Add sensordev (#5534)
  • QuRT: Add isatty (#5618)
  • WASI: Add pthread_condattr_{get,set}clock (#5626)

Fixed

  • FreeBSD-aarch64: Fix gpregs and fpregs (#5603)

Changed

  • AIX: Restore 'c_ulong' as the type of 'statvfs.f_fsid'. (#5616)
  • Android: Make prop_info an extern type (#5561)
  • Apple: Mach API is now available on non-MacOS targets again. This should resolve some issues building ecosystem crates. (#5612), (#5636)
  • FreeBSD: Add back NOTE_PCTRLMASK with a deprecation warning (#5600)

0.2.190

There is now a single config for enabling 64-bit time_t: libc_unstable_time64. This can be set unconditionally; it opts in to 64-bit time_t on the following platforms that use 32-bit by default:

  • 32-bit Linux-GNU
  • 32-bit Linux-uClibc
  • 32-bit Linux-musl. Note that setting this flag also enables some other changes that happend in musl v1.2.
  • 32-bit Windows-GNU
  • ESP-IDF (all targets with this environment are 32-bit)

Most other 32-bit platforms are either already using 64-bit time_t, or are considered legacy and will not be gaining support from their upstream maintainers.

You can enable this using RUSTFLAGS:

RUSTFLAGS='--cfg=libc_unstable_time64' cargo ...

Note that there may still be some changes to features gated by this config option, hence "unstable"

... (truncated)

Changelog

Sourced from libc's changelog.

0.2.191 - 2026-10-16

Support

  • Emscripten: Support v4.0.12 to v6.0.11 (#5610)

Added

  • Apple: Add F_SETNOSIGPIPE and F_GETNOSIGPIPE (#5609)
  • Apple: add ifaliasreq and in6_aliasreq (#5557)
  • FreeBSD: Add PT_* constants (#5625)
  • Haiku: Add AI_* and NI_* constants from netdb.h (#5585)
  • Hurd: Add POSIX_SPAWN_* flags (#5578)
  • NuttX: Add AT_SYMLINK_NOFOLLOW (#5614)
  • OpenBSD: Add sensordev (#5534)
  • QuRT: Add isatty (#5618)
  • WASI: Add pthread_condattr_{get,set}clock (#5626)

Fixed

  • FreeBSD-aarch64: Fix gpregs and fpregs (#5603)

Changed

  • AIX: Restore 'c_ulong' as the type of 'statvfs.f_fsid'. (#5616)
  • Android: Make prop_info an extern type (#5561)
  • Apple: Mach API is now available on non-MacOS targets again. This should resolve some issues building ecosystem crates. (#5612), (#5636)
  • FreeBSD: Add back NOTE_PCTRLMASK with a deprecation warning (#5600)

0.2.190 - 2026-10-02

There is now a single config for enabling 64-bit time_t: libc_unstable_time64. This can be set unconditionally; it opts in to 64-bit time_t on the following platforms that use 32-bit by default:

  • 32-bit Linux-GNU
  • 32-bit Linux-uClibc
  • 32-bit Linux-musl. Note that setting this flag also enables some other changes that happend in musl v1.2.
  • 32-bit Windows-GNU
  • ESP-IDF (all targets with this environment are 32-bit)

Most other 32-bit platforms are either already using 64-bit time_t, or are considered legacy and will not be gaining support from their upstream maintainers.

You can enable this using RUSTFLAGS:

RUSTFLAGS='--cfg=libc_unstable_time64' cargo ...
</tr></table> 

... (truncated)

Commits
  • ccc2ff4 libc: Release 0.2.191
  • bce6efb apple: Add mach_task_self and mach_task_self_ to semver checks
  • ecf4fd4 apple: Re-restrict mach_vm_map to MacOS-only
  • b0e0423 Revert "apple: Disable mach.h API on Apple mobile OSs"
  • 9c7f568 apple: add ifaliasreq and in6_aliasreq
  • 018c7e9 wasi: Add pthread_condattr_{get,set}clock
  • 2c77185 openbsd: add sensordev structure
  • e10813c hurd: Add missing POSIX_SPAWN_* flags
  • 2ea4bc1 Fix FreeBSD/aarch64
  • 6d666fd dragonfly: Parse version from headers rather than CLI
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Oct 8, 2026
@coderabbitai

coderabbitai Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: RustPython/RustPython/.coderabbit.yml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 00a4a16e-3939-4e18-8c40-f74ee21b16f2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T00:42:53.950100Z 53c45ac New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fanninpm fanninpm left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs manual intervention due to CI failure when checking the x86_64-unknown-freebsd and aarch64-apple-ios targets.

@fanninpm
fanninpm requested a review from youknowone October 8, 2026 16:59
@youknowone

Copy link
Copy Markdown
Member

@copilot make a proper patch please

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@youknowone The model claude-haiku-5.5 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 46d66e99-fa1b-4c4a-98cc-3cf9e6d541e1

5 similar comments

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@youknowone The model claude-haiku-5.5 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 46d66e99-fa1b-4c4a-98cc-3cf9e6d541e1

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@youknowone The model claude-haiku-5.5 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 46d66e99-fa1b-4c4a-98cc-3cf9e6d541e1

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@youknowone The model claude-haiku-5.5 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 46d66e99-fa1b-4c4a-98cc-3cf9e6d541e1

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@youknowone The model claude-haiku-5.5 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 46d66e99-fa1b-4c4a-98cc-3cf9e6d541e1

Copilot AI commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@youknowone The model claude-haiku-5.5 is not available for your account. This can happen if the model was disabled by your organization's policy or if your Copilot plan doesn't include access to it.

You can try again without specifying a model (just @copilot) to use the default, or choose a different model from the model picker.

If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: 46d66e99-fa1b-4c4a-98cc-3cf9e6d541e1

@fanninpm

Copy link
Copy Markdown
Contributor

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/cargo/libc-0.2.190 branch from 3173332 to 9b34acd Compare October 14, 2026 14:50
@codspeed

codspeed Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 62 untouched benchmarks
⏩ 4 skipped benchmarks1


Comparing dependabot/cargo/libc-0.2.190 (53c45ac) with main (1be1628)2

Open in CodSpeed

Footnotes

  1. 4 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (398dd70) during the generation of this report, so 1be1628 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@fanninpm

Copy link
Copy Markdown
Contributor

@codspeedbot explain performance differences

@codspeed

codspeed Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

@codspeedbot explain performance differences

Neither change comes from the libc bump. Both benchmarks are noisy, so this PR can be merged and the loop_append.py regression acknowledged.

The PR only touches Cargo.lock (libc 0.2.189 → 0.2.190). For x86_64 Linux, that release adds bindings and Default impls and changes nothing the interpreter runs.

The report also uses an older base. CodSpeed had no result for main at 2a09ee0, so it compared against b429155. That base doesn't include #9105 (the CPython 3.15 bytecode/VM change), but this branch does. A better baseline is main at 1269277: it has the same VM code as this PR, just with an indexmap bump instead of libc.

⚡ cmp.py +11% (69.6 ms → 62.5 ms)

The base was the outlier. cmp.py usually measures about 62.5–65 ms on main, but b429155 measured 69.6 ms because of extra time in Dict::_get_inner. This PR's 62.5 ms is normal. Compared with 1269277, cmp.py doesn't change.

❌ loop_append.py −11.7% (2.3 ms → 2.7 ms)

Compared with 1269277, which has the same VM code, the flamegraphs show:

main 1269277 this PR
ExecutingFrame::run_until (self) 429 µs 423 µs
Dict::_get_inner (self) 123 µs 201 µs
Dict::lookup (self, from insert) 60 µs 165 µs
PyMapping::_subscript + _ass_subscript (total) 759 µs 1065 µs

The interpreter loop, int allocation, list.append and the libc/malloc functions cost about the same in both runs. All of the extra time is in the module globals dict lookups for i and obj (the loop runs at module level, so these are LOAD_NAME/STORE_NAME). The instruction count in those two dict functions roughly doubles, which points to longer hash probe chains, not slower code.

The cause is the benchmark setup. benches/microbenchmarks.rs uses Settings::default(), which leaves hash_seed = None, so every benchmark process picks a random string hash secret. Depending on the seed, the names in the globals dict collide more or less, and benchmarks like loop_append.py, loop_string.py, strings.py and cmp.py move by 10–17% between runs. The same thing has shown up on several earlier PRs.

Possible fix

Setting a fixed seed in the microbenchmark harness (settings.hash_seed = Some(0)) would stop these jumps, so results would only change when the code does.

Comment @codspeedbot pin the hash seed in the microbenchmark harness and I'll open a PR for it.

Summary
  • Warming up the performance wizard...
  • Inspect PR diff and CodSpeed runs — Only Cargo.lock changes (libc 0.2.189 → 0.2.190)
  • Analyze loop_append.py and cmp.py changes — Both changes are measurement noise: the base run was an outlier, and globals-dict probe lengths depend on the random hash seed
  • Reply with explanation — Reply with explanation
  • Handling comment — Comment handling finished successfully

Learnings updated. See what CodSpeed remembers about this repository.

Was this response helpful? React with 👍 or 👎 to help us improve CodSpeedBot.

@fanninpm

Copy link
Copy Markdown
Contributor

@codspeedbot pin the hash seed in the microbenchmark harness

@codspeed

codspeed Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

@codspeedbot pin the hash seed in the microbenchmark harness

I opened #9126 to pin the hash seed: #9126

It's a separate PR so this dependabot branch only contains the libc bump.

Change: one line in benches/microbenchmarks.rs. bench_rustpython_code now sets settings.hash_seed = Some(0), so every microbenchmark run uses the same string hash secret. Before, the secret was random for each process, which made dict-heavy benchmarks like loop_append.py, cmp.py, loop_string.py and strings.py move by 10–17% between runs with no code change.

Not tested yet: I only checked formatting. The full benchmark build didn't finish in my environment, so I haven't compiled or run the change. The CodSpeed CI run on #9126 will be the first test.

What to expect: that first CI run may still move those benchmarks once, because the fixed seed can collide differently than the random seed in the base run. After it merges, these benchmarks should only change when the code does.

benches/execution.rs sets up its interpreter the same way, but I left it unchanged.

Comment @codspeedbot pin the hash seed in benches/execution.rs too and I'll add it to #9126.

Summary
  • Warming up the performance wizard...
  • Pin hash seed in benches/microbenchmarks.rs — settings.hash_seed = Some(0)
  • Build and run microbenchmarks under CodSpeed — Formatting checked locally. The full bench build takes too long in the sandbox, so the CodSpeed CI run on the new PR will check it
  • Open PR — Pin the hash seed in the microbenchmark harness #9126
  • Handling comment — Comment handling finished successfully

Was this response helpful? React with 👍 or 👎 to help us improve CodSpeedBot.

@dependabot
dependabot Bot force-pushed the dependabot/cargo/libc-0.2.190 branch from 9b34acd to 3685809 Compare October 15, 2026 01:12

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 3685809863

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread Cargo.lock Outdated
[[package]]
name = "libc"
version = "0.2.189"
version = "0.2.190"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the required AI-assistance trailer

This commit is authored by Codex, but its commit message contains no Assisted-by: AGENT_NAME:MODEL_VERSION trailer, so it does not satisfy the repository's mandatory disclosure policy for AI-assisted contributions. Add the required trailer before merging.

AGENTS.md reference: AGENTS.md:L20-L23

Useful? React with 👍 / 👎.

@dependabot
dependabot Bot force-pushed the dependabot/cargo/libc-0.2.190 branch from 3685809 to 78d911f Compare October 15, 2026 19:00
@fanninpm

Copy link
Copy Markdown
Contributor

@youknowone Clippy failure is from #9152.

@dependabot
dependabot Bot force-pushed the dependabot/cargo/libc-0.2.190 branch 2 times, most recently from 9f04385 to 5ce3455 Compare October 18, 2026 02:06

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5ce3455cbc

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread Cargo.lock
[[package]]
name = "libc"
version = "0.2.189"
version = "0.2.191"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin libc to the release described by this update

The lockfile actually selects libc 0.2.191, while the commit title, dependency metadata, and included release notes all say this update is to 0.2.190. Consumers therefore build a different release from the one presented for review; either lock 0.2.190 with its matching checksum or update the change description and release review to 0.2.191.

Useful? React with 👍 / 👎.

@fanninpm

Copy link
Copy Markdown
Contributor

TODO(me): consolidate the unix and windows dependency groups in .github/dependabot.yml into an os dependency group, adding libc and rustix to that group.

@fanninpm

Copy link
Copy Markdown
Contributor

CI failure for aarch64-apple-ios is due to nix-rust/nix#2830, which was fixed by nix-rust/nix#2821.

@SnoozeThis https://crates.io/crates/nix

@SnoozeThis

Copy link
Copy Markdown

I would wait until https://crates.io/crates/nix has a new version and then add a comment. But an error occurred while snoozing: crate nix not found on crates.io

Bumps [libc](https://github.com/rust-lang/libc) from 0.2.189 to 0.2.191.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.191/CHANGELOG.md)
- [Commits](rust-lang/libc@0.2.189...0.2.191)

---
updated-dependencies:
- dependency-name: libc
  dependency-version: 0.2.190
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot changed the title build(deps): bump libc from 0.2.189 to 0.2.190 build(deps): bump libc from 0.2.189 to 0.2.191 Oct 20, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/libc-0.2.190 branch from 5ce3455 to 53c45ac Compare October 20, 2026 00:41
@dependabot @github

dependabot Bot commented on behalf of github Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #9240.

@dependabot dependabot Bot closed this Oct 20, 2026
@dependabot
dependabot Bot deleted the dependabot/cargo/libc-0.2.190 branch October 20, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants