public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g @ 2011-01-14 14:04 zsojka at seznam dot cz 2011-01-14 14:23 ` [Bug c++/47291] " rguenth at gcc dot gnu.org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: zsojka at seznam dot cz @ 2011-01-14 14:04 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 Summary: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: zsojka@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 22965 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22965 reduced testcase (from g++.old-deja/g++.pt/ptrmem2.C) Compiler output: $ gcc -g testcase.C ==15482== Invalid read of size 8 ==15482== at 0x863310: size_binop_loc (fold-const.c:1427) ==15482== by 0xA12739: byte_from_pos (stor-layout.c:840) ==15482== by 0x53C217: cplus_expand_constant (expr.c:50) ==15482== by 0x4FAC3E: fold_cplus_constants (cp-lang.c:218) ==15482== by 0x7AB5CE: gen_generic_params_dies (dwarf2out.c:13048) ==15482== by 0x7B51A3: gen_tagged_type_die (dwarf2out.c:20150) ==15482== by 0x7A8FB0: gen_type_die_with_usage (dwarf2out.c:20500) ==15482== by 0x7B3EAD: gen_decl_die (dwarf2out.c:21057) ==15482== by 0x9357BB: rest_of_type_compilation (passes.c:229) ==15482== by 0x5A6479: finish_struct_1 (class.c:5683) ==15482== by 0x582A6A: instantiate_class_template (pt.c:8561) ==15482== by 0x5F0486: complete_type (typeck.c:134) ==15482== by 0x5344F4: grokdeclarator (decl.c:9651) ==15482== by 0x5ACFC2: grokfield (decl2.c:806) ==15482== by 0x5E7B51: cp_parser_member_declaration (parser.c:18010) ==15482== by 0x5CCA6B: cp_parser_type_specifier (parser.c:17630) ==15482== by 0x5CE247: cp_parser_decl_specifier_seq (parser.c:9990) ==15482== by 0x5E55B9: cp_parser_simple_declaration (parser.c:9641) ==15482== by 0x5E5A48: cp_parser_block_declaration (parser.c:9592) ==15482== by 0x5E9771: cp_parser_declaration (parser.c:9497) ==15482== by 0x5E8299: cp_parser_declaration_seq_opt (parser.c:9383) ==15482== by 0x5E9DE8: c_parse_file (parser.c:3463) ==15482== by 0x6BE0E4: c_common_parse_file (c-opts.c:1071) ==15482== by 0xA211D5: toplev_main (toplev.c:579) ==15482== by 0x62FEBBC: (below main) (in /lib64/libc-2.11.2.so) ==15482== Address 0x10 is not stack'd, malloc'd or (recently) free'd ==15482== testcase.C: In instantiation of 'D<&S::i>': testcase.C:7:15: instantiated from here testcase.C:2:30: 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: r168743 - crash 4.5.2 - OK ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz @ 2011-01-14 14:23 ` rguenth at gcc dot gnu.org 2011-01-14 17:04 ` hjl.tools at gmail dot com ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2011-01-14 14:23 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.6.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz 2011-01-14 14:23 ` [Bug c++/47291] " rguenth at gcc dot gnu.org @ 2011-01-14 17:04 ` hjl.tools at gmail dot com 2011-01-18 9:58 ` dodji at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: hjl.tools at gmail dot com @ 2011-01-14 17:04 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dodji at gcc dot gnu.org --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-14 16:36:51 UTC --- It is caused by revision 168681: http://gcc.gnu.org/ml/gcc-cvs/2011-01/msg00299.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz 2011-01-14 14:23 ` [Bug c++/47291] " rguenth at gcc dot gnu.org 2011-01-14 17:04 ` hjl.tools at gmail dot com @ 2011-01-18 9:58 ` dodji at gcc dot gnu.org 2011-01-19 10:45 ` dodji at gcc dot gnu.org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: dodji at gcc dot gnu.org @ 2011-01-18 9:58 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 Dodji Seketeli <dodji at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011.01.18 08:59:02 AssignedTo|unassigned at gcc dot |dodji at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-18 08:59:02 UTC --- Mine ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz ` (2 preceding siblings ...) 2011-01-18 9:58 ` dodji at gcc dot gnu.org @ 2011-01-19 10:45 ` dodji at gcc dot gnu.org 2011-01-19 21:30 ` jakub at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: dodji at gcc dot gnu.org @ 2011-01-19 10:45 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 --- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-19 09:49:06 UTC --- Patch submitted to http://gcc.gnu.org/ml/gcc-patches/2011-01/msg01282.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz ` (3 preceding siblings ...) 2011-01-19 10:45 ` dodji at gcc dot gnu.org @ 2011-01-19 21:30 ` jakub at gcc dot gnu.org 2011-01-19 23:22 ` dodji at gcc dot gnu.org 2011-01-20 0:14 ` dodji at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: jakub at gcc dot gnu.org @ 2011-01-19 21:30 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P1 CC| |jakub at gcc dot gnu.org ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz ` (4 preceding siblings ...) 2011-01-19 21:30 ` jakub at gcc dot gnu.org @ 2011-01-19 23:22 ` dodji at gcc dot gnu.org 2011-01-20 0:14 ` dodji at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: dodji at gcc dot gnu.org @ 2011-01-19 23:22 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 --- Comment #4 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-19 22:58:03 UTC --- Author: dodji Date: Wed Jan 19 22:57:47 2011 New Revision: 169036 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=169036 Log: Fix PR c++/47291 gcc/ PR c++/47291 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen) (gen_scheduled_generic_parms_dies): New functions. (gen_struct_or_union_type_die): Schedule template parameters DIEs generation for the end of CU compilation. (dwarf2out_finish): Generate template parameters DIEs here. gcc/testsuite/ PR c++/47291 * g++.dg/debug/dwarf2/template-params-10.C: New test. Added: trunk/gcc/testsuite/g++.dg/debug/dwarf2/template-params-10.C Modified: trunk/gcc/ChangeLog trunk/gcc/dwarf2out.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/47291] [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz ` (5 preceding siblings ...) 2011-01-19 23:22 ` dodji at gcc dot gnu.org @ 2011-01-20 0:14 ` dodji at gcc dot gnu.org 6 siblings, 0 replies; 8+ messages in thread From: dodji at gcc dot gnu.org @ 2011-01-20 0:14 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47291 Dodji Seketeli <dodji at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #5 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-19 22:59:39 UTC --- Fixed in trunk (4.6) ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-01-19 23:00 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-01-14 14:04 [Bug c++/47291] New: [4.6 Regression] ICE: SIGSEGV in size_binop_loc (fold-const.c:1427) with -g zsojka at seznam dot cz 2011-01-14 14:23 ` [Bug c++/47291] " rguenth at gcc dot gnu.org 2011-01-14 17:04 ` hjl.tools at gmail dot com 2011-01-18 9:58 ` dodji at gcc dot gnu.org 2011-01-19 10:45 ` dodji at gcc dot gnu.org 2011-01-19 21:30 ` jakub at gcc dot gnu.org 2011-01-19 23:22 ` dodji at gcc dot gnu.org 2011-01-20 0:14 ` dodji 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).