public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111356] New: Segmentation fault when compiling large static data structure
@ 2023-09-09 16:53 comer352l at googlemail dot com
2023-09-09 16:54 ` [Bug c++/111356] " comer352l at googlemail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: comer352l at googlemail dot com @ 2023-09-09 16:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
Bug ID: 111356
Summary: Segmentation fault when compiling large static data
structure
Product: gcc
Version: 13.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: comer352l at googlemail dot com
Target Milestone: ---
Created attachment 55865
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55865&action=edit
header file
Source files attached.
gcc-Version:
13.2.1 20230803 [revision cc279d6c64562f05019e1d12d0d825f9391b5553] (SUSE
Linux)
System type:
x86-64 (openSUSE Tumbleweed)
Command line that triggers the bug:
LC_ALL=en_GB.UTF-8 g++-13 -c Definitions.cpp
Output:
"g++: internal compiler error: Segmentation fault signal terminated program
cc1plus
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
See <https://bugs.opensuse.org/> for instructions."
Additional notes:
- gcc 12.3.0 works fine, so this seems to be a regression.
- bug doesn't occur when compiling with -fwrapv
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/111356] Segmentation fault when compiling large static data structure
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
@ 2023-09-09 16:54 ` comer352l at googlemail dot com
2023-09-09 19:16 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: comer352l at googlemail dot com @ 2023-09-09 16:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
--- Comment #1 from comer352l at googlemail dot com ---
Created attachment 55866
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55866&action=edit
cpp file
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/111356] Segmentation fault when compiling large static data structure
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
2023-09-09 16:54 ` [Bug c++/111356] " comer352l at googlemail dot com
@ 2023-09-09 19:16 ` pinskia at gcc dot gnu.org
2023-09-10 7:51 ` xry111 at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-09 19:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works for me on the trunk.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/111356] Segmentation fault when compiling large static data structure
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
2023-09-09 16:54 ` [Bug c++/111356] " comer352l at googlemail dot com
2023-09-09 19:16 ` pinskia at gcc dot gnu.org
@ 2023-09-10 7:51 ` xry111 at gcc dot gnu.org
2023-09-10 7:52 ` xry111 at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-09-10 7:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
Xi Ruoyao <xry111 at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |xry111 at gcc dot gnu.org
Known to work| |14.0
Keywords| |needs-bisection
Known to fail| |13.2.0
--- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
Fails for me with 13.2. Maybe a duplicate of a PR fixed in trunk.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/111356] Segmentation fault when compiling large static data structure
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
` (2 preceding siblings ...)
2023-09-10 7:51 ` xry111 at gcc dot gnu.org
@ 2023-09-10 7:52 ` xry111 at gcc dot gnu.org
2023-09-12 12:19 ` [Bug c++/111356] [13 Regression] " rguenth at gcc dot gnu.org
2024-05-08 12:11 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: xry111 at gcc dot gnu.org @ 2023-09-10 7:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
--- Comment #4 from Xi Ruoyao <xry111 at gcc dot gnu.org> ---
BTW it works with 13.2.0 with "ulimit -s 131072" too, so it's a stack usage
issue.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/111356] [13 Regression] Segmentation fault when compiling large static data structure
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
` (3 preceding siblings ...)
2023-09-10 7:52 ` xry111 at gcc dot gnu.org
@ 2023-09-12 12:19 ` rguenth at gcc dot gnu.org
2024-05-08 12:11 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-09-12 12:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |amacleod at redhat dot com,
| |rguenth at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Target Milestone|--- |13.3
Last reconfirmed| |2023-09-12
Keywords| |needs-reduction
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
Program received signal SIGSEGV, Segmentation fault.
0x0000000002f2ba98 in gimple_ranger::range_on_entry (this=<error reading
variable: Cannot access memory at address 0x7ffffbffee08>, r=<error reading
variable: Cannot access memory at address 0x7ffffbffee00>, bb=<error reading
variable: Cannot access memory at address 0x7ffffbffedf8>, name=<error reading
variable: Cannot access memory at address 0x7ffffbffedf0>) at
/space/rguenther/src/gcc-13-branch/gcc/gimple-range.cc:141
141 {
from pass_waccess resulting in a 21852 calls deep call chain.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/111356] [13 Regression] Segmentation fault when compiling large static data structure
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
` (4 preceding siblings ...)
2023-09-12 12:19 ` [Bug c++/111356] [13 Regression] " rguenth at gcc dot gnu.org
@ 2024-05-08 12:11 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-05-08 12:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111356
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |13.2.1
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> ---
As far as I can see this has been fixed on the branch.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-05-08 12:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-09 16:53 [Bug c++/111356] New: Segmentation fault when compiling large static data structure comer352l at googlemail dot com
2023-09-09 16:54 ` [Bug c++/111356] " comer352l at googlemail dot com
2023-09-09 19:16 ` pinskia at gcc dot gnu.org
2023-09-10 7:51 ` xry111 at gcc dot gnu.org
2023-09-10 7:52 ` xry111 at gcc dot gnu.org
2023-09-12 12:19 ` [Bug c++/111356] [13 Regression] " rguenth at gcc dot gnu.org
2024-05-08 12:11 ` rguenth 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).