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

CppUnit tests crash with link-time optimizations enabled #2051

Closed
amadio opened this issue Jul 4, 2023 · 1 comment
Closed

CppUnit tests crash with link-time optimizations enabled #2051

amadio opened this issue Jul 4, 2023 · 1 comment
Assignees
Milestone

Comments

@amadio
Copy link
Member

amadio commented Jul 4, 2023

To reproduce, please run

CXXFLAGS='-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing' ctest -VV -S test.cmake

These are the tests that currently fail:


The following tests FAILED:
	  6 - XrdCl::Poller (SEGFAULT)
	  7 - XrdCl::Socket (SEGFAULT)
	  8 - XrdCl::Utils (SEGFAULT)
	  9 - XrdEc::AlignedWriteTest (SEGFAULT)
	 10 - XrdEc::SmallWriteTest (SEGFAULT)
	 11 - XrdEc::BigWriteTest (SEGFAULT)
	 12 - XrdEc::VectorReadTest (SEGFAULT)
	 13 - XrdEc::IllegalVectorReadTest (SEGFAULT)
	 14 - XrdEc::AlignedWrite1MissingTest (SEGFAULT)
	 15 - XrdEc::AlignedWrite2MissingTest (SEGFAULT)
	 16 - XrdEc::AlignedWriteTestIsalCrcNoMt (SEGFAULT)
	 17 - XrdEc::SmallWriteTestIsalCrcNoMt (SEGFAULT)
	 18 - XrdEc::BigWriteTestIsalCrcNoMt (SEGFAULT)
	 19 - XrdEc::AlignedWrite1MissingTestIsalCrcNoMt (SEGFAULT)
	 20 - XrdEc::AlignedWrite2MissingTestIsalCrcNoMt (SEGFAULT)

I believe migrating them to GoogleTest will fix these problems. See also: https://bugs.gentoo.org/877535.

@amadio amadio self-assigned this Jul 4, 2023
@amadio amadio added this to the 5.7.0 milestone Sep 27, 2023
amadio added a commit to amadio/xrootd that referenced this issue Feb 9, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 12, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 14, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 14, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 14, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 21, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 23, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 23, 2024
amadio added a commit to amadio/xrootd that referenced this issue Feb 26, 2024
amadio added a commit to amadio/xrootd that referenced this issue Mar 6, 2024
amadio added a commit to amadio/xrootd that referenced this issue Mar 8, 2024
amadio added a commit to amadio/xrootd that referenced this issue Mar 8, 2024
@amadio
Copy link
Member Author

amadio commented Mar 9, 2024

Closing this, as the fixes are merged into devel already.

@amadio amadio closed this as completed Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants