[Bug 721378] Re: g++ ICE (segfault in cc1plus)
Bug Watch Updater
721378 at bugs.launchpad.net
Fri Jul 15 11:23:58 UTC 2011
Launchpad has imported 1 comments from the remote bug at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49756.
If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.
------------------------------------------------------------------------
On 2011-07-15T10:49:42+00:00 Matthias Klose wrote:
Created attachment 24773
preprocessed source
[forwarded from http://launchpad.net/bugs/721378]
might related to PR48766, although I don't see the recursion in
fold_binary_loc(). seen with current 4.4, 4.5, 4.6 branches and trunk.
$ g++ -c testcase.ii
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
Program received signal SIGSEGV, Segmentation fault.
0x00000000008046dc in fold_binary_loc ()
(gdb) bt
#0 0x00000000008046dc in fold_binary_loc ()
#1 0x00000000008905e2 in gimplify_expr ()
#2 0x0000000000895269 in ?? ()
#3 0x000000000089067e in gimplify_expr ()
#4 0x000000000089f7a2 in ?? ()
#5 0x0000000000891188 in gimplify_expr ()
#6 0x00000000008a22f9 in ?? ()
#7 0x000000000088fd3e in gimplify_expr ()
#8 0x0000000000898367 in gimplify_stmt ()
#9 0x000000000089f41d in ?? ()
#10 0x00000000008916f0 in gimplify_expr ()
#11 0x00000000008961b3 in ?? ()
#12 0x000000000088fcd5 in gimplify_expr ()
#13 0x0000000000898367 in gimplify_stmt ()
#14 0x0000000000890b9e in gimplify_expr ()
#15 0x0000000000898367 in gimplify_stmt ()
#16 0x0000000000898d5c in ?? ()
#17 0x0000000000891414 in gimplify_expr ()
#18 0x0000000000898367 in gimplify_stmt ()
#19 0x00000000008908a9 in gimplify_expr ()
#20 0x0000000000898367 in gimplify_stmt ()
#21 0x0000000000898d5c in ?? ()
#22 0x0000000000891414 in gimplify_expr ()
#23 0x0000000000898367 in gimplify_stmt ()
#24 0x00000000008908a9 in gimplify_expr ()
#25 0x0000000000898367 in gimplify_stmt ()
[...]
bug submitter writes:
- if you comment out the ~Base destructor, the ICE goes away.
- The ICE also goes away if you significantly reduce the number of Child
members in the Container class.
Reply at: https://bugs.launchpad.net/gcc/+bug/721378/comments/3
** Changed in: gcc
Status: Unknown => New
** Changed in: gcc
Importance: Unknown => Medium
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-4.5 in Ubuntu.
https://bugs.launchpad.net/bugs/721378
Title:
g++ ICE (segfault in cc1plus)
Status in The GNU Compiler Collection:
New
Status in “gcc-4.5” package in Ubuntu:
Confirmed
Bug description:
Binary package hint: gcc-4.5
I have a testcase reduced to a single C++ file that causes an internal
error in g++ for every version tested (4.x for x = 1,2,3,4 and 5). I
can reproduce it on Ubuntu 10.04 and 10.10. I have not been able to
find any workaround for this bug.
> g++-4.5 -v testcase.cxx
Using built-in specs.
COLLECT_GCC=g++-4.5
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.5.1/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.5.1-7ubuntu2' --with-bugurl=file:///usr/share/doc/gcc-4.5/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.5 --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.5 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-gold --with-plugin-ld=ld.gold --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.5.1 (Ubuntu/Linaro 4.5.1-7ubuntu2)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
/usr/lib/gcc/x86_64-linux-gnu/4.5.1/cc1plus -quiet -v -D_GNU_SOURCE testcase.cxx -D_FORTIFY_SOURCE=2 -quiet -dumpbase testcase.cxx -mtune=generic -march=x86-64 -auxbase testcase -version -fstack-protector -o /tmp/ccg5bLs2.s
GNU C++ (Ubuntu/Linaro 4.5.1-7ubuntu2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/4.5.1/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.5
/usr/include/c++/4.5/x86_64-linux-gnu
/usr/include/c++/4.5/backward
/usr/local/include
/usr/lib/gcc/x86_64-linux-gnu/4.5.1/include
/usr/lib/gcc/x86_64-linux-gnu/4.5.1/include-fixed
/usr/include/x86_64-linux-gnu
/usr/include
End of search list.
GNU C++ (Ubuntu/Linaro 4.5.1-7ubuntu2) version 4.5.1 (x86_64-linux-gnu)
compiled by GNU C version 4.5.1, GMP version 4.3.2, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 50e33501336f77ceb788d88860a1807b
g++-4.5: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/721378/+subscriptions
More information about the foundations-bugs
mailing list