public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10438: [3.3 regression] [hppa] Segfault when building jade
@ 2003-04-19 15:06 Giovanni Bajo
  0 siblings, 0 replies; 4+ messages in thread
From: Giovanni Bajo @ 2003-04-19 15:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/10438; it has been noted by GNATS.

From: "Giovanni Bajo" <giovannibajo@libero.it>
To: <gcc-gnats@gcc.gnu.org>,
	<parisc-linux@lists.parisc-linux.org>,
	<tausq@debian.org>,
	<gcc-bugs@gcc.gnu.org>,
	<debian-gcc@lists.debian.org>,
	<nobody@gcc.gnu.org>,
	<gcc-prs@gcc.gnu.org>
Cc: "Wolfgang Bangerth" <bangerth@ices.utexas.edu>
Subject: Re: c++/10438: [3.3 regression] [hppa] Segfault when building jade
Date: Sat, 19 Apr 2003 17:05:11 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
 r=10438
 
 Confirmed. Slightly reduced testcase:
 
 --------------------------------
 struct Foo
 {
     struct Nested1
     {
         enum E
         {
             v1,v2,v3,v4,v5,v6
         } E;
     };
 
     struct Nested2 : public Nested1
     {};
 };
 
 --------------------------------
 pr10438.cpp:12: internal compiler error: Segmentation fault
 Please submit a full bug report,
 
 
 It looks like a memory corruption bug, while playing with it I had the ICE
 on and off simply by changing variable names. You can also see that the ICE
 disappears if you remove some elements from within the enum. It seems that
 the culript is the variable defined with the same name of the enum type.
 
 It's a regression on 3.3 and 3.4 with respect to 3.2, where it compiles
 fine.
 
 Giovanni Bajo
 


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

* Re: c++/10438: [3.3 regression] [hppa] Segfault when building jade
@ 2003-04-20 17:49 nathan
  0 siblings, 0 replies; 4+ messages in thread
From: nathan @ 2003-04-20 17:49 UTC (permalink / raw)
  To: debian-gcc, gcc-bugs, gcc-prs, nathan, nobody, parisc-linux, tausq

Synopsis: [3.3 regression] [hppa] Segfault when building jade

Responsible-Changed-From-To: unassigned->nathan
Responsible-Changed-By: nathan
Responsible-Changed-When: Sun Apr 20 17:49:23 2003
Responsible-Changed-Why:
    fixed
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sun Apr 20 17:49:23 2003
State-Changed-Why:
    dup of 10405

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10438


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

* Re: c++/10438: [3.3 regression] [hppa] Segfault when building jade
@ 2003-04-19 15:36 Randolph Chung
  0 siblings, 0 replies; 4+ messages in thread
From: Randolph Chung @ 2003-04-19 15:36 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/10438; it has been noted by GNATS.

From: Randolph Chung <tausq@debian.org>
To: Giovanni Bajo <giovannibajo@libero.it>
Cc: gcc-gnats@gcc.gnu.org, parisc-linux@lists.parisc-linux.org,
	gcc-bugs@gcc.gnu.org, debian-gcc@lists.debian.org,
	nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org,
	Wolfgang Bangerth <bangerth@ices.utexas.edu>
Subject: Re: c++/10438: [3.3 regression] [hppa] Segfault when building jade
Date: Sat, 19 Apr 2003 08:30:56 -0700

 > Confirmed. Slightly reduced testcase:
 
 Thanks. 
 
 Running under gdb, I see:
 
 (gdb) run bug.cxx
 Starting program: /home/tausq/gcc/build-3.3/gcc/cc1plus bug.cxx
 
 Program received signal SIGSEGV, Segmentation fault.
 setup_class_bindings (name=0x401c9780, type_binding_p=1)
     at ../../gcc-3.3/gcc/cp/search.c:2560
 2560          if (TREE_CODE (type_binding) == TREE_LIST
 (gdb) bt
 #0  setup_class_bindings (name=0x401c9780, type_binding_p=1)
     at ../../gcc-3.3/gcc/cp/search.c:2560
 #1  0x00094410 in dfs_push_type_decls (binfo=0x401c9b40, data=0x401cf010)
     at ../../gcc-3.3/gcc/cp/search.c:2615
 #2  0x00092f50 in dfs_walk_real (binfo=0x401c9b40, prefn=0,
     postfn=0x362c0e <__JCR_LIST__+486>, qfn=0x362bde <__JCR_LIST__+438>,
     data=0x0) at ../../gcc-3.3/gcc/cp/search.c:1911
 [...]
 
 type_binding is NULL after lookup_member()...
 
 randolph
 -- 
 Randolph Chung
 Debian GNU/Linux Developer, hppa/ia64 ports
 http://www.tausq.org/


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

* c++/10438: [3.3 regression] [hppa] Segfault when building jade
@ 2003-04-19  5:16 Randolph Chung
  0 siblings, 0 replies; 4+ messages in thread
From: Randolph Chung @ 2003-04-19  5:16 UTC (permalink / raw)
  To: gcc-gnats; +Cc: parisc-linux, debian-gcc


>Number:         10438
>Category:       c++
>Synopsis:       [3.3 regression] [hppa] Segfault when building jade
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 19 05:16:01 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Randolph Chung <tausq@debian.org>
>Release:        gcc version 3.3 20030412 (Debian prerelease)
>Organization:
>Environment:
tausq@ios:~$ uname -a
Linux ios 2.5.67-pa4 #79 Wed Apr 16 20:16:49 PDT 2003 parisc64 unknown unknown GNU/Linux
tausq@ios:~$ g++ -v
Reading specs from /usr/lib/gcc-lib/hppa-linux/3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-sjlj-exceptions --enable-clocale=gnu --enable-debug --enable-objc-gc hppa-linux
Thread model: posix
gcc version 3.3 20030412 (Debian prerelease)
>Description:
Building the code below gives:

tausq@ios:~/debian/jade-1.2.1/jade$ g++ -v -c bug.cxx
Reading specs from /usr/lib/gcc-lib/hppa-linux/3.3/specs
Configured with: ../src/configure -v --enable-languages=c,c++,f77,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-sjlj-exceptions --enable-clocale=gnu --enable-debug --enable-objc-gc hppa-linux
Thread model: posix
gcc version 3.3 20030412 (Debian prerelease)
 /usr/lib/gcc-lib/hppa-linux/3.3/cc1plus -quiet -v -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D_GNU_SOURCE bug.cxx -D__GNUG__=3 -quiet -dumpbase bug.cxx -auxbase bug -version -o /tmp/ccExza7t.s
GNU C++ version 3.3 20030412 (Debian prerelease) (hppa-linux)
        compiled by GNU C version 3.3 20030412 (Debian prerelease).
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/hppa-linux/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/3.3
 /usr/include/c++/3.3/hppa-linux
 /usr/include/c++/3.3/backward
 /usr/local/include
 /usr/lib/gcc-lib/hppa-linux/3.3/include
 /usr/include
End of search list.
bug.cxx:14: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

The code builds fine with g++-3.2.

This test case was extracted from the MifFOTBuilder.cxx file from the jade package.
>How-To-Repeat:
g++ -c bug.cxx

--------------8< bug.cxx 8<----------------
template<class T> class String { };

class MifDoc {
  public:
    struct T_string : public String<char> { };
    typedef T_string        T_tagstring;

    struct TagStream {
        enum TagStreamClass { tsTagStream, tsTextFlow, tsCell, tsPara } TagStreamClass;

        T_tagstring InitialPgfTag;
    };

    struct TextFlow : public TagStream { };
};

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-04-20 17:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-19 15:06 c++/10438: [3.3 regression] [hppa] Segfault when building jade Giovanni Bajo
  -- strict thread matches above, loose matches on Subject: below --
2003-04-20 17:49 nathan
2003-04-19 15:36 Randolph Chung
2003-04-19  5:16 Randolph Chung

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