public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition
@ 2021-06-05 11:12 christian.holme at med dot uni-goettingen.de
  2021-06-05 11:13 ` [Bug c/100924] " christian.holme at med dot uni-goettingen.de
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: christian.holme at med dot uni-goettingen.de @ 2021-06-05 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100924
           Summary: GCC 11.1.1 internal compiler error: segfault at VLA
                    function definition
           Product: gcc
           Version: 11.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: christian.holme at med dot uni-goettingen.de
  Target Milestone: ---

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

Hey,

when compiling the attached vlatest_min.c, I encounter an internal compiler
error: segmentation fault with gcc 11.1.1. The precise version information
(collected with gcc -v) can be found in the attached compilation log.

With gcc master from 2021-06-02 it compiles without error.

Changing optimization level from -O3 to -O1 also removes the segfault, but -O2
still segfaults.

I have also attached the compiler output for both gcc 11 and 12 (master) and
the preprocessed files in both cases.

Since a fix for it exists on master, I am submitting this bug report in the
hopes that it will make it easier to fix in the next release of gcc 11.

Best regards

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

* [Bug c/100924] GCC 11.1.1 internal compiler error: segfault at VLA function definition
  2021-06-05 11:12 [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition christian.holme at med dot uni-goettingen.de
@ 2021-06-05 11:13 ` christian.holme at med dot uni-goettingen.de
  2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: christian.holme at med dot uni-goettingen.de @ 2021-06-05 11:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Christian Holme <christian.holme at med dot uni-goettingen.de> ---
Created attachment 50950
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50950&action=edit
Compilation log with gcc 11.1.1, including exact version and command line

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

* [Bug c/100924] GCC 11.1.1 internal compiler error: segfault at VLA function definition
  2021-06-05 11:12 [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition christian.holme at med dot uni-goettingen.de
  2021-06-05 11:13 ` [Bug c/100924] " christian.holme at med dot uni-goettingen.de
@ 2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
  2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: christian.holme at med dot uni-goettingen.de @ 2021-06-05 11:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Christian Holme <christian.holme at med dot uni-goettingen.de> ---
Created attachment 50951
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50951&action=edit
Source prepocessed with gcc 11.1.1

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

* [Bug c/100924] GCC 11.1.1 internal compiler error: segfault at VLA function definition
  2021-06-05 11:12 [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition christian.holme at med dot uni-goettingen.de
  2021-06-05 11:13 ` [Bug c/100924] " christian.holme at med dot uni-goettingen.de
  2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
@ 2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
  2021-06-07 10:23 ` rguenth at gcc dot gnu.org
  2021-06-07 13:25 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: christian.holme at med dot uni-goettingen.de @ 2021-06-05 11:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Christian Holme <christian.holme at med dot uni-goettingen.de> ---
Created attachment 50952
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50952&action=edit
Compilation log with gcc master, including exact version and command line

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

* [Bug c/100924] GCC 11.1.1 internal compiler error: segfault at VLA function definition
  2021-06-05 11:12 [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition christian.holme at med dot uni-goettingen.de
                   ` (2 preceding siblings ...)
  2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
@ 2021-06-07 10:23 ` rguenth at gcc dot gnu.org
  2021-06-07 13:25 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-06-07 10:23 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-06-07
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |needs-bisection

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

* [Bug c/100924] GCC 11.1.1 internal compiler error: segfault at VLA function definition
  2021-06-05 11:12 [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition christian.holme at med dot uni-goettingen.de
                   ` (3 preceding siblings ...)
  2021-06-07 10:23 ` rguenth at gcc dot gnu.org
@ 2021-06-07 13:25 ` jakub at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-06-07 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
                 CC|                            |jakub at gcc dot gnu.org
             Status|NEW                         |RESOLVED

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Dup

*** This bug has been marked as a duplicate of bug 100250 ***

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

end of thread, other threads:[~2021-06-07 13:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-05 11:12 [Bug c/100924] New: GCC 11.1.1 internal compiler error: segfault at VLA function definition christian.holme at med dot uni-goettingen.de
2021-06-05 11:13 ` [Bug c/100924] " christian.holme at med dot uni-goettingen.de
2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
2021-06-05 11:14 ` christian.holme at med dot uni-goettingen.de
2021-06-07 10:23 ` rguenth at gcc dot gnu.org
2021-06-07 13:25 ` jakub 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).