[Bug 721378]

Jakub-gcc 721378 at bugs.launchpad.net
Mon Jul 18 19:30:03 UTC 2011


Created attachment 24788
gcc47-pr49756.patch

Untested patch.  Clueless people will be still able to construct twice or 4 times as large testcases of similar quality when they really should be using an array, but I guess this can help even with reasonable testcases.
The drawback is I think that endless recursion bugs might take much more compile time before they fail.

-- 
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:
  In Progress
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