public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109780] New: csmith: runtime crash with -O2 -march=znver1
@ 2023-05-08 20:35 dcb314 at hotmail dot com
  2023-05-08 20:44 ` [Bug target/109780] " pinskia at gcc dot gnu.org
                   ` (27 more replies)
  0 siblings, 28 replies; 29+ messages in thread
From: dcb314 at hotmail dot com @ 2023-05-08 20:35 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109780
           Summary: csmith: runtime crash with -O2 -march=znver1
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 55023
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55023&action=edit
C source code

The attached C code seems to work fine with -O2:

$ ../results.20230507.asan.ubsan/bin/gcc -w -O2  bug916.c
$ ./a.out
checksum = 44DCF65B
$ 

But adding -march=znver1 seems to cause trouble:

$ ../results.20230507.asan.ubsan/bin/gcc -w -O2 -march=znver1  bug916.c
$ ./a.out
Segmentation fault (core dumped)
$ 

Adding the -fno-strict-aliasing flag doesn't seem to help:

$ ../results.20230507.asan.ubsan/bin/gcc -w -O2 -march=znver1
-fno-strict-aliasing  bug916.c
$ ./a.out
Segmentation fault (core dumped)
$ 

The bug seems to have existed for a while:

$ ../results.20230417/bin/gcc -w -O2 -march=znver1 -fno-strict-aliasing 
bug916.c
$ ./a.out
Segmentation fault (core dumped)
$

^ permalink raw reply	[flat|nested] 29+ messages in thread

end of thread, other threads:[~2024-01-10 17:33 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-08 20:35 [Bug c/109780] New: csmith: runtime crash with -O2 -march=znver1 dcb314 at hotmail dot com
2023-05-08 20:44 ` [Bug target/109780] " pinskia at gcc dot gnu.org
2023-05-08 20:49 ` pinskia at gcc dot gnu.org
2023-05-08 22:09 ` amonakov at gcc dot gnu.org
2023-05-09  7:41 ` rguenth at gcc dot gnu.org
2023-05-09  8:10 ` dcb314 at hotmail dot com
2023-05-09 10:00 ` dcb314 at hotmail dot com
2023-05-09 10:11 ` dcb314 at hotmail dot com
2023-05-09 10:44 ` dcb314 at hotmail dot com
2023-05-09 11:10 ` dcb314 at hotmail dot com
2023-05-09 11:32 ` marxin at gcc dot gnu.org
2023-05-09 11:56 ` amonakov at gcc dot gnu.org
2023-05-09 12:03 ` marxin at gcc dot gnu.org
2023-05-09 14:49 ` amonakov at gcc dot gnu.org
2023-05-09 14:57 ` [Bug target/109780] [12/13/14 Regression] " amonakov at gcc dot gnu.org
2023-06-23  9:42 ` rguenth at gcc dot gnu.org
2023-06-26 12:57 ` xry111 at gcc dot gnu.org
2023-06-27 18:45 ` xry111 at gcc dot gnu.org
2023-06-27 23:35 ` hjl.tools at gmail dot com
2023-06-28  9:48 ` xry111 at gcc dot gnu.org
2023-06-28  9:59 ` xry111 at gcc dot gnu.org
2023-06-28 15:47 ` hjl.tools at gmail dot com
2023-06-28 15:49 ` xry111 at gcc dot gnu.org
2023-06-28 21:39 ` xry111 at gcc dot gnu.org
2023-06-28 21:40 ` xry111 at gcc dot gnu.org
2023-06-29  2:43 ` hjl.tools at gmail dot com
2023-06-29  8:48 ` xry111 at gcc dot gnu.org
2023-06-29  9:17 ` xry111 at gcc dot gnu.org
2024-01-10 17:33 ` jamborm at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).