http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48173
--- Comment #3 from Matthias Klose <doko at ubuntu dot com> 2011-03-22 13:13:57 UTC --- had to reproduce it with a local build ... the ice is triggered with any warning, -Warray-bounds as in the example, or faster with -Wlong-long, e.g.: -g -O2 -Warray-bounds -Wlong-long Program received signal SIGSEGV, Segmentation fault. pp_base_format (pp=0x7833fc, text=0xbeee47bc) at ../../src/gcc/pretty-print.c:217 217 new_chunk_array = XOBNEW (&buffer->chunk_obstack, struct chunk_info); (gdb) bt #0 pp_base_format (pp=0x7833fc, text=0xbeee47bc) at ../../src/gcc/pretty-print.c:217 #1 0x00166d54 in diagnostic_report_diagnostic (context=0x937a14, diagnostic=0xbeee47bc) at ../../src/gcc/diagnostic.c:541 #2 0x00086fc4 in pedwarn_c90 (location=<value optimized out>, opt=250, gmsgid=0x7833fc "ISO C90 does not support %<long long%>") at ../../src/gcc/c-errors.c:62 #3 0x00095930 in declspecs_add_type (loc=572947, specs=0xa95758, spec=...) at ../../src/gcc/c-decl.c:8780 #4 0x000b8d24 in c_parser_declspecs (parser=0x40824b60, specs=0xa95758, scspec_ok=<value optimized out>, typespec_ok=<value optimized out>, start_attr_ok=1 '\001', la=cla_nonabstract_decl) at ../../src/gcc/c-parser.c:2090 #5 0x000b9c80 in c_parser_parameter_declaration (parser=0x40824b60, attrs=<value optimized out>) at ../../src/gcc/c-parser.c:3230 #6 0x000b9f84 in c_parser_parms_list_declarator (parser=0x40824b60, id_list_ok=<value optimized out>, attrs=<value optimized out>) at ../../src/gcc/c-parser.c:3137 #7 c_parser_parms_declarator (parser=0x40824b60, id_list_ok=<value optimized out>, attrs=<value optimized out>) at ../../src/gcc/c-parser.c:3085 #8 0x000ba51c in c_parser_direct_declarator_inner (parser=0x40824b60, id_present=<value optimized out>, inner=0xa95738) at ../../src/gcc/c-parser.c:3015 #9 0x000b13b0 in c_parser_declaration_or_fndef (parser=0x40824b60, fndef_ok=1 '\001', static_assert_ok=<value optimized out>, empty_ok=<value optimized out>, nested=0 '\000', start_attr_ok=1 '\001', objc_foreach_object_declaration=0x0) at ../../src/gcc/c-parser.c:1576 #10 0x000bd2d4 in c_parser_external_declaration (parser=0x40824b60) at ../../src/gcc/c-parser.c:1332 #11 0x000bdfdc in c_parser_translation_unit () at ../../src/gcc/c-parser.c:1220 #12 c_parse_file () at ../../src/gcc/c-parser.c:9950 #13 0x000eb36c in c_common_parse_file () at ../../src/gcc/c-family/c-opts.c:1077 #14 0x00333650 in compile_file (argc=11085600, argv=0x40024de0) at ../../src/gcc/toplev.c:579 #15 do_compile (argc=11085600, argv=0x40024de0) at ../../src/gcc/toplev.c:1900 #16 toplev_main (argc=11085600, argv=0x40024de0) at ../../src/gcc/toplev.c:1963 #17 0x000f94e0 in main (argc=<value optimized out>, argv=<value optimized out>) at ../../src/gcc/main.c:36 (gdb) p buffer $1 = (output_buffer *) 0x204f5349 (gdb) p buffer->chunk_obstack Cannot access memory at address 0x204f5375