Bug#588765: gcc-4.4: internal compiler error in dwarf2out_finish
Package: gcc-4.4
Version: 4.4.4-6
Severity: normal
When compiling a certain piece of generated code, GCC crashes for me
with the following message:
$ gcc-4.4 -save-temps -Wall -g -shared -o test.so cosem-25378.c
cosem-25378.c:1322: internal compiler error: in dwarf2out_finish, at dwarf2out.c:16662
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
I've tried against other versions of GCC, and the crash does not
appear on 4.1, 4.2 or 4.3, but with 4.4 and -snapshot. On -snapshot,
the crash happens on line 22234 in dwarf2out.c instead, however.
I'm using the current default GCC packages from testing (and -snapshot
from unstable) on i386, but just in case, gcc -v says the following
about itself:
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.4-6' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --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.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-targets=all --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.4 (Debian 4.4.4-6)
I'm guessing you don't want thousands of lines of preprocessed C code
in this bug message, so I made it available here:
<http://www.dolda2000.com/~fredrik/lf/cosem-25378.i>
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing'), (400, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-3-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.4 depends on:
ii binutils 2.20.1-11 The GNU assembler, linker and bina
ii cpp-4.4 4.4.4-6 The GNU C preprocessor
ii gcc-4.4-base 4.4.4-6 The GNU Compiler Collection (base
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-6 GCC support library
ii libgomp1 4.4.4-6 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.4 recommends:
ii libc6-dev 2.11.2-2 Embedded GNU C Library: Developmen
Versions of packages gcc-4.4 suggests:
ii gcc-4.4-doc 4.4.4.nf1-1 documentation for the GNU compiler
pn gcc-4.4-locales <none> (no description available)
pn gcc-4.4-multilib <none> (no description available)
ii libcloog-ppl0 0.15.9-1 the Chunky Loop Generator (runtime
pn libgcc1-dbg <none> (no description available)
pn libgomp1-dbg <none> (no description available)
pn libmudflap0-4.4-dev <none> (no description available)
pn libmudflap0-dbg <none> (no description available)
ii libppl-c2 0.10.2-6 Parma Polyhedra Library (C interfa
ii libppl7 0.10.2-6 Parma Polyhedra Library (runtime l
-- no debconf information
Reply to: