#493 test failure: dune-common/common/test/sllisttest
Metadata
| Property | Value | 
|---|---|
| Reported by | Elias Pipping (elias.pipping@fu-berlin.de) | 
| Reported at | Feb 5, 2009 21:19 | 
| Type | Bug Report | 
| Version | Git (pre2.4) [autotools] | 
| Operating System | Linux 64bit | 
| Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) | 
| Last edited at | Dec 3, 2009 13:10 | 
| Closed by | Oliver Sander (oliver.sander@tu-dresden.de) | 
| Closed at | Dec 3, 2009 13:10 | 
| Closed in version | Unknown | 
| Resolution | Duplicate | 
| Comment | This really is a duplicate of 491. | 
Description
sllisttest fails with some optimization.
It works with -O0, -O1, -Os but not -O2 (and -O3).
After a bit of playing around I've found the minimal combination of flags to trigger a test failure:
CXXFLAGS="-O1 -fgcse -fschedule-insns -fstrict-aliasing -ftree-vrp" make clean; make -j3 CXXFLAGS="${CXXFLAGS}" && ( cd common/test/ && rm -f sllisttest && make -j3 CXXFLAGS="${CXXFLAGS}" sllisttest && ./sllisttest )
Testing ConstIterator Testing Iterator Testing Iterator Test PushPop Entry should be 1, but is 0! Push back failed! sllisttest.cc:361 sllisttest: ../../dune/common/sllist.hh:752: void Dune::SLList<T, A>::clear() [with T = int, A = Dune::PoolAllocator<int, 8176ul>]: Assertion `size_==0' failed.
If any of the flags -fgcse -fschedule-insns -fstrict-aliasing -ftree-vrp is dropped, the test succeeds