[Bug c++/65638] Crash on invalid input
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 13:02:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65638
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |powerpc64le-linux-gnu
Status|WAITING |NEW
CC| |trippels at gcc dot gnu.org
--- Comment #4 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
trippels@gcc2-power8 ~ % echo "bool" |
/home/trippels/gcc_valgrind/usr/local/bin/g++ -x c++ -
==12604== Invalid read of size 1
==12604== at 0x10D99290: _cpp_lex_direct (lex.c:2279)
==12604== by 0x10D9A6F7: _cpp_lex_token (lex.c:2163)
==12604== by 0x10DA1147: cpp_get_token_1(cpp_reader*, unsigned int*)
(macro.c:2442)
==12604== by 0x102E2FB3: c_lex_with_flags(tree_node**, unsigned int*,
unsigned char*, int) (c-lex.c:408)
==12604== by 0x101B235B: cp_lexer_get_preprocessor_token(cp_lexer*,
cp_token*) (parser.c:780)
==12604== by 0x101F36A7: cp_lexer_new_main (parser.c:660)
==12604== by 0x101F36A7: cp_parser_new (parser.c:3484)
==12604== by 0x101F36A7: c_parse_file() (parser.c:33187)
==12604== by 0x102E952B: c_common_parse_file() (c-opts.c:1057)
==12604== by 0x107688AB: compile_file() (toplev.c:594)
==12604== by 0x10111D33: do_compile (toplev.c:2076)
==12604== by 0x10111D33: toplev::main(int, char**) (toplev.c:2174)
==12604== by 0x10112747: main (main.c:39)
==12604== Address 0x68 is not stack'd, malloc'd or (recently) free'd
==12604==
<stdin>:1:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
More information about the Gcc-bugs
mailing list