gcc internal compiler error in force_move_args_size_note, at combine-stack-adj.c:419

Bug #1007616 reported by Björn Michaelsen
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc
Invalid
Medium
gcc-4.7 (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

1) On quantal
2) with gcc-4.7-base i386 4.7.0-11ubuntu2
3) expecting to be able to build libreoffice-3.6.0~alpha1 as it does on precise
4) instead gcc dies with an internal compiler error:

/build/buildd/libreoffice-3.6.0~alpha1/unodevtools/source/skeletonmaker/skeletoncommon.cxx: In function 'void skeletonmaker::checkDefaultInterfaces(boost::unordered::unordered_set<rtl::OString, rtl::OStringHash>&, const boost::unordered::unordered_set<rtl::OString, rtl::OStringHash>&, const rtl::OString&)':
/build/buildd/libreoffice-3.6.0~alpha1/unodevtools/source/skeletonmaker/skeletoncommon.cxx:317:1: internal compiler error: in force_move_args_size_note, at combine-stack-adj.c:419

see https://launchpadlibrarian.net/106637511/buildlog_ubuntu-quantal-i386.libreoffice_1%3A3.6.0~alpha1-0ubuntu1_FAILEDTOBUILD.txt.gz

for details. Build has been repeated on two builders (muntries, mercury) but fails at the exact same spot, so no hardware fluke.

Related branches

Micah Gersten (micahg)
affects: gcc-defaults (Ubuntu) → gcc-4.7 (Ubuntu)
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in gcc-4.7 (Ubuntu):
importance: Undecided → High
Revision history for this message
Matthias Klose (doko) wrote :

Bjoern, please attach the preprocessed source

Changed in gcc-4.7 (Ubuntu):
assignee: nobody → Björn Michaelsen (bjoern-michaelsen)
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

plus command line arguments are missing, and the verbose build should be turned on

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Compile flags:
S=workdir && O=$S/solver/unxlngx6.pro && W=$S/workdir/unxlngx6.pro && mkdir -p $W/CxxObject/unodevtools/source/skeletonmaker/ $W/Dep/CxxObject/unodevtools/source/skeletonmaker/ && /usr/bin/ccache x86_64-linux-gnu-g++ -DCPPU_ENV=gcc3 -DENABLE_GRAPHITE -DENABLE_GTK -DENABLE_KDE4 -DGCC -DGXX_INCLUDE_PATH=/usr/include/c++/4.6 -DHAVE_GCC_VISIBILITY_FEATURE -DHAVE_THREADSAFE_STATICS -DLINUX -DNDEBUG -DOPTIMIZE -DOSL_DEBUG_LEVEL=0 -DSOLAR_JAVA -DSUPD=360 -DUNIX -DUNX -DX86_64 -D_FORTIFY_SOURCE=2 -D_PTHREADS -D_REENTRANT -Wall -Wendif-labels -Wextra -fmessage-length=0 -fno-common -pipe -fPIC -Wshadow -Wsign-promo -Woverloaded-virtual -Wnon-virtual-dtor -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++0x -ggdb2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -DEXCEPTIONS_ON -fexceptions -fno-enforce-eh-specs -O2 -c $S/unodevtools/source/skeletonmaker/skeletonmaker.cxx -o $W/CxxObject/unodevtools/source/skeletonmaker/skeletonmaker.o -MMD -MT $W/CxxObject/unodevtools/source/skeletonmaker/skeletonmaker.o -MP -MF $W/Dep/CxxObject/unodevtools/source/skeletonmaker/skeletonmaker.d_ -I$S/unodevtools/source/skeletonmaker/ -I$S/unodevtools/inc -I$O/inc/external -I$O/inc -I$S/solenv/inc -I/usr/lib/jvm/java-6-openjdk-amd64/include -I/usr/lib/jvm/java-6-openjdk-amd64/include/linux -I/usr/lib/jvm/java-6-openjdk-amd64/include/native_threads/include -I$W/UnoApiHeadersTarget/udkapi/normal && mv $W/Dep/CxxObject/unodevtools/source/skeletonmaker/skeletonmaker.d_ $W/Dep/CxxObject/unodevtools/source/skeletonmaker/skeletonmaker.d

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

attaching preprocessed source (from precise build)

Changed in gcc-4.7 (Ubuntu):
status: Incomplete → New
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

added compile command as attachment too ...

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

oh, assigning back

Changed in gcc-4.7 (Ubuntu):
assignee: Björn Michaelsen (bjoern-michaelsen) → Matthias Klose (doko)
Revision history for this message
Matthias Klose (doko) wrote :

so you claim to build with gcc-4.7, but the preprocessed source is built with gcc-4.6. please attach the preprocessed source built with gcc-4.7.

Changed in gcc-4.7 (Ubuntu):
assignee: Matthias Klose (doko) → Björn Michaelsen (bjoern-michaelsen)
status: New → Incomplete
Revision history for this message
Matthias Klose (doko) wrote :

contrary to the bug description this is neither 4.7 nor quantal.

I can't reproduce this with 4.6 on precise and quantal, and with 4.7 on quantal, using:
$ gcc-4.6 -c -ggdb2 -O2 -fmessage-length=0 -fno-common -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -std=gnu++0x -fstack-protector --param=ssp-buffer-size=4 skeletonmaker.ii

Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :
Changed in gcc-4.7 (Ubuntu):
status: Incomplete → New
assignee: Björn Michaelsen (bjoern-michaelsen) → Matthias Klose (doko)
Revision history for this message
Matthias Klose (doko) wrote :

this is seen both with 4.6 and 4.7, only when using -Os. -O[123] works.

Changed in gcc-4.7 (Ubuntu):
importance: High → Medium
Revision history for this message
In , Doko-v (doko-v) wrote :

Created attachment 27609
preprocessed source

seen on i686-linux-gnu only, with -Os, works with -O[123]. I see the ICE with 4.6 as well.

$ g++ -c -ggdb2 -Os -std=gnu++0x skeletoncommon.ii
/home/bjoern/libreoffice-3.6.0~alpha1/unodevtools/source/skeletonmaker/skeletoncommon.cxx: In function 'void skeletonmaker::checkDefaultInterfaces(boost::unordered::unordered_set<rtl::OString, rtl::OStringHash>&, const boost::unordered::unordered_set<rtl::OString, rtl::OStringHash>&, const rtl::OString&)':
/home/bjoern/libreoffice-3.6.0~alpha1/unodevtools/source/skeletonmaker/skeletoncommon.cxx:317:1: internal compiler error: in force_move_args_size_note, at combine-stack-adj.c:419
Please submit a full bug report,
with preprocessed source if appropriate.

Matthias Klose (doko)
Changed in gcc-4.7 (Ubuntu):
status: New → Triaged
Revision history for this message
In , Jakub-gcc (jakub-gcc) wrote :

Dup of PR53602 ?

Changed in gcc:
importance: Unknown → Medium
status: Unknown → New
Revision history for this message
In , Doko-v (doko-v) wrote :

duplicate

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-4.7 - 4.7.0-13ubuntu1

---------------
gcc-4.7 (4.7.0-13ubuntu1) quantal; urgency=low

  * Regenerate the control file.

gcc-4.7 (4.7.0-13) unstable; urgency=low

  * Update to SVN 20120612 (r188457) from the gcc-4_7-branch.
    - Fix PR c++/53602 (LP: #1007616).

  * Document the changed ssp-buffer-size default in Ubuntu 10.10 and
    later (Kees Cook). LP: #990141.
  * Fix PR c++/26155, ICE after error with namespace alias. LP: #321883.
  * Fix PR c++/53599 (reverting the fix for PR c++/53137).
    Closes: #676729. LP: #1010896.
  * Fix manual page names for cross builds (Thibaut Girka). Closes: #675516.
  * Remove dpkg-cross build dependency for cross builds (Thibaut Girka).
    Closes: #675511.
 -- Matthias Klose <email address hidden> Tue, 12 Jun 2012 17:54:25 +0200

Changed in gcc-4.7 (Ubuntu):
status: Triaged → Fix Released
Changed in gcc:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.