Skip to contentSkip to conversation

Segfault when building jade

parisc-linux Randolph Chung 1 participant 1 message Apr 19, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 10 lines
Category:       c++
Synopsis:       [3.3 regression] [hppa] Segfault when building jade
Confidential:   no
Severity:       serious
Priority:       medium
Class:          ice-on-legal-code
Submitter-Id:   net
Originator:     Randolph Chung <[email protected]>
Release:        gcc version 3.3 20030412 (Debian prerelease)

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)
Quoted 1 line

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.

Quoted 1 line

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 { };
};
Quoted 3 lines

Fix:

Unformatted: