g++ generates bad code
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I put together a script called reproduce-bug.sh that does all the work for you.
This script doesn't require sudo or other enhanced proviledges to run.
Basically you run the script in an empty directory writeable by you, and
it will git clone v3c and treedb into their own
folders and create a "sandbox" folder to install them to.
Then it will "make && make install" the packages into the sandbox.
You run it as
sh reproduce-bug.sh treedb
These packages aren't large and with a 1-2GHz machine with broadband
you should get to the "problem" prompt in < 2 minutes.
The problem stage is running "make check" in treedb, so there's a prompt
asking you to <Ctrl>-C to abort, enter to proceed.
If you can reproduce the bug it will note the test failures for you to compare.
Running the tests on Debian/Squeeze's gcc/g++ 4.4.5 succeeds, as it does
with gcc/g++ 4.5.2 on ubuntu (I built it from source).
This may lead to the cause of the following more serious problems:
linux-
http://
and
system instability caused by unpriviledged program
https:/
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: g++ 4:4.4.4-1ubuntu2
ProcVersionSign
Uname: Linux 2.6.32-26-generic x86_64
Architecture: amd64
Date: Sun Dec 19 03:23:14 2010
ProcEnviron:
LANGUAGE=
LANG=en_IE.utf8
SHELL=/bin/bash
SourcePackage: gcc-defaults
g++ -v reports
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)