Bug 2101610

Summary: Enable LSan and TSan on s390x
Product: [Fedora] Fedora Reporter: Marek Polacek <mpolacek>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 36CC: aoliva, dmalcolm, fweimer, jakub, jwakely, law, mpolacek, msebor, nickc, sipoyare
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gcc-12.1.1-3.fc37 gcc-12.2.1-1.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-07-08 18:57:50 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 Marek Polacek 2022-06-27 22:34:07 UTC
Since r12-2560, LSan and TSan are enabled on s390x:
libsanitizer/configure.tgt:

  s390*-*-linux*)
        if test x$ac_cv_sizeof_void_p = x8; then
                TSAN_SUPPORTED=yes
                LSAN_SUPPORTED=yes
                TSAN_TARGET_DEPENDENT_OBJECTS=tsan_rtl_s390x.lo
        fi

We should consider building them in Fedora (and DTS):

--- a/gcc.spec
+++ b/gcc.spec
@@ -62,12 +62,12 @@
 %else
 %global build_libasan 0
 %endif
-%ifarch x86_64 ppc64 ppc64le aarch64
+%ifarch x86_64 ppc64 ppc64le aarch64 s390x
 %global build_libtsan 1
 %else
 %global build_libtsan 0
 %endif
-%ifarch x86_64 ppc64 ppc64le aarch64
+%ifarch x86_64 ppc64 ppc64le aarch64 s390x
 %global build_liblsan 1
 %else
 %global build_liblsan 0

Comment 1 Marek Polacek 2022-07-08 18:57:50 UTC
Fixed in gcc-12.1.1-3.fc37.

Comment 2 Fedora Update System 2022-08-22 08:14:51 UTC
FEDORA-2022-deb2092ec6 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-deb2092ec6

Comment 3 Fedora Update System 2022-08-23 01:16:09 UTC
FEDORA-2022-deb2092ec6 has been pushed to the Fedora 36 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2022-deb2092ec6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2022-deb2092ec6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 4 Fedora Update System 2022-08-24 20:31:11 UTC
FEDORA-2022-deb2092ec6 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.