public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/36851]  New: [4.4 regression] cc1plus SEGV compiling strstream.cc on Tru64 UNIX
@ 2008-07-16 16:11 ro at gcc dot gnu dot org
  2008-07-22 12:06 ` [Bug bootstrap/36851] " ro at gcc dot gnu dot org
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: ro at gcc dot gnu dot org @ 2008-07-16 16:11 UTC (permalink / raw)
  To: gcc-bugs

Bootstrapping mainline on Tru64 UNIX V5.1B fails as of 20080613:

libtool: compile:  /vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/./gcc/xgcc
-shared-libgcc -B/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/./gcc -nostdinc++
-L/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/src
-L/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/src/.libs
-B/vol/gcc/alpha-dec-osf5.1b/bin/ -B/vol/gcc/alpha-dec-osf5.1b/lib/ -isystem
/vol/gcc/alpha-dec-osf5.1b/include -isystem
/vol/gcc/alpha-dec-osf5.1b/sys-include
-I/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/include/alpha-dec-osf5.1b
-I/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/include
-I/vol/gccsrc/src/gcc-dist/libstdc++-v3/libsupc++ -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -g -O2
-mieee
-I/vol/gccsrc/obj/gcc-4.4.0-20080613/5.1b-gcc/alpha-dec-osf5.1b/libstdc++-v3/include/backward
-Wno-deprecated -c /vol/gcc/src/gcc-dist/libstdc++-v3/src/strst!
 ream.cc  -DPIC -o .libs/strstream.o
/vol/gcc/src/gcc-dist/libstdc++-v3/src/strstream.cc: In member function 'void
std::ostrstream::_ZTv0_n24_NSt10ostrstreamD0Ev()':
/vol/gcc/src/gcc-dist/libstdc++-v3/src/strstream.cc:419: internal compiler
error: Segmentation fault

Running cc1plus on strstream.ii under gdb reveals:

virtual std::strstream::~strstream()
Program received signal SIGSEGV, Segmentation fault.
alpha_end_function (file=0x300408000f8, fnname=0xe337c0
"_ZTv0_n24_NSt9strstreamD0Ev", decl=0xe8cc30) at
/vol/gcc/src/gcc-dist/gcc/config/alpha/alpha.c:8216
(gdb) where
#0  alpha_end_function (file=0x300408000f8, fnname=0xe337c0
"_ZTv0_n24_NSt9strstreamD0Ev", decl=0xe8cc30) at
/vol/gcc/src/gcc-dist/gcc/config/alpha/alpha.c:8216
#1  0x00000001203c9450 in assemble_end_function (decl=0xe8cc30,
fnname=0x14003e900 "") at /vol/gcc/src/gcc-dist/gcc/varasm.c:1775
#2  0x00000001201f3e70 in use_thunk (thunk_fndecl=0xe8cc30, emit_p=64 '@') at
/vol/gcc/src/gcc-dist/gcc/cp/method.c:446
#3  0x0000000120202914 in emit_associated_thunks (fn=0x1402f3a60) at
/vol/gcc/src/gcc-dist/gcc/cp/semantics.c:3144
#4  0x000000012047ca98 in cgraph_expand_function (node=0x10d2800) at
/vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1147
#5  0x000000012048041c in cgraph_optimize () at
/vol/gcc/src/gcc-dist/gcc/cgraphunit.c:1211
#6  0x0000000120170564 in cp_write_global_declarations () at
/vol/gcc/src/gcc-dist/gcc/cp/decl2.c:3524
#7  0x00000001204a1e3c in toplev_main (argc=1073993808, argv=0x140042f00) at
/vol/gcc/src/gcc-dist/gcc/toplev.c:976
#8  0x00000001202c9b98 in main (argc=1082130680, argv=0xe337c0) at
/vol/gcc/src/gcc-dist/gcc/main.c:35

void
alpha_end_function (FILE *file, const char *fnname, tree decl ATTRIBUTE_UNUSED)
{
  rtx insn;

  /* We output a nop after noreturn calls at the very end of the function to
     ensure that the return address always remains in the caller's code range,
     as not doing so might confuse unwinding engines.  */
  insn = get_last_insn ();
  if (!INSN_P (insn))
    insn = prev_active_insn (insn);

insn is NULL at INSN_P (insn).

A reghunt reveals that this patch is the culprit:

2008-04-01  Jan Hubicka  <jh@suse.cz>

       * function.c (free_after_compilation): Free epilogue_delay_list.
       (prepare_function_start): Assert that previous compilation was freed.

Jan, would you please have a look?

  Rainer


-- 
           Summary: [4.4 regression] cc1plus SEGV compiling strstream.cc on
                    Tru64 UNIX
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: bootstrap
        AssignedTo: hubicka at gcc dot gnu dot org
        ReportedBy: ro at gcc dot gnu dot org
 GCC build triplet: alpha-dec-osf5.1b
  GCC host triplet: alpha-dec-osf5.1b
GCC target triplet: alpha-dec-osf5.1b


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


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

end of thread, other threads:[~2010-04-22 16:44 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-16 16:11 [Bug bootstrap/36851] New: [4.4 regression] cc1plus SEGV compiling strstream.cc on Tru64 UNIX ro at gcc dot gnu dot org
2008-07-22 12:06 ` [Bug bootstrap/36851] " ro at gcc dot gnu dot org
2008-08-01 14:28 ` ro at gcc dot gnu dot org
2008-08-01 16:07 ` [Bug target/36851] " rguenth at gcc dot gnu dot org
2008-08-01 16:23 ` ro at gcc dot gnu dot org
2008-08-01 16:25 ` ro at techfak dot uni-bielefeld dot de
2008-08-02 10:50 ` jh at suse dot cz
2008-08-02 11:33 ` jh at suse dot cz
2008-08-08 22:46 ` mmitchel at gcc dot gnu dot org
2008-09-09 16:46 ` ro at techfak dot uni-bielefeld dot de
2008-09-30 15:40 ` ro at gcc dot gnu dot org
2008-10-31 13:28 ` ro at techfak dot uni-bielefeld dot de
2008-12-27  6:36 ` pinskia at gcc dot gnu dot org
2009-01-05 18:34 ` ro at techfak dot uni-bielefeld dot de
2009-01-05 20:01 ` hubicka at gcc dot gnu dot org
2009-01-06 14:29 ` ro at techfak dot uni-bielefeld dot de
2009-04-21 15:59 ` [Bug target/36851] [4.4/4.5 " jakub at gcc dot gnu dot org
2009-07-22 10:35 ` jakub at gcc dot gnu dot org
2009-10-15 12:56 ` jakub at gcc dot gnu dot org
2010-01-21 13:19 ` jakub at gcc dot gnu dot org
2010-04-22 16:44 ` [Bug target/36851] [4.4/4.5/4.6 " ro at gcc dot gnu dot org

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