Skip to content

libutil: Assorted collection of fixes, address UBSan failure in AutoDelete#15172

Merged
xokdvium merged 2 commits intomasterfrom
misc-fixes
Feb 8, 2026
Merged

libutil: Assorted collection of fixes, address UBSan failure in AutoDelete#15172
xokdvium merged 2 commits intomasterfrom
misc-fixes

Conversation

@xokdvium
Copy link
Contributor

@xokdvium xokdvium commented Feb 7, 2026

Motivation

See individual commits for details. Fixes https://hydra.nixos.org/build/321098757/nixlog/1.

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@xokdvium xokdvium requested a review from edolstra as a code owner February 7, 2026 12:22
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Of course CI needs to be fixed, but conceptually things look good

Diagnosed by UBSan in hydra [1]:

SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /nix/store/m1k4nxs8r0fl0pjxqp5n37vxgms7gdlb-gcc-14.3.0/include/c++/14.3.0/bits/move.h:234:11 in
+(prefetch.sh:6) path=
++(prefetch.sh:6) onError
++(/build/source/tests/functional/common/functions.sh:241) set +x
prefetch.sh: test failed at:
  main in prefetch.sh:6

[1]: https://hydra.nixos.org/build/321098757/nixlog/1
More correctly describes the error, since we are always reading a relative path.
@xokdvium xokdvium enabled auto-merge February 8, 2026 22:11
@xokdvium xokdvium added this pull request to the merge queue Feb 8, 2026
Merged via the queue into master with commit e4ce788 Feb 8, 2026
18 checks passed
@xokdvium xokdvium deleted the misc-fixes branch February 8, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants