Skip to content

Fix CI on FreeBSD 13 i686 #4641

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

neuschaefer
Copy link
Contributor

@neuschaefer neuschaefer commented Aug 12, 2025

Description

Investigating why there's a test failure on FreeBSD 13 i686

  • FreeBSD 13.5 doesn't resolve the issue
  • FreeBSD 13.3 reportedly seems more stable, but isn't available anymore (image download fails with 404)

Sources

TODO

Checklist

  • Relevant tests in libc-test/semver have been updated
  • No placeholder or unstable values like *LAST or *MAX are
    included (see #3131)
  • Tested locally (cd libc-test && cargo test --target mytarget);
    especially relevant for platforms that may not be checked in CI

@rustbot rustbot added the A-CI Area: CI-related items label Aug 12, 2025
@neuschaefer neuschaefer force-pushed the freebsd13 branch 2 times, most recently from 384c8b8 to 98c3e07 Compare August 12, 2025 08:04
@rustbot rustbot added the ctest Issues relating to the ctest crate label Aug 12, 2025
@neuschaefer neuschaefer force-pushed the freebsd13 branch 7 times, most recently from bf64bce to 8a47642 Compare August 12, 2025 09:27
@tgross35
Copy link
Contributor

I don't have a link handy but IIRC there were some issues segfaults on FreeBSD13 (maybe in the Cargo repo?). @asomers would know more

@asomers
Copy link
Contributor

asomers commented Aug 13, 2025

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285873 is the bug for the cargo segfaults on FreeBSD 13. It's still unsolved.

@tgross35
Copy link
Contributor

Rebase after #4648 once that lands, since it changes the ctest implementation, might happen to fix things (though unlikely...)

@tgross35
Copy link
Contributor

tgross35 commented Aug 13, 2025

...oh, or it may make things worse. Does the toolchain not support that way of getting the size of a field without reading uninit data?

cargo:warning=/tmp/cirrus-ci-build/target/i686-unknown-freebsd/debug/build/libc-test-656b2cab6c3a5f55/out/ctest_output.c:37608:20: error: variable has incomplete type 'struct reg32'
  cargo:warning= 37608 |     return sizeof(((struct reg32){}).r_edi);

A bugreport seems to indicate that segfaults in rustc are less likely on
FreeBSD 13.3.

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285873
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CI Area: CI-related items ctest Issues relating to the ctest crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants