Bug 2190127 - GCC miscompiles flexible array members with -O2 [fix backport request]
Summary: GCC miscompiles flexible array members with -O2 [fix backport request]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gcc
Version: 38
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Fedora Extras Quality Assurance
URL: https://gcc.gnu.org/bugzilla/show_bug...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-27 08:54 UTC by Hector Martin
Modified: 2023-05-15 01:47 UTC (History)
14 users (show)

Fixed In Version: gcc-13.1.1-2.fc38 gcc-12.3.1-1.fc37
Clone Of:
Environment:
Last Closed: 2023-05-15 01:27:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
GNU Compiler Collection 109585 0 P2 ASSIGNED [10/11 regression] Carla/sord miscompiled with -O2 on ARM64 with flexible array member 2023-04-27 08:59:14 UTC

Description Hector Martin 2023-04-27 08:54:31 UTC
GCC 10 introduced a regression that can miscompile loads/stores with flexible array members with -O2 or higher. This was recently discovered on ARM64 (Carla builds crash) but was found to affect all platforms including x86-64. The bug is a one-character typo.

See bug URL for the upstream bug, reproducers, and gcc-12 / gcc-13 fix backports:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109585

GCC 13.1 was just released without the fix. Please backport the fix to the Fedora packages.

Reproducible: Always

Comment 1 Fedora Update System 2023-05-12 12:50:26 UTC
FEDORA-2023-bcc40d5f14 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-bcc40d5f14

Comment 2 Fedora Update System 2023-05-12 12:51:52 UTC
FEDORA-2023-03293caf95 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2023-03293caf95

Comment 3 Fedora Update System 2023-05-13 03:35:08 UTC
FEDORA-2023-03293caf95 has been pushed to the Fedora 37 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-03293caf95`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-03293caf95

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

Comment 4 Fedora Update System 2023-05-13 03:44:13 UTC
FEDORA-2023-bcc40d5f14 has been pushed to the Fedora 38 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2023-bcc40d5f14`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-bcc40d5f14

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

Comment 5 Fedora Update System 2023-05-15 01:27:01 UTC
FEDORA-2023-bcc40d5f14 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Fedora Update System 2023-05-15 01:47:51 UTC
FEDORA-2023-03293caf95 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.