[Bug c++/64727] [5 Regression] g++.dg/torture/darwin-cfstring-3.C:11:80: internal compiler error: Segmentation fault: 11

howarth at bromo dot med.uc.edu gcc-bugzilla@gcc.gnu.org
Thu Jan 22 18:43:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64727

--- Comment #10 from howarth at bromo dot med.uc.edu ---
This ICE for "FAIL: g++.dg/torture/darwin-cfstring-3.C   -O0" backtraces as...

% lldb
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus
(lldb) target create
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus"
Current executable set to
'/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus'
(x86_64).
(lldb) r -quiet -nostdinc++ -v -I
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include/x86_64-apple-darwin14.1.0
-I
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include
-I /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/libsupc++ -I
/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/include/backward
-I
/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/testsuite/util
-iprefix
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/
-isystem
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include
-isystem
/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include-fixed
-D__DYNAMIC__
/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/gcc/testsuite/g++.dg/torture/darwin-cfstring-3.C
-fPIC -quiet -dumpbase darwin-cfstring-3.C -mmacosx-version-min=10.10.1
-mconstant-cfstrings -m64 -mtune=core2 -auxbase-strip darwin-cfstring-3.s -O0
-version -fno-diagnostics-show-caret -fdiagnostics-color=never
-fmessage-length=0 -o darwin-cfstring-3.s
Process 97821 launched:
'/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../cc1plus'
(x86_64)
GNU C++ (GCC) version 5.0.0 20150122 (experimental) (x86_64-apple-darwin14.1.0)
    compiled by GNU C version 5.0.0 20150122 (experimental), GMP version 6.0.0,
MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include"
ignoring nonexistent directory
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include-fixed"
ignoring nonexistent directory
"/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/../lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/../../../../x86_64-apple-darwin14.1.0/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/sw/lib/gcc5.0/lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/../../../../x86_64-apple-darwin14.1.0/include"
#include "..." search starts here:
#include <...> search starts here:

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include/x86_64-apple-darwin14.1.0

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/x86_64-apple-darwin14.1.0/libstdc++-v3/include
 /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/libsupc++

/sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/include/backward
 /sw/src/fink.build/gcc50-5.0.0-1000/gcc-5-20150121/libstdc++-v3/testsuite/util

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include

/sw/src/fink.build/gcc50-5.0.0-1000/darwin_objdir/gcc/testsuite/g++/../../include-fixed
 /sw/lib/gcc5.0/lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include
 /sw/lib/gcc5.0/include
 /sw/lib/gcc5.0/lib/gcc/x86_64-apple-darwin14.1.0/5.0.0/include-fixed
 /usr/include
 /System/Library/Frameworks
 /Library/Frameworks
End of search list.
GNU C++ (GCC) version 5.0.0 20150122 (experimental) (x86_64-apple-darwin14.1.0)
    compiled by GNU C version 5.0.0 20150122 (experimental), GMP version 6.0.0,
MPFR version 3.1.2, MPC version 1.0.2
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 73eb99ceace32769122060efa78397a6
Process 97821 stopped
* thread #1: tid = 0x1b316f, 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372, queue
= 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372
   6369    void
   6370    used_types_insert (tree t)
   6371    {
-> 6372      while (POINTER_TYPE_P (t) || TREE_CODE (t) == ARRAY_TYPE)
   6373        if (TYPE_NAME (t))
   6374          break;
   6375        else
(lldb) bt
* thread #1: tid = 0x1b316f, 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372, queue
= 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000100805551
cc1plus`used_types_insert(t=0x0000000000000000) + 17 at function.c:6372
    frame #1: 0x0000000100101e4d cc1plus`mark_used(decl=0x000000014261e1c0,
complain=3) + 429 at decl2.c:4938
    frame #2: 0x000000010018d595
cc1plus`constant_value_1(decl=0x000000014261e1c0, strict_p=false,
return_aggregate_cst_ok_p=true) + 101 at init.c:2035
    frame #3: 0x00000001002414fd
cc1plus`cxx_eval_constant_expression(ctx=0x00007fff5fbfeaa0,
t=0x000000014261e1c0, lval=<unavailable>, non_constant_p=0x00007fff5fbfea9e,
overflow_p=0x00007fff5fbfea9f, jump_target=0x0000000000000000) + 6861 at
constexpr.c:2965
    frame #4: 0x0000000100240380
cc1plus`cxx_eval_constant_expression(ctx=0x00007fff5fbfeaa0,
t=0x00000001427812e0, lval=<unavailable>, non_constant_p=0x00007fff5fbfea9e,
overflow_p=0x00007fff5fbfea9f, jump_target=<unavailable>) + 2384 at
constexpr.c:3153
    frame #5: 0x0000000100240b48
cc1plus`cxx_eval_constant_expression(ctx=0x00007fff5fbfeaa0,
t=0x0000000142781300, lval=<unavailable>, non_constant_p=0x00007fff5fbfea9e,
overflow_p=0x00007fff5fbfea9f, jump_target=0x0000000000000000) + 4376 at
constexpr.c:3346
    frame #6: 0x0000000100245ea6
cc1plus`cxx_eval_outermost_constant_expr(t=0x0000000142781300,
allow_non_constant=<unavailable>, strict=<unavailable>,
object=0x000000014260ecf0) + 358 at constexpr.c:3512
    frame #7: 0x000000010024983e
cc1plus`maybe_constant_init(t=0x0000000142781300, decl=0x000000014260ecf0) +
174 at constexpr.c:3716
    frame #8: 0x00000001000c884f
cc1plus`store_init_value(decl=0x000000014260ecf0, init=<unavailable>,
cleanups=<unavailable>, flags=<unavailable>) + 495 at typeck2.c:833
    frame #9: 0x0000000100053286
cc1plus`check_initializer(decl=0x000000014260ecf0, init=0x0000000142781300,
flags=5, cleanups=0x00007fff5fbfec40) + 422 at decl.c:5982
    frame #10: 0x00000001000550fe
cc1plus`cp_finish_decl(decl=0x000000014260ecf0, init=0x0000000142781300,
init_const_expr_p=<unavailable>, asmspec_tree=<unavailable>,
flags=<unavailable>) + 3374 at decl.c:6618
    frame #11: 0x000000010014bf60
cc1plus`cp_parser_init_declarator(parser=0x0000000142783000,
decl_specifiers=0x00007fff5fbfed80, checks=0x0000000000000000,
function_definition_allowed_p=<unavailable>, member_p=<unavailable>,
declares_class_or_enum=<unavailable>, function_definition_p=0x00007fff5fbfed77,
maybe_range_for_decl=0x0000000000000000, init_loc=0x00007fff5fbfed7c) + 2000 at
parser.c:17291
    frame #12: 0x000000010014d9be
cc1plus`cp_parser_simple_declaration(parser=0x0000000142783000,
function_definition_allowed_p=true, maybe_range_for_decl=0x0000000000000000) +
558 at parser.c:11601
    frame #13: 0x000000010014dd34
cc1plus`cp_parser_block_declaration(parser=0x0000000142783000,
statement_p=<unavailable>) + 116 at parser.c:11475
    frame #14: 0x000000010015787a
cc1plus`cp_parser_declaration(parser=0x0000000142783000) + 442 at
parser.c:11372
    frame #15: 0x0000000100157acd
cc1plus`cp_parser_declaration_seq_opt(parser=0x0000000142783000) + 125 at
parser.c:11258
    frame #16: 0x0000000100157e22 cc1plus`c_parse_file() + 22 at parser.c:4109
    frame #17: 0x0000000100157e0c cc1plus`c_parse_file() + 604
    frame #18: 0x00000001002a2b96 cc1plus`c_common_parse_file() + 246 at
c-opts.c:1052
    frame #19: 0x0000000100b6ffec cc1plus`compile_file + 44 at toplev.c:592
    frame #20: 0x0000000100fe9be0 cc1plus`toplev::main(int, char**) + 1292 at
toplev.c:2045
    frame #21: 0x0000000100fe96d4 cc1plus`toplev::main(this=<unavailable>,
argc=39, argv=0x00007fff5fbff080) + 788
    frame #22: 0x0000000100fea83c cc1plus`main(argc=<unavailable>,
argv=<unavailable>) + 44 at main.c:38
    frame #23: 0x00007fff94ce75c9 libdyld.dylib`start + 1
(lldb)



More information about the Gcc-bugs mailing list