Bug 1999657
Summary: | Segfault when -flto is used to compile Catch framework tests on RHEL 8.4 | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Jiri Danek <jdanek> | ||||
Component: | binutils | Assignee: | Nick Clifton <nickc> | ||||
binutils sub component: | system-version | QA Contact: | qe-baseos-tools-bugs | ||||
Status: | CLOSED CURRENTRELEASE | Docs Contact: | |||||
Severity: | unspecified | ||||||
Priority: | unspecified | CC: | ahajkova, fweimer, jakub, mpolacek, mprchlik, ohudlick | ||||
Version: | 8.4 | Keywords: | Bugfix, Triaged | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | No Doc Update | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2021-09-03 10:32:12 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Jiri Danek
2021-08-31 13:59:39 UTC
Reproduced with gcc-8.4.1-1.el8.x86_64. This is actually a regression between binutils-2.30-80.el8.x86_64 (OK) and binutils-2.30-82.el8.x86_64 (crash). # g++ test_main.ii -flto -fno-fat-lto-objects -o test -fuse-ld=bfd; ./test Segmentation fault (core dumped) # g++ test_main.ii -flto -fno-fat-lto-objects -o test -fuse-ld=gold; ./test =============================================================================== No tests ran I think I'll go ahead and try backporting https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=041d1c2d4f03a134cb7574e4d62d2ce4418503ff to binutils -- I think that may fix this problem. This actually already works with the latest binutils, I think it was fixed in * Thu Mar 18 2021 Nick Clifton <nickc> - 2.30-94 - Fix LTO and weak symbols again. (#1930988) (In reply to Marek Polacek from comment #5) > This actually already works with the latest binutils, I think it was fixed in > > * Thu Mar 18 2021 Nick Clifton <nickc> - 2.30-94 > - Fix LTO and weak symbols again. (#1930988) Thanks for tracking this down Marek. OK, so the patch for 2.30-94 went into RHEL-8.5 binutils, but it did not make it into RHEL-8.4 binutils. Jiri - is this problem important enough to warrant a z-stream update for RHEL-8.4 ? We disabled LTO in our latest published release, to workaround the bug. IMO we are good waiting for 8.5 to go out, and then removing the workaround. If nobody else is hitting this linking problem, then I think it does not make sense to release a fix for RHEL 8.4. (I tried to update the ticket with the above by replying to change notification e-mail. Evidently it did not get added as comment.) Ok then, I will CLOSE this BZ. |