This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags
- From: "andrej dot gelenberg at udo dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 May 2010 22:49:58 -0000
- Subject: [Bug c++/43956] New: g++: internal compiler error: Segmentation fault with -flto and -g flags
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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