public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref
@ 2021-10-15 5:50 cnsun at uwaterloo dot ca
2021-10-15 6:51 ` [Bug c/102763] " rguenth at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-10-15 5:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102763
Bug ID: 102763
Summary: ICE on gimple code: segmentation fault,
build_component_ref
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: cnsun at uwaterloo dot ca
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.gzh6IUhxke-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20211014 (experimental) [master -gee9fa8a57] (GCC)
$ cat mutant.c
__GIMPLE
foo() { get_current()->flags; }
$ gcc-trunk -w -fgimple mutant.c
mutant.c: In function ‘foo’:
mutant.c:2:1: internal compiler error: Segmentation fault
2 | foo() { get_current()->flags; }
| ^~~
0xf8c8d3 crash_signal
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/toplev.c:326
0x967665 build_component_ref(unsigned int, tree_node*, tree_node*, unsigned
int)
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-typeck.c:2466
0x9c27bf c_parser_gimple_postfix_expression_after_primary
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:1838
0x9c27bf c_parser_gimple_postfix_expression
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:1716
0x9c3b13 c_parser_gimple_unary_expression
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:1203
0x9c44f1 c_parser_gimple_statement
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:710
0x9c5273 c_parser_gimple_compound_statement
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:650
0x9c5273 c_parser_gimple_compound_statement
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:381
0x9c6f47 c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il,
profile_count)
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/gimple-parser.c:253
0x9b48c8 c_parser_declaration_or_fndef
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:2539
0x9bd933 c_parser_external_declaration
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:1780
0x9be39b c_parser_translation_unit
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:1653
0x9be39b c_parse_file()
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c/c-parser.c:23222
0xa20db5 c_common_parse_file()
/tmp/tmp.gzh6IUhxke-gcc-builder/gcc/gcc/c-family/c-opts.c:1237
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/102763] ICE on gimple code: segmentation fault, build_component_ref
2021-10-15 5:50 [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref cnsun at uwaterloo dot ca
@ 2021-10-15 6:51 ` rguenth at gcc dot gnu.org
2021-10-15 8:20 ` cvs-commit at gcc dot gnu.org
2021-10-15 8:21 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-15 6:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102763
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-10-15
Blocks| |101057
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I have a patch avoiding the crash.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101057
[Bug 101057] [gimplefe] GIMPLE frontend issues
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/102763] ICE on gimple code: segmentation fault, build_component_ref
2021-10-15 5:50 [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref cnsun at uwaterloo dot ca
2021-10-15 6:51 ` [Bug c/102763] " rguenth at gcc dot gnu.org
@ 2021-10-15 8:20 ` cvs-commit at gcc dot gnu.org
2021-10-15 8:21 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-10-15 8:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102763
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:17ffb7a562061c54eb6eb9863271524568761cf6
commit r12-4431-g17ffb7a562061c54eb6eb9863271524568761cf6
Author: Richard Biener <rguenther@suse.de>
Date: Fri Oct 15 08:52:08 2021 +0200
c/102763 - fix ICE with invalid input to GIMPLE FE
This fixes an ICE for the failure to verify we're dereferencing a
pointer before throwing that at build_simple_mem_ref.
2021-10-15 Richard Biener <rguenther@suse.de>
PR c/102763
gcc/c/
* gimple-parser.c
(c_parser_gimple_postfix_expression_after_primary): Check
for a pointer do be dereferenced by ->.
gcc/testsuite/
* gcc.dg/gimplefe-error-12.c: New testcase.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c/102763] ICE on gimple code: segmentation fault, build_component_ref
2021-10-15 5:50 [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref cnsun at uwaterloo dot ca
2021-10-15 6:51 ` [Bug c/102763] " rguenth at gcc dot gnu.org
2021-10-15 8:20 ` cvs-commit at gcc dot gnu.org
@ 2021-10-15 8:21 ` rguenth at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-10-15 8:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102763
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Version|unknown |12.0
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed. Thanks for reporting.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-15 8:21 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-15 5:50 [Bug c/102763] New: ICE on gimple code: segmentation fault, build_component_ref cnsun at uwaterloo dot ca
2021-10-15 6:51 ` [Bug c/102763] " rguenth at gcc dot gnu.org
2021-10-15 8:20 ` cvs-commit at gcc dot gnu.org
2021-10-15 8:21 ` 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).