arm-linux-gnueabihf-g++ -g -marm -mapcs-frame -O2 crashes when including <iostream> and <sstream>

Bug #1389295 reported by Patrick Doyle
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gcc-4.8-armhf-cross (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The following command:

$ arm-linux-gnueabihf-g++ -c -o Error.o -g -marm -mapcs-frame -O2 Error.cpp

crashes when run on my (up to date) Ubuntu 14.04 LTS machine. It produces the following output:

In file included from /usr/arm-linux-gnueabihf/include/c++/4.8.2/sstream:600:0,
                 from Error.cpp:2:
/usr/arm-linux-gnueabihf/include/c++/4.8.2/bits/sstream.tcc: In function ‘(static initializers for /usr/arm-linux-gnueabihf/include/c++/4.8.2/bits/sstream.tcc)’:
/usr/arm-linux-gnueabihf/include/c++/4.8.2/bits/sstream.tcc:286:1: internal compiler error: in dwarf2out_frame_debug_adjust_cfa, at dwarf2cfi.c:1078
 } // namespace std
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccN9IKrf.out file, please attach this to your bugreport.

Error.cpp looks like this:
#include <iostream>
#include <sstream>
//#include <exception>

//int test = 0;

I will attach it, once I get a chance, as well as the preprocessed source file as requested.

$ lsb_release -rd
Description: Ubuntu 14.04.1 LTS
Release: 14.04

$ apt-cache policy gcc-arm-linux-gnueabihf
gcc-arm-linux-gnueabihf:
  Installed: 4:4.8.2-1
  Candidate: 4:4.8.2-1
  Version table:
 *** 4:4.8.2-1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
        100 /var/lib/dpkg/status

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: g++-4.8-arm-linux-gnueabihf 4.8.2-16ubuntu4cross0.11
ProcVersionSignature: Ubuntu 3.13.0-39.66-generic 3.13.11.8
Uname: Linux 3.13.0-39-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.5
Architecture: amd64
Date: Tue Nov 4 10:50:08 2014
ExecutablePath: /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/cc1plus
InstallationDate: Installed on 2012-09-24 (771 days ago)
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release amd64 (20120823.1)
SourcePackage: gcc-4.8-armhf-cross
UpgradeStatus: Upgraded to trusty on 2014-09-30 (35 days ago)

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcc-4.8-armhf-cross (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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