public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/47209] New: ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -femit-struct-debug-baseonly -g
@ 2011-01-07 12:41 zsojka at seznam dot cz
  2011-01-07 23:59 ` [Bug debug/47209] " zsojka at seznam dot cz
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-07 12:41 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE: SIGSEGV in should_emit_struct_debug
                    (dwarf2out.c:627) with -femit-struct-debug-baseonly -g
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22923
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22923
reduced testcase

Compiler output:
$ gcc -femit-struct-debug-baseonly -g pr47209.C
==21262== Invalid read of size 2
==21262==    at 0x78AC0E: should_emit_struct_debug (dwarf2out.c:627)
==21262==    by 0x7BAA0C: dwarf2out_imported_module_or_decl (dwarf2out.c:21164)
==21262==    by 0x678056: cp_emit_debug_info_for_using (name-lookup.c:5653)
==21262==    by 0x5A6D80: check_bases_and_members (class.c:1204)
==21262==    by 0x5A9DC1: finish_struct_1 (class.c:5531)
==21262==    by 0x5AB834: finish_struct (class.c:5760)
==21262==    by 0x5D0FC9: cp_parser_type_specifier (parser.c:16919)
==21262==    by 0x5D24E7: cp_parser_decl_specifier_seq (parser.c:9969)
==21262==    by 0x5E97BA: cp_parser_simple_declaration (parser.c:9626)
==21262==    by 0x5E9BE6: cp_parser_block_declaration (parser.c:9587)
==21262==    by 0x5ED8F1: cp_parser_declaration (parser.c:9492)
==21262==    by 0x5EC419: cp_parser_declaration_seq_opt (parser.c:9378)
==21262==    by 0x5EDF68: c_parse_file (parser.c:3461)
==21262==    by 0x6C2194: c_common_parse_file (c-opts.c:1071)
==21262==    by 0xA24597: toplev_main (toplev.c:579)
==21262==    by 0x6369BBC: (below main) (in /lib64/libc-2.11.2.so)
==21262==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==21262== 
pr47209.C:6:8: 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.

Tested revisions:
r168552 - crash
4.5.2, 4.4.5, 4.3.5 - crash
4.2.4 - doesn't know -femit-struct-debug-baseonly

In the testcase, "  base::foo;" can be changes to "using base::foo;", it will
still fail.


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

end of thread, other threads:[~2024-03-25  5:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 12:41 [Bug debug/47209] New: ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -femit-struct-debug-baseonly -g zsojka at seznam dot cz
2011-01-07 23:59 ` [Bug debug/47209] " zsojka at seznam dot cz
2011-01-08  4:59 ` hjl.tools at gmail dot com
2011-01-08 20:59 ` [Bug debug/47209] ICE: SIGSEGV in should_emit_struct_debug (dwarf2out.c:627) with -f{no-,}emit-struct-debug-{baseonly,reduced} -g zsojka at seznam dot cz
2011-01-08 21:00 ` ktietz at gcc dot gnu.org
2011-01-09  2:11 ` zsojka at seznam dot cz
2011-01-12 17:10 ` ktietz at gcc dot gnu.org
2011-01-12 17:17 ` ktietz at gcc dot gnu.org
2024-03-25  5:13 ` pinskia at gcc dot gnu.org
2024-03-25  5:13 ` pinskia 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).