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

All XrdEc tests fail on Linux SPARC systems due to alignment issues (bus error) #2131

Closed
glaubitz opened this issue Nov 22, 2023 · 4 comments · Fixed by #2144
Closed

All XrdEc tests fail on Linux SPARC systems due to alignment issues (bus error) #2131

glaubitz opened this issue Nov 22, 2023 · 4 comments · Fixed by #2144
Assignees
Milestone

Comments

@glaubitz
Copy link

Running the testsuite on Linux SPARC fails with the following tests failing:

The following tests FAILED:
         20 - XrdEc::AlignedWriteTest (Bus error)
         21 - XrdEc::SmallWriteTest (Bus error)
         22 - XrdEc::BigWriteTest (Bus error)
         23 - XrdEc::VectorReadTest (Bus error)
         24 - XrdEc::IllegalVectorReadTest (Bus error)
         25 - XrdEc::AlignedWrite1MissingTest (Bus error)
         26 - XrdEc::AlignedWrite2MissingTest (Bus error)
         27 - XrdEc::AlignedWriteTestIsalCrcNoMt (Bus error)
         28 - XrdEc::SmallWriteTestIsalCrcNoMt (Bus error)
         29 - XrdEc::BigWriteTestIsalCrcNoMt (Bus error)
         30 - XrdEc::AlignedWrite1MissingTestIsalCrcNoMt (Bus error)
         31 - XrdEc::AlignedWrite2MissingTestIsalCrcNoMt (Bus error)

Obtaining a backtrace with gdb is not possible as the stack gets corrupted.

SSH access to SPARC machines for testing can be obtained through the GCC Compile Farm: https://gcc.gnu.org/wiki/CompileFarm

@amadio amadio self-assigned this Nov 24, 2023
@amadio
Copy link
Member

amadio commented Nov 28, 2023

Hi, are you using XRootD on a SPARC machine? We unfortunately do not have enough resources to support these less used platforms, but we will gladly review and merge patches fixing these issues if they come in a pull request.

@glaubitz
Copy link
Author

glaubitz commented Nov 28, 2023

I understand. However, incorrect alignment isn't a SPARC-specific issue, it just results in a crash on this target. On other platforms, the performance will be reduced because fixing incorrect alignment costs more CPU cycles.

If you could let me know how to obtain a backtrace, I will be happy to provide a fix.

@amadio amadio linked a pull request Dec 5, 2023 that will close this issue
@amadio amadio added this to the 5.6.4 milestone Dec 5, 2023
@amadio
Copy link
Member

amadio commented Dec 5, 2023

Fixed by #2144.

@amadio
Copy link
Member

amadio commented Dec 11, 2023

@glaubitz Thanks for the tip about the GCC compile farm. In the end, however, I could not install xrootd dependencies there to test, so what I did was to add a QEMU-based workflow that only runs on demand to test alternative architectures. You can see an example run here (and can run on your fork if you have one as well): https://github.com/xrootd/xrootd/actions/runs/7171402996/job/19526316751

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants