Bug 1582515
Summary: | asan test suite fails | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Jason Vas Dias <jason.vas.dias> |
Component: | gcc | Assignee: | Marek Polacek <mpolacek> |
gcc sub component: | gcc-toolset-11 | QA Contact: | Václav Kadlčík <vkadlcik> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | unspecified | CC: | ahajkova, fweimer, jakub, ohudlick, sipoyare, vkadlcik |
Version: | 8.2 | Keywords: | Bugfix, Triaged |
Target Milestone: | rc | ||
Target Release: | 8.2 | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | gcc-toolset-11-gcc-11.1.1-2.el8 | Doc Type: | No Doc Update |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-11-09 18:20:45 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: |
Description
Jason Vas Dias
2018-05-25 13:07:38 UTC
CLUE: when I run in the $OBJDIR/gcc/testsuite directory: $ make check-g++ RUNTESTFLAGS='asan.exp' it succeeds! Only when run under rpmbuild, it fails. That doesn't fail during rpmbuild either. What fails is: make check-g++ RUNTESTFLAGS='--target_board=unix/-fstack-protector-strong asan.exp' If I remember correctly there are cases where stack clash protection interferes with asan tests. Arguably either stack clash protection should be turned off for those tests or the tests should be skipped with stack clash protection is enabled. Seems to work on trunk, gcc-10, and gcc-9: $ make check-g++ RUNTESTFLAGS='--target_board=unix/-fstack-protector-strong asan.exp' Making a new config file... [...] Running /opt/notnfs/polacek/gcc/gcc/testsuite/g++.dg/asan/asan.exp ... === g++ Summary === # of expected passes 3168 # of unsupported tests 168 /opt/notnfs/polacek/trunk/gcc/xg++ version 10.2.1 20210105 (GCC) make[1]: Leaving directory '/opt/notnfs/polacek/trunk/gcc' gcc-8 fails: $ make check-g++ RUNTESTFLAGS='--target_board=unix/-fstack-protector-strong asan.exp' Making a new config file... [...] Running /opt/notnfs/polacek/gcc/gcc/testsuite/g++.dg/asan/asan.exp ... FAIL: g++.dg/asan/asan_test.C -O2 AddressSanitizer_SimpleStackTest A[kSize + 31] = 0 execution test FAIL: g++.dg/asan/asan_test.C -O2 AddressSanitizer_SimpleStackTest A[kSize + 31] = 0 execution test FAIL: g++.dg/asan/asan_test.C -O2 AddressSanitizer_SimpleStackTest A[kSize + 31] = 0 execution test === g++ Summary === # of expected passes 3124 # of unexpected failures 3 # of unsupported tests 162 /opt/notnfs/polacek/trunk/gcc/xg++ version 8.4.1 20210105 (GCC) Moving to GTS where it's fixed. Clearing ITM. Should be resolved now. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (new packages: gcc-toolset-11-gcc), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2021:4227 |