public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43956]  New: g++: internal compiler error: Segmentation fault with -flto and -g flags
@ 2010-05-01 22:50 andrej dot gelenberg at udo dot edu
  2010-05-01 22:52 ` [Bug c++/43956] " andrej dot gelenberg at udo dot edu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: andrej dot gelenberg at udo dot edu @ 2010-05-01 22:50 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4216 bytes --]

How to reproduce:
g++ -flto -g -c mailtool.i
mailtool.C: In member function ‘doUploadMessage(mail::ACCOUNT*,
mail::folder*)::uploadMessage::getMessageContents()’:
mailtool.C:493:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

$ gcc --version -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/lto-wrapper
gcc (GCC) 4.5.0
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/usr
--enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-lto
--enable-gnu-unique-object --disable-multilib --disable-libstdcxx-pch
--with-system-zlib --with-ppl --with-cloog --libdir=/usr/lib
--libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info
Thread model: posix
gcc version 4.5.0 (GCC) 
COLLECT_GCC_OPTIONS='-fversion' '-v' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1 -quiet -v help-dummy -quiet
-dumpbase help-dummy -mtune=generic -march=x86-64 -auxbase help-dummy -version
-fversion -o /tmp/ccJiy7Su.s
GNU C (GCC) version 4.5.0 (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.5.0, GMP version 5.0.1, MPFR version 2.4.2,
MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-fversion' '-v' '-mtune=generic' '-march=x86-64'
 as -V -Qy --64 --version -o /tmp/cclcox9G.o /tmp/ccJiy7Su.s
GNU assembler version 2.20.1 (x86_64-unknown-linux-gnu) using BFD version (GNU
Binutils) 2.20.1.20100318
GNU assembler (GNU Binutils) 2.20.1.20100318
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-unknown-linux-gnu'.
COMPILER_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/usr/lib/gcc/x86_64-unknown-linux-gnu/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/usr/lib/gcc/x86_64-unknown-linux-gnu/
LIBRARY_PATH=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib/:/lib/../lib/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-fversion' '-v' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/collect2 --eh-frame-hdr -m
elf_x86_64 --hash-style=both -dynamic-linker /lib/ld-linux-x86-64.so.2
--version /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib/crt1.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib/crti.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/crtbegin.o
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0
-L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib -L/lib/../lib
-L/usr/lib/../lib -L/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../..
/tmp/cclcox9G.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed
-lgcc_s --no-as-needed /usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/crtend.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.5.0/../../../../lib/crtn.o
GNU ld (GNU Binutils) 2.20.1.20100318
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.


-- 
           Summary: g++: internal compiler error: Segmentation fault with -
                    flto and -g flags
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: andrej dot gelenberg at udo dot edu


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


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

* [Bug c++/43956] g++: internal compiler error: Segmentation fault with -flto and -g flags
  2010-05-01 22:50 [Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags andrej dot gelenberg at udo dot edu
@ 2010-05-01 22:52 ` andrej dot gelenberg at udo dot edu
  2010-05-01 22:53 ` andrej dot gelenberg at udo dot edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: andrej dot gelenberg at udo dot edu @ 2010-05-01 22:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from andrej dot gelenberg at udo dot edu  2010-05-01 22:52 -------
Created an attachment (id=20528)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20528&action=view)
source


-- 


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


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

* [Bug c++/43956] g++: internal compiler error: Segmentation fault with -flto and -g flags
  2010-05-01 22:50 [Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags andrej dot gelenberg at udo dot edu
  2010-05-01 22:52 ` [Bug c++/43956] " andrej dot gelenberg at udo dot edu
@ 2010-05-01 22:53 ` andrej dot gelenberg at udo dot edu
  2010-05-01 23:11 ` falk at debian dot org
  2010-05-02 15:32 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: andrej dot gelenberg at udo dot edu @ 2010-05-01 22:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from andrej dot gelenberg at udo dot edu  2010-05-01 22:53 -------
Source is from cone-0.82


-- 


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


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

* [Bug c++/43956] g++: internal compiler error: Segmentation fault with -flto and -g flags
  2010-05-01 22:50 [Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags andrej dot gelenberg at udo dot edu
  2010-05-01 22:52 ` [Bug c++/43956] " andrej dot gelenberg at udo dot edu
  2010-05-01 22:53 ` andrej dot gelenberg at udo dot edu
@ 2010-05-01 23:11 ` falk at debian dot org
  2010-05-02 15:32 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: falk at debian dot org @ 2010-05-01 23:11 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 889 bytes --]



------- Comment #3 from falk at debian dot org  2010-05-01 23:11 -------
Confirmed. Here is a test case that gives:
mini.cc: In member function ‘uploadMessage’:
mini.cc:6:49: internal compiler error: tree check: expected class ‘type’, have
‘declaration’ (function_decl) in gen_type_die_with_usage, at dwarf2out.c:18876


struct addMessagePull {
    virtual ~addMessagePull();
};
void doUploadMessage() {
    class uploadMessage : public addMessagePull { };
    uploadMessage upload;
}


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code


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


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

* [Bug c++/43956] g++: internal compiler error: Segmentation fault with -flto and -g flags
  2010-05-01 22:50 [Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags andrej dot gelenberg at udo dot edu
                   ` (2 preceding siblings ...)
  2010-05-01 23:11 ` falk at debian dot org
@ 2010-05-02 15:32 ` rguenth at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-02 15:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2010-05-02 15:32 -------


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


-- 

rguenth at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2010-05-02 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-01 22:50 [Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags andrej dot gelenberg at udo dot edu
2010-05-01 22:52 ` [Bug c++/43956] " andrej dot gelenberg at udo dot edu
2010-05-01 22:53 ` andrej dot gelenberg at udo dot edu
2010-05-01 23:11 ` falk at debian dot org
2010-05-02 15:32 ` rguenth 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).