This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17801] New: segfault in perform_or_defer_access_check


current gcc cant compile kdelibs.

olaf@pomegranate:~/toolchain/obj/gcc-head-2004-10-03/obj> gdb /home/olaf/toolchain/obj/gcc-head-2004-10-03/inst/libexec/gcc/powerpc-unknown-linux-gnu/4.0.0/cc1plus
GNU gdb 6.1
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ppc-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".

(gdb) r -fpreprocessed /tmp/fileprops.ii -quiet -dumpbase fileprops.cpp -ansi -auxbase-strip kio/misc/kfile/fileprops.o -O2 -O2 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wall -Wformat-security -Wmissing-format-attribute -ansi -version -fsigned-char -fmessage-length=0 -fno-exceptions -fno-check-new -fno-common -o /tmp/fileprops.s
Starting program: /home/olaf/toolchain/obj/gcc-head-2004-10-03/inst/libexec/gcc/powerpc-unknown-linux-gnu/4.0.0/cc1plus -fpreprocessed /tmp/fileprops.ii -quiet -dumpbase fileprops.cpp -ansi -auxbase-strip kio/misc/kfile/fileprops.o -O2 -O2 -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wall -Wformat-security -Wmissing-format-attribute -ansi -version -fsigned-char -fmessage-length=0 -fno-exceptions -fno-check-new -fno-common -o /tmp/fileprops.s
GNU C++ version 4.0.0 20041003 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 3.3.3 (SuSE Linux).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal SIGSEGV, Segmentation fault.
perform_or_defer_access_check (binfo=0x0, decl=0x4186c680) at /home/olaf/toolchain/src/gcc-head/gcc/cp/semantics.c:311
311       gcc_assert (TREE_CODE (binfo) == TREE_BINFO);
(gdb) bt
#0  perform_or_defer_access_check (binfo=0x0, decl=0x4186c680) at /home/olaf/toolchain/src/gcc-head/gcc/cp/semantics.c:311
#1  0x100102a0 in build_over_call (cand=0x108159c8, flags=3) at /home/olaf/toolchain/src/gcc-head/gcc/cp/call.c:4619
#2  0x10015dd0 in build_new_function_call (fn=0x41431030, args=0x41437f18) at /home/olaf/toolchain/src/gcc-head/gcc/cp/call.c:2767
#3  0x100ebe04 in finish_call_expr (fn=0x41431030, args=0x41437f18, disallow_virtual=0 '\0', koenig_p=1 '\001')
    at /home/olaf/toolchain/src/gcc-head/gcc/cp/semantics.c:1782
#4  0x100ab958 in cp_parser_unary_expression (parser=0x4127fab8, address_p=0 '\0') at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:4126
#5  0x100ac154 in cp_parser_assignment_expression (parser=0x4127fab8) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:5346
#6  0x100ad054 in cp_parser_expression (parser=0x4127fab8) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:5641
#7  0x100ad350 in cp_parser_expression_statement (parser=0x4127fab8, in_statement_expr=0x0) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6038
#8  0x100a6dd8 in cp_parser_statement (parser=0x4127fab8, in_statement_expr=0x0) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:5922
#9  0x100a740c in cp_parser_statement_seq_opt (parser=0x4127fab8, in_statement_expr=0x0) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6104
#10 0x100a74e4 in cp_parser_compound_statement (parser=0x4127fab8, in_statement_expr=0x0, in_try=136 '\210')
    at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6077
#11 0x100a75d8 in cp_parser_ctor_initializer_opt_and_function_body (parser=0x4127fab8) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:11902
#12 0x100a7a70 in cp_parser_function_definition_after_declarator (parser=0x4127fab8, inline_p=1 '\001') at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:14714
#13 0x100a9070 in cp_parser_type_specifier (parser=0x4127fab8, flags=CP_PARSER_FLAGS_NONE, decl_specs=0xffffdbd0, is_declaration=1 '\001',
    declares_class_or_enum=0xffffdb8c, is_cv_qualifier=0x0) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:15123
#14 0x100a9508 in cp_parser_decl_specifier_seq (parser=0x4127fab8, flags=CP_PARSER_FLAGS_OPTIONAL, decl_specs=0xffffdbd0, declares_class_or_enum=0xffffdc24)
    at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:7208
#15 0x100b3010 in cp_parser_simple_declaration (parser=0x4127fab8, function_definition_allowed_p=1 '\001') at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6904
#16 0x100a6574 in cp_parser_block_declaration (parser=0x4127fab8, statement_p=0 '\0') at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6865
#17 0x100b49d0 in cp_parser_declaration (parser=0x4127fab8) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6782
#18 0x100b4dec in cp_parser_declaration_seq_opt (parser=0x4127fab8) at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:6686
#19 0x100b5134 in c_parse_file () at /home/olaf/toolchain/src/gcc-head/gcc/cp/parser.c:2633
#20 0x1014c14c in c_common_parse_file (set_yydebug=0) at /home/olaf/toolchain/src/gcc-head/gcc/c-opts.c:1097
#21 0x1044f380 in toplev_main (argc=274069192, argv=0x10700000) at /home/olaf/toolchain/src/gcc-head/gcc/toplev.c:985
#22 0x10159b30 in main (argc=0, argv=0x4186c680) at /home/olaf/toolchain/src/gcc-head/gcc/main.c:35

-- 
           Summary: segfault in perform_or_defer_access_check
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olh at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-linux
  GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]