public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink'
@ 2023-09-20 1:45 19373742 at buaa dot edu.cn
2023-09-20 1:46 ` [Bug c/111490] " 19373742 at buaa dot edu.cn
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: 19373742 at buaa dot edu.cn @ 2023-09-20 1:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111490
Bug ID: 111490
Summary: Segmentation fault with '-O3 -fno-dce -fno-tree-dce
-fno-tree-dse -fno-tree-sink'
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 19373742 at buaa dot edu.cn
Target Milestone: ---
Created attachment 55942
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55942&action=edit
The preprocessed file
*******************************************************************************
OS and Platform:
Ubuntu 20.04.4 LTS
*******************************************************************************
gcc version:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/home/cuisk/ctc/gcc-releases/gcc-14/bin/gcc
COLLECT_LTO_WRAPPER=/home/cuisk/ctc/gcc-releases/gcc-14/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/home/cuisk/ctc/gcc-releases/gcc-14
--disable-multilib --enable-language=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20230917 (experimental) (GCC)
*******************************************************************************
Command Lines:
$ gcc -I /home/csmith/include/csmith-2.3.0/ -O3 -fno-dce -fno-tree-dce
-fno-tree-dse -fno-tree-sink a.c -o ec.o
$ ./ec.o
Segmentation fault (core dumped)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/111490] Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink'
2023-09-20 1:45 [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink' 19373742 at buaa dot edu.cn
@ 2023-09-20 1:46 ` 19373742 at buaa dot edu.cn
2023-09-20 2:09 ` [Bug ipa/111490] " pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: 19373742 at buaa dot edu.cn @ 2023-09-20 1:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111490
--- Comment #1 from CTC <19373742 at buaa dot edu.cn> ---
Created attachment 55943
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55943&action=edit
The compiler output
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/111490] Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink'
2023-09-20 1:45 [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink' 19373742 at buaa dot edu.cn
2023-09-20 1:46 ` [Bug c/111490] " 19373742 at buaa dot edu.cn
@ 2023-09-20 2:09 ` pinskia at gcc dot gnu.org
2023-09-20 4:46 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-20 2:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111490
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|middle-end |ipa
CC| |marxin at gcc dot gnu.org
Keywords| |diagnostic, wrong-code
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This warning makes it obvious something wrong is going on. It is IPA SRA which
is doing something wrong:
In function 'func_27',
inlined from 'main' at /home/cuisk/gcc/tmp/a.c:608:5:
/home/cuisk/gcc/tmp/a.c:102:20: warning: 'removed_return.86' is used
uninitialized [-Wuninitialized]
/home/cuisk/gcc/tmp/a.c: In function 'main':
/home/cuisk/gcc/tmp/a.c:608:5: note: 'removed_return.86' was declared here
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/111490] Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink'
2023-09-20 1:45 [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink' 19373742 at buaa dot edu.cn
2023-09-20 1:46 ` [Bug c/111490] " 19373742 at buaa dot edu.cn
2023-09-20 2:09 ` [Bug ipa/111490] " pinskia at gcc dot gnu.org
@ 2023-09-20 4:46 ` pinskia at gcc dot gnu.org
2023-09-20 4:48 ` [Bug ipa/111490] [12/13/14 Regression] runtime " pinskia at gcc dot gnu.org
2023-09-20 14:10 ` jamborm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-20 4:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111490
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 55946
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55946&action=edit
Reduced testcase
This is as far as reduced testcase as I could get it without invoking undefined
behavior.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/111490] [12/13/14 Regression] runtime Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink'
2023-09-20 1:45 [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink' 19373742 at buaa dot edu.cn
` (2 preceding siblings ...)
2023-09-20 4:46 ` pinskia at gcc dot gnu.org
@ 2023-09-20 4:48 ` pinskia at gcc dot gnu.org
2023-09-20 14:10 ` jamborm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-20 4:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111490
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |12.3.0, 13.2.0
Last reconfirmed| |2023-09-20
Known to work| |11.4.0
Keywords| |needs-bisection
Summary|Segmentation fault with |[12/13/14 Regression]
|'-O3 -fno-dce -fno-tree-dce |runtime Segmentation fault
|-fno-tree-dse |with '-O3 -fno-dce
|-fno-tree-sink' |-fno-tree-dce -fno-tree-dse
| |-fno-tree-sink'
Target Milestone|--- |12.4
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed. Worked in GCC 11.4.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug ipa/111490] [12/13/14 Regression] runtime Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink'
2023-09-20 1:45 [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink' 19373742 at buaa dot edu.cn
` (3 preceding siblings ...)
2023-09-20 4:48 ` [Bug ipa/111490] [12/13/14 Regression] runtime " pinskia at gcc dot gnu.org
@ 2023-09-20 14:10 ` jamborm at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jamborm at gcc dot gnu.org @ 2023-09-20 14:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111490
Martin Jambor <jamborm at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #5 from Martin Jambor <jamborm at gcc dot gnu.org> ---
This is a duplicate or PR108007 (which has a patch pending review).
*** This bug has been marked as a duplicate of bug 108007 ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-09-20 14:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-20 1:45 [Bug c/111490] New: Segmentation fault with '-O3 -fno-dce -fno-tree-dce -fno-tree-dse -fno-tree-sink' 19373742 at buaa dot edu.cn
2023-09-20 1:46 ` [Bug c/111490] " 19373742 at buaa dot edu.cn
2023-09-20 2:09 ` [Bug ipa/111490] " pinskia at gcc dot gnu.org
2023-09-20 4:46 ` pinskia at gcc dot gnu.org
2023-09-20 4:48 ` [Bug ipa/111490] [12/13/14 Regression] runtime " pinskia at gcc dot gnu.org
2023-09-20 14:10 ` 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).