Skip to content
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

gdb: bypass unit test on non-x86 #8672

Closed
wants to merge 1 commit into from

Conversation

avikivity
Copy link
Member

The gdb self-tests fail on aarch64 due to a failure to use thread-local
variables. I filed [1] so it can get fixed.

Meanwhile, disable the test so the build passes. It is sad, but the aarch64
build is not impacted by these failures.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27886

Copy link
Contributor

@nyh nyh left a comment

Choose a reason for hiding this comment

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

Looks good except a typo (?) in the command "uname"?
This is of course good as a short-term band-aid, but I hope we can (and remember to!) remove it soon.

@@ -1,5 +1,12 @@
#! /bin/bash -eu

if [ "$(name -m)" != x86_64 ]; then
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe you meant uname, not name?
I'm not familiar with a tool called "name"...

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed. How did that happen?!

Copy link
Contributor

Choose a reason for hiding this comment

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

Simple - even if you set -e to has bash exit on error, a failure inside a command interpolation $(name -m) does not cause bash to exit. It just interpolates to nothing and prints a "command not found" warning which you probably didn't see, and the equality just never succeeds. I guess you didn't check the patch on x86_64?

The gdb self-tests fail on aarch64 due to a failure to use thread-local
variables. I filed [1] so it can get fixed.

Meanwhile, disable the test so the build passes. It is sad, but the aarch64
build is not impacted by these failures.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27886
@avikivity
Copy link
Member Author

Looks good except a typo (?) in the command "uname"?
This is of course good as a short-term band-aid, but I hope we can (and remember to!) remove it soon.

Unfortunately, it's up to the gdb maintainers to fix thread-local storage on aarch64.

nyh pushed a commit that referenced this pull request May 20, 2021
The gdb self-tests fail on aarch64 due to a failure to use thread-local
variables. I filed [1] so it can get fixed.

Meanwhile, disable the test so the build passes. It is sad, but the aarch64
build is not impacted by these failures.

[1] https://sourceware.org/bugzilla/show_bug.cgi?id=27886

Closes #8672
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.

None yet

3 participants