public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
@ 2020-05-18 5:34 asolokha at gmx dot com
2020-05-18 6:04 ` [Bug preprocessor/95183] " marxin at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: asolokha at gmx dot com @ 2020-05-18 5:34 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
Bug ID: 95183
Summary: [11 Regression] ICE: Segmentation fault (in
_cpp_lex_direct)
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: preprocessor
Assignee: unassigned at gcc dot gnu.org
Reporter: asolokha at gmx dot com
Target Milestone: ---
gcc-11.0.0-alpha20200517 snapshot (g:2b9a271b2d0ba340234a138b7f8289bd7dca2fc5)
ICEs when compiling gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:
% gcc-11.0.0 -c gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c
gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:8:8: error: unterminated argument
list invoking macro "f"
8 | #if 2 f(/* { dg-error "-:unterminated" "unterminated macro in
directive" } */
| ^
gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:8:7: error: missing binary operator
before token "f"
8 | #if 2 f(/* { dg-error "-:unterminated" "unterminated macro in
directive" } */
| ^
gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:12: error: unterminated argument list
invoking macro "f"
12 | f( /* { dg-error "-:unterminated" "unterminated macro" } */
|
gcc/testsuite/gcc.dg/cpp/trad/funlike-3.c:12:1: internal compiler error:
Segmentation fault
12 | f( /* { dg-error "-:unterminated" "unterminated macro" } */
| ^
0xd9b92f crash_signal
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/toplev.c:328
0x18578d3 _cpp_lex_direct
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/libcpp/lex.c:2733
0x18592e8 _cpp_lex_token
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/libcpp/lex.c:2611
0x1860877 cpp_get_token_1
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/libcpp/macro.c:2808
0x8784d0 c_lex_with_flags(tree_node**, unsigned int*, unsigned char*, int)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c-family/c-lex.c:458
0x7f7a3a c_lex_one_token
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:270
0x7f8ac0 c_parser_peek_2nd_token(c_parser*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:491
0x7f8ac0 c_parser_peek_2nd_token(c_parser*)
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:484
0x820b9c c_parser_declaration_or_fndef
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:1893
0x82a893 c_parser_external_declaration
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:1745
0x82b3a9 c_parser_translation_unit
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:1618
0x82b3a9 c_parse_file()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c/c-parser.c:21746
0x8830fb c_common_parse_file()
/var/tmp/portage/sys-devel/gcc-11.0.0_alpha20200517/work/gcc-11-20200517/gcc/c-family/c-opts.c:1190
It's likely caused by g:2a0225e47868fbfceaecaa5e2de96c1c5a2251ea.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
@ 2020-05-18 6:04 ` marxin at gcc dot gnu.org
2020-05-18 6:30 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-05-18 6:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org,
| |nathan at gcc dot gnu.org
Last reconfirmed| |2020-05-18
Known to fail| |11.0
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Known to work| |10.0
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, it really started with Nathan's commit.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
2020-05-18 6:04 ` [Bug preprocessor/95183] " marxin at gcc dot gnu.org
@ 2020-05-18 6:30 ` rguenth at gcc dot gnu.org
2020-05-18 12:35 ` nathan at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-05-18 6:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
2020-05-18 6:04 ` [Bug preprocessor/95183] " marxin at gcc dot gnu.org
2020-05-18 6:30 ` rguenth at gcc dot gnu.org
@ 2020-05-18 12:35 ` nathan at gcc dot gnu.org
2020-05-18 14:36 ` nathan at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-05-18 12:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |nathan at gcc dot gnu.org
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
` (2 preceding siblings ...)
2020-05-18 12:35 ` nathan at gcc dot gnu.org
@ 2020-05-18 14:36 ` nathan at gcc dot gnu.org
2020-05-18 15:43 ` asolokha at gmx dot com
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-05-18 14:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
--- Comment #2 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
This is a bug, but you're running a --traditional C preprocessor test through
the c++ compiler, right? (A regular test run doesn't fail this test for me at
least)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
` (3 preceding siblings ...)
2020-05-18 14:36 ` nathan at gcc dot gnu.org
@ 2020-05-18 15:43 ` asolokha at gmx dot com
2020-05-19 13:21 ` nathan at gcc dot gnu.org
2020-05-19 14:01 ` nathan at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: asolokha at gmx dot com @ 2020-05-18 15:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
--- Comment #3 from Arseny Solokha <asolokha at gmx dot com> ---
(In reply to Nathan Sidwell from comment #2)
> This is a bug, but you're running a --traditional C preprocessor test
> through the c++ compiler, right?
Through the C compiler, but otherwise yes. I've posted the compiler invocation
in comment 0 verbatim.
> (A regular test run doesn't fail this test
> for me at least)
Yep, because trad.exp adds -traditional-cpp, as intended. But I don't run the
testsuite, but rather use its test cases as part of my larger test corpus,
compiling every individual case in that corpus with randomly chosen compiler
options. IOW, my testing ignores DejaGNU directives in gcc testsuite (which
means it also often ignores common sense when choosing compiler options, as a
consequence).
I can further describe my setup if you are interested, but it's off-topic in
this PR.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
` (4 preceding siblings ...)
2020-05-18 15:43 ` asolokha at gmx dot com
@ 2020-05-19 13:21 ` nathan at gcc dot gnu.org
2020-05-19 14:01 ` nathan at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-05-19 13:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
Nathan Sidwell <nathan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #4 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
Fixed a641d6d3e63
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug preprocessor/95183] [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct)
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
` (5 preceding siblings ...)
2020-05-19 13:21 ` nathan at gcc dot gnu.org
@ 2020-05-19 14:01 ` nathan at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: nathan at gcc dot gnu.org @ 2020-05-19 14:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95183
--- Comment #5 from Nathan Sidwell <nathan at gcc dot gnu.org> ---
patch got attached to p95182, because reasons
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-05-19 14:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-18 5:34 [Bug preprocessor/95183] New: [11 Regression] ICE: Segmentation fault (in _cpp_lex_direct) asolokha at gmx dot com
2020-05-18 6:04 ` [Bug preprocessor/95183] " marxin at gcc dot gnu.org
2020-05-18 6:30 ` rguenth at gcc dot gnu.org
2020-05-18 12:35 ` nathan at gcc dot gnu.org
2020-05-18 14:36 ` nathan at gcc dot gnu.org
2020-05-18 15:43 ` asolokha at gmx dot com
2020-05-19 13:21 ` nathan at gcc dot gnu.org
2020-05-19 14:01 ` nathan 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).