public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58893] New: [4.8, 4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault
@ 2013-10-27  8:25 octoploid at yandex dot com
  2013-10-27  8:30 ` [Bug c++/58893] " octoploid at yandex dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: octoploid at yandex dot com @ 2013-10-27  8:25 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58893
           Summary: [4.8, 4.9 Regression] <command-line>:0:0: internal
                    compiler error: Segmentation fault
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: octoploid at yandex dot com

Came across this strange segfault:

 ~ % c++ -include ./gcc_hidden.h -include xxx.h -w -march=native
-fno-strict-aliasing -fno-rtti -fno-exceptions -fno-math-errno -std=gnu++0x
-I/usr/include/cairo -pthread -I/usr/include/pango-1.0 -I/usr/include/harfbuzz
-I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2
-I/usr/include/libdrm -I/usr/include/libpng16 -I/usr/include/freetype2
-I/usr/include/freetype2 -DNDEBUG -DTRIMMED -O2 -fomit-frame-pointer
minimal.cpp

<command-line>:0:0: internal compiler error: Segmentation fault

gdb shows:
0x0000000000d36791 in linemap_macro_map_lookup(line_maps*, unsigned int) ()
(gdb) bt
#0  0x0000000000d36791 in linemap_macro_map_lookup(line_maps*, unsigned int) ()
#1  0x0000000000d374f5 in linemap_resolve_location(line_maps*, unsigned int,
location_resolution_kind, line_map const**) ()
#2  0x000000000074f5b6 in diagnostic_report_current_module(diagnostic_context*,
unsigned int) ()
#3  0x00000000004d6c50 in cp_diagnostic_starter(diagnostic_context*,
diagnostic_info*) ()
#4  0x0000000000dfc97b in diagnostic_report_diagnostic(diagnostic_context*,
diagnostic_info*) ()
#5  0x0000000000867319 in c_cpp_error(cpp_reader*, int, int, unsigned int,
unsigned int, char const*, __va_list_tag (*) [1]) ()
#6  0x0000000000753a0f in cpp_diagnostic(cpp_reader*, int, int, char const*,
__va_list_tag (*) [1]) ()
#7  0x0000000000753aa3 in cpp_error(cpp_reader*, int, char const*, ...) ()
#8  0x0000000000e01280 in _cpp_find_file ()
#9  0x0000000000e01d3e in _cpp_stack_include ()
#10 0x000000000087414f in push_command_line_include() ()
#11 0x0000000000d36306 in _cpp_lex_token ()
#12 0x0000000000d3a655 in cpp_get_token_with_location(cpp_reader*, unsigned
int*) ()
#13 0x00000000008734a1 in c_lex_with_flags(tree_node**, unsigned int*, unsigned
char*, int) ()
#14 0x0000000000d4ea93 in c_parse_file() ()
#15 0x0000000000d67477 in c_common_parse_file() ()
#16 0x0000000000da7003 in compile_file() ()
#17 0x0000000000da7aba in toplev_main(int, char**) ()
#18 0x00007ffff7772a6e in __libc_start_main () from /lib/libc.so.6
#19 0x0000000000d4117a in _start ()


 ~ % cat gcc_hidden.h
#pragma GCC visibility push(hidden)
 ~ % cat minimal.cpp
int main () {}
 ~ % 

And xxx.h doesn't exist.

4.7.3 is fine. 4.8 and 4.9 segfault.


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

end of thread, other threads:[~2015-06-26 20:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-27  8:25 [Bug c++/58893] New: [4.8, 4.9 Regression] <command-line>:0:0: internal compiler error: Segmentation fault octoploid at yandex dot com
2013-10-27  8:30 ` [Bug c++/58893] " octoploid at yandex dot com
2013-10-29 11:05 ` [Bug preprocessor/58893] [4.8/4.9 " rguenth at gcc dot gnu.org
2013-11-19 10:33 ` rguenth at gcc dot gnu.org
2013-11-19 10:36 ` rguenth at gcc dot gnu.org
2013-11-19 10:37 ` rguenth at gcc dot gnu.org
2014-03-24 16:23 ` jakub at gcc dot gnu.org
2014-03-24 19:10 ` mpolacek at gcc dot gnu.org
2014-03-24 19:44 ` jakub at gcc dot gnu.org
2014-05-22  9:02 ` [Bug preprocessor/58893] [4.8/4.9/4.10 " rguenth at gcc dot gnu.org
2014-09-24 10:12 ` [Bug preprocessor/58893] [4.8/4.9/5 " bernd.edlinger at hotmail dot de
2014-09-26 11:24 ` trippels at gcc dot gnu.org
2014-09-30 16:09 ` edlinger at gcc dot gnu.org
2014-10-01  7:37 ` [Bug preprocessor/58893] [4.8/4.9 " trippels at gcc dot gnu.org
2014-12-19 13:24 ` jakub at gcc dot gnu.org
2015-06-23  8:13 ` rguenth at gcc dot gnu.org
2015-06-26 19:53 ` [Bug preprocessor/58893] [4.9 " jakub at gcc dot gnu.org
2015-06-26 20:26 ` 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).