public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17801] New: segfault in perform_or_defer_access_check
@ 2004-10-03  8:39 olh at suse dot de
  2004-10-03  8:39 ` [Bug c++/17801] " olh at suse dot de
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: olh at suse dot de @ 2004-10-03  8:39 UTC (permalink / raw)
  To: gcc-bugs

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


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

* [Bug c++/17801] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
@ 2004-10-03  8:39 ` olh at suse dot de
  2004-10-03 14:49 ` [Bug c++/17801] [4.0 Regression] " pinskia at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: olh at suse dot de @ 2004-10-03  8:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From olh at suse dot de  2004-10-03 08:39 -------
Created an attachment (id=7262)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=7262&action=view)
fileprops.ii.bz2


-- 


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


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

* [Bug c++/17801] [4.0 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
  2004-10-03  8:39 ` [Bug c++/17801] " olh at suse dot de
@ 2004-10-03 14:49 ` pinskia at gcc dot gnu dot org
  2004-10-03 16:03 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-03 14:49 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |critical
           Keywords|                            |ice-on-valid-code
            Summary|segfault in                 |[4.0 Regression] segfault in
                   |perform_or_defer_access_chec|perform_or_defer_access_chec
                   |k                           |k
   Target Milestone|---                         |4.0.0


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


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

* [Bug c++/17801] [4.0 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
  2004-10-03  8:39 ` [Bug c++/17801] " olh at suse dot de
  2004-10-03 14:49 ` [Bug c++/17801] [4.0 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-03 16:03 ` pinskia at gcc dot gnu dot org
  2004-10-03 16:08 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-03 16:03 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-03 16:03 -------
Confirmed, reduced to:
typedef long unsigned int size_t;
__extension__ typedef int __ssize_t;
typedef __ssize_t ssize_t;
extern ssize_t read (int __fd, void *__buf, size_t __nbytes);
     
struct QString
{
    QString();
};
class QDataStream;
struct KSycocaEntry
{
   static void read( QDataStream &s, QString &str );
   KSycocaEntry( QDataStream &_str, int offset )
   {
     read(_str, mPath);
   }
   QString mPath;
}; 

: Search converges between 2004-09-27-014001-trunk (#563) and 2004-09-27-161002-trunk 
(#564).

A recent regression.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-10-03 16:03:02
               date|                            |


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


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

* [Bug c++/17801] [4.0 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (2 preceding siblings ...)
  2004-10-03 16:03 ` pinskia at gcc dot gnu dot org
@ 2004-10-03 16:08 ` pinskia at gcc dot gnu dot org
  2004-10-03 18:47 ` [Bug c++/17801] [3.4/4.0 " pinskia at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-03 16:08 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-03 16:08 -------
Here the reduced a little further:
extern int read (int __fd, void *__buf, int __nbytes);
class QString{};
struct KSycocaEntry
{
   static void read( int &s, QString &str );
   KSycocaEntry( int &_str, int offset )
   {
     read(_str, mPath);
   }
   QString mPath;
};

-- 


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


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

* [Bug c++/17801] [3.4/4.0 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (3 preceding siblings ...)
  2004-10-03 16:08 ` pinskia at gcc dot gnu dot org
@ 2004-10-03 18:47 ` pinskia at gcc dot gnu dot org
  2004-10-03 18:49 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-03 18:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-03 18:47 -------
Also a 3.4 regression:
: Search converges between 2004-09-27-004002-3.4 (#82) and 2004-09-28-004001-3.4 (#83).

Caused by the patch which fixed PR 17585.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org
      Known to fail|                            |3.4.3 4.0.0
      Known to work|                            |3.4.2
            Summary|[4.0 Regression] segfault in|[3.4/4.0 Regression]
                   |perform_or_defer_access_chec|segfault in
                   |k                           |perform_or_defer_access_chec
                   |                            |k
   Target Milestone|4.0.0                       |3.4.3


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


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

* [Bug c++/17801] [3.4/4.0 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (4 preceding siblings ...)
  2004-10-03 18:47 ` [Bug c++/17801] [3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-03 18:49 ` pinskia at gcc dot gnu dot org
  2004-10-05 16:55 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-03 18:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-03 18:49 -------
*** Bug 17812 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bero at arklinux dot org


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


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

* [Bug c++/17801] [3.4/4.0 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (5 preceding siblings ...)
  2004-10-03 18:49 ` pinskia at gcc dot gnu dot org
@ 2004-10-05 16:55 ` pinskia at gcc dot gnu dot org
  2004-10-05 19:19 ` [Bug c++/17801] [3.4 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 16:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-05 16:55 -------
*** Bug 17846 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu dot org


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


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

* [Bug c++/17801] [3.4 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (6 preceding siblings ...)
  2004-10-05 16:55 ` pinskia at gcc dot gnu dot org
@ 2004-10-05 19:19 ` pinskia at gcc dot gnu dot org
  2004-10-06 15:26 ` nathan at gcc dot gnu dot org
  2004-10-08 17:43 ` giovannibajo at libero dot it
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-05 19:19 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-05 19:19 -------
Fixed on the mainline by the patch which fixed PR 17829.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |17829
            Summary|[3.4/4.0 Regression]        |[3.4 Regression] segfault in
                   |segfault in                 |perform_or_defer_access_chec
                   |perform_or_defer_access_chec|k
                   |k                           |


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


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

* [Bug c++/17801] [3.4 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (7 preceding siblings ...)
  2004-10-05 19:19 ` [Bug c++/17801] [3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-06 15:26 ` nathan at gcc dot gnu dot org
  2004-10-08 17:43 ` giovannibajo at libero dot it
  9 siblings, 0 replies; 11+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-10-06 15:26 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From nathan at gcc dot gnu dot org  2004-10-06 15:26 -------
Same problem a 17829 -- we were incorrectly doing koenig lookup, and then getting
confused.

*** This bug has been marked as a duplicate of 17829 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE


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


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

* [Bug c++/17801] [3.4 Regression] segfault in perform_or_defer_access_check
  2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
                   ` (8 preceding siblings ...)
  2004-10-06 15:26 ` nathan at gcc dot gnu dot org
@ 2004-10-08 17:43 ` giovannibajo at libero dot it
  9 siblings, 0 replies; 11+ messages in thread
From: giovannibajo at libero dot it @ 2004-10-08 17:43 UTC (permalink / raw)
  To: gcc-bugs



-- 
Bug 17801 depends on bug 17829, which changed state.

Bug 17829 Summary: [3.4 Regression] wrong error: call of  overloaded function is ambiguous
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17829

           What    |Old Value                   |New Value
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

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


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

end of thread, other threads:[~2004-10-08 17:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-03  8:39 [Bug c++/17801] New: segfault in perform_or_defer_access_check olh at suse dot de
2004-10-03  8:39 ` [Bug c++/17801] " olh at suse dot de
2004-10-03 14:49 ` [Bug c++/17801] [4.0 Regression] " pinskia at gcc dot gnu dot org
2004-10-03 16:03 ` pinskia at gcc dot gnu dot org
2004-10-03 16:08 ` pinskia at gcc dot gnu dot org
2004-10-03 18:47 ` [Bug c++/17801] [3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-03 18:49 ` pinskia at gcc dot gnu dot org
2004-10-05 16:55 ` pinskia at gcc dot gnu dot org
2004-10-05 19:19 ` [Bug c++/17801] [3.4 " pinskia at gcc dot gnu dot org
2004-10-06 15:26 ` nathan at gcc dot gnu dot org
2004-10-08 17:43 ` giovannibajo at libero dot it

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).