-
Notifications
You must be signed in to change notification settings - Fork 1.1k
CMSG_NXTHDR hits a Bus Error on sparc64-unknown-linux-gnu #1239
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
Labels
E-medium
E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
Milestone
Comments
asomers
added a commit
to asomers/libc
that referenced
this issue
Feb 4, 2019
Skip the CMSG_NXTHDR test on sparc64 linux because it hits a Bus Error. Skip the entire cmsg test program on s390x because it dumps core seemingly before the kernel finishes booting. Issue rust-lang#1239 Issue rust-lang#1240
asomers
added a commit
to asomers/libc
that referenced
this issue
Feb 5, 2019
Since these are defined in C as macros, they must be reimplemented in libc as Rust functions. They're hard to get exactly right, and they vary from platform to platform. The test builds custom C code that uses the real macros, and compares its output to the Rust versions' output for various inputs. Skip the CMSG_NXTHDR test on sparc64 linux because it hits a Bus Error. Issue rust-lang#1239 Skip the entire cmsg test program on s390x because it dumps core seemingly before the kernel finishes booting. Issue rust-lang#1240
gnzlbg
added a commit
to gnzlbg/libc
that referenced
this issue
May 24, 2019
Closes rust-lang#1239. Closes rust-lang#1240.
This reproduces on master, that is, updating the Debian version did not fix this (it did fix the s390x issue). Chances are, there is a bug in our implementation. |
I'm also seeing sometimes a:
seg fault on the arm build jobs in the cmsg tests. Restarting the build job fixes the issue, but it might mean that something fishy is going on there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
E-medium
E-medium Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
PR #1235 adds a new test program to ensure that the cmsg(3) family of functions are correctly implemented on all targets. However, when run in QEMU
CMSG_NXTHDR
hits a Bus Error. This could be an error in libc'sCMSG_NXTHDR
implementation for that platform, or it could be an error in Linux's definition of the macro (doesn't work on unaligned buffers or something like that). Less likely would be an error in QEMU. Lacking access to sparc hardware, I didn't investigate further.https://travis-ci.com/rust-lang/libc/jobs/175199673
The text was updated successfully, but these errors were encountered: