[Bug preprocessor/58893] [4.8/4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault

octoploid at yandex dot com gcc-bugzilla@gcc.gnu.org
Sun Nov 24 12:15:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58893

--- Comment #5 from Markus Trippelsdorf <octoploid at yandex dot com> ---
==3700== Conditional jump or move depends on uninitialised value(s)
==3700==    at 0xDCB562: diagnostic_report_current_module(diagnostic_context*,
unsigned int) (diagnostic.c:506)
==3700==    by 0x58DB6D: cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) (error.c:3025)
==3700==    by 0xDCC1E8: diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) (diagnostic.c:791)
==3700==    by 0x6551D4: c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) (c-common.c:9665)
==3700==    by 0xDD9AB8: cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) (errors.c:63)
==3700==    by 0xDD9C06: cpp_error(cpp_reader*, int, char const*, ...)
(errors.c:78)
==3700==    by 0xDDF152: _cpp_find_file (files.c:571)
==3700==    by 0xDDF71E: _cpp_stack_include (files.c:993)
==3700==    by 0x6657D5: push_command_line_include() (c-opts.c:1372)
==3700==    by 0xDE18E5: _cpp_get_fresh_line.part.6 (lex.c:2134)
==3700==    by 0xDE3A58: _cpp_lex_direct (lex.c:2104)
==3700==    by 0xDE490B: _cpp_lex_token (lex.c:2055)
==3700==  Uninitialised value was created by a heap allocation
==3700==    at 0x40274F0: malloc (vg_replace_malloc.c:291)
==3700==    by 0xE0F557: xmalloc (xmalloc.c:147)
==3700==    by 0xDE1DDA: _cpp_init_tokenrun (lex.c:1901)
==3700==    by 0xDE0653: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:236)
==3700==    by 0x665C7C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:215)
==3700==    by 0x93E854: toplev_main(int, char**) (toplev.c:1947)
==3700==    by 0x4ED5FD2: (below main) (in /lib64/libc-2.18.90.so)
==3700== 
==3700== Conditional jump or move depends on uninitialised value(s)
==3700==    at 0xDCF7FE: expand_location_1(unsigned int, bool) (input.c:55)
==3700==    by 0xDCFA5A: expand_location_to_spelling_point(unsigned int)
(input.c:162)
==3700==    by 0xDCBC28: diagnostic_build_prefix(diagnostic_context*,
diagnostic_info const*) (diagnostic.c:239)
==3700==    by 0x58DC7F: cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) (error.c:3030)
==3700==    by 0xDCC1E8: diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) (diagnostic.c:791)
==3700==    by 0x6551D4: c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) (c-common.c:9665)
==3700==    by 0xDD9AB8: cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) (errors.c:63)
==3700==    by 0xDD9C06: cpp_error(cpp_reader*, int, char const*, ...)
(errors.c:78)
==3700==    by 0xDDF152: _cpp_find_file (files.c:571)
==3700==    by 0xDDF71E: _cpp_stack_include (files.c:993)
==3700==    by 0x6657D5: push_command_line_include() (c-opts.c:1372)
==3700==    by 0xDE18E5: _cpp_get_fresh_line.part.6 (lex.c:2134)
==3700==  Uninitialised value was created by a heap allocation
==3700==    at 0x40274F0: malloc (vg_replace_malloc.c:291)
==3700==    by 0xE0F557: xmalloc (xmalloc.c:147)
==3700==    by 0xDE1DDA: _cpp_init_tokenrun (lex.c:1901)
==3700==    by 0xDE0653: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:236)
==3700==    by 0x665C7C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:215)
==3700==    by 0x93E854: toplev_main(int, char**) (toplev.c:1947)
==3700==    by 0x4ED5FD2: (below main) (in /lib64/libc-2.18.90.so)
==3700== 
==3700== Conditional jump or move depends on uninitialised value(s)
==3700==    at 0xDCF841: expand_location_1(unsigned int, bool) (input.c:63)
==3700==    by 0xDCFA5A: expand_location_to_spelling_point(unsigned int)
(input.c:162)
==3700==    by 0xDCBC28: diagnostic_build_prefix(diagnostic_context*,
diagnostic_info const*) (diagnostic.c:239)
==3700==    by 0x58DC7F: cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) (error.c:3030)
==3700==    by 0xDCC1E8: diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) (diagnostic.c:791)
==3700==    by 0x6551D4: c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) (c-common.c:9665)
==3700==    by 0xDD9AB8: cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) (errors.c:63)
==3700==    by 0xDD9C06: cpp_error(cpp_reader*, int, char const*, ...)
(errors.c:78)
==3700==    by 0xDDF152: _cpp_find_file (files.c:571)
==3700==    by 0xDDF71E: _cpp_stack_include (files.c:993)
==3700==    by 0x6657D5: push_command_line_include() (c-opts.c:1372)
==3700==    by 0xDE18E5: _cpp_get_fresh_line.part.6 (lex.c:2134)
==3700==  Uninitialised value was created by a heap allocation
==3700==    at 0x40274F0: malloc (vg_replace_malloc.c:291)
==3700==    by 0xE0F557: xmalloc (xmalloc.c:147)
==3700==    by 0xDE1DDA: _cpp_init_tokenrun (lex.c:1901)
==3700==    by 0xDE0653: cpp_create_reader(c_lang, ht*, line_maps*)
(init.c:236)
==3700==    by 0x665C7C: c_common_init_options(unsigned int,
cl_decoded_option*) (c-opts.c:215)
==3700==    by 0x93E854: toplev_main(int, char**) (toplev.c:1947)
==3700==    by 0x4ED5FD2: (below main) (in /lib64/libc-2.18.90.so)
....



More information about the Gcc-bugs mailing list