Package: g++
Version: 5_5.3.1-21
X-Debbugs-CC: debian-...@lists.debian.org
X-Debbugs-CC: aspectc-develop...@aspectc.org
Affects: aspectc++


The mentioned version of g++ breaks the build of aspectc++ on the armhf
architecture, interestingly other architectures, including armel, are fine.
Please see the build log:

https://buildd.debian.org/status/fetch.php?pkg=aspectc%2B%2B&arch=armhf&ver=1%3A2.0%2Bsvn20160531-1&stamp=1464701014

fatal: Caught standard exception: deque::_M_new_elements_at_back

I could manually reproduce this issue on harris.debian.org.

A little background on aspectc++: The program provides a source-to-source
compiler for AspectC++, an AOP extension for C++. It compiles from AspectC++ to
C++ and is implemented in AspectC++. The package first builds an ac++ binary,
and then uses that binary to "weave" the aspects in Puma. The issue is a
run-time error during the execution of the ac++ binary, and manifests in an STL
runtime isse.

AFAIUI this run-time error is an internal error in the STL implementation that
should never happen. In GDB I could tack down the issue to some internal resize
operation in a std::deque container, which according to the C++ standard should
always succeed.

It appears that the issue does not occur when compiling with -O1 or -O0, but
does reliably occur with -O2. I did not try -O3.

I intend to upload a new package revision that sets -O1 on armhf only. This is
highly undesirable and I'd appreciate suggestions and alternate solution.

Best,
Reinahrd

Reply via email to