libstdc++ test failures

Bug #598147 reported by Matthias Klose
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro GCC
Invalid
Medium
Unassigned
gcc-4.4 (Ubuntu)
Fix Released
Undecided
Unassigned
gcc-4.5 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: gcc-4.4

Compared to the Debian build, there are some additional test failures for libstdc++-v3:

 - failures caused by the hardening defaults

 - failures, when the testsuite is run with the installed libstdc++

see the attachment for more details

Revision history for this message
Matthias Klose (doko) wrote :
tags: added: armel toolchain
Revision history for this message
Matthias Klose (doko) wrote :

the testsuite-hardening-*.diff patches should be updated

Revision history for this message
Kees Cook (kees) wrote :

Stack crash is a real regression (I've opened bug 598670), but it is fixed in 4.5.1 and later already. Updated testsuite-hardening-fortify.diff attached for the freopen issues. Still investigating the assert failures.

Revision history for this message
Kees Cook (kees) wrote :

Sent upstream: http://gcc.gnu.org/ml/gcc-patches/2010-06/msg02626.html

I'm not sure what's causing the assert failures.

Changed in gcc-4.5 (Ubuntu):
status: New → Triaged
Changed in gcc-4.4 (Ubuntu):
status: New → Triaged
Revision history for this message
Matthias Klose (doko) wrote :

4.5 has some more:

Running target unix
FAIL: ext/array_allocator/check_delete.cc (test for excess errors)
FAIL: ext/array_allocator/check_new.cc (test for excess errors)
FAIL: ext/bitmap_allocator/check_delete.cc (test for excess errors)
FAIL: ext/bitmap_allocator/check_new.cc (test for excess errors)
FAIL: ext/debug_allocator/check_delete.cc (test for excess errors)
FAIL: ext/debug_allocator/check_new.cc (test for excess errors)
FAIL: ext/malloc_allocator/check_delete.cc (test for excess errors)
FAIL: ext/malloc_allocator/check_new.cc (test for excess errors)
FAIL: ext/malloc_allocator/deallocate_global.cc (test for excess errors)
FAIL: ext/malloc_allocator/deallocate_local.cc (test for excess errors)
FAIL: ext/mt_allocator/check_delete.cc (test for excess errors)
FAIL: ext/mt_allocator/check_new.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_global-2.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_global-4.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_global_thread-1.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_global_thread-3.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local-2.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local-4.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local-6.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local-8.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local_thread-1.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local_thread-3.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local_thread-5.cc (test for excess errors)
FAIL: ext/mt_allocator/deallocate_local_thread-7.cc (test for excess errors)
FAIL: ext/new_allocator/check_delete.cc (test for excess errors)
FAIL: ext/new_allocator/check_new.cc (test for excess errors)
FAIL: ext/new_allocator/deallocate_global.cc (test for excess errors)
FAIL: ext/new_allocator/deallocate_local.cc (test for excess errors)
FAIL: ext/pool_allocator/check_delete.cc (test for excess errors)
FAIL: ext/pool_allocator/check_new.cc (test for excess errors)
FAIL: ext/throw_allocator/check_delete.cc (test for excess errors)
FAIL: ext/throw_allocator/check_new.cc (test for excess errors)
FAIL: ext/throw_allocator/deallocate_global.cc (test for excess errors)
FAIL: ext/throw_allocator/deallocate_local.cc (test for excess errors)

Revision history for this message
Matthias Klose (doko) wrote :

for the assertion failures,

 - filed bug 598785
 - http://gcc.gnu.org/ml/libstdc++/2010-06/msg00181.html

tags: added: patch
Adam Guthrie (therigu)
tags: added: patch-forwarded-upstream
Changed in gcc-linaro:
importance: Undecided → Medium
Revision history for this message
Michael Hope (michaelh1) wrote :

I don't see the ext/* failues in gcc-linaro-4.5-2010.08-1 on i686, x86_64, or armv7a.

I had a quick look and it seems that ext/* are being included by libstdc++-v3/testsuite/libstdc++-dg/conformance.exp so they're probably running.

Changed in gcc-linaro:
status: New → Invalid
Revision history for this message
Matthias Klose (doko) wrote :

on amd64, these still fail for -m32:
https://launchpad.net/ubuntu/+source/gcc-4.5/4.5.1-1ubuntu2/+build/1919225

on i386, these fail for the normal build:
https://launchpad.net/ubuntu/+source/gcc-4.5/4.5.1-1ubuntu2/+build/1919227

on armel, the testsuite isn't run on the buildd.

Revision history for this message
Matthias Klose (doko) wrote :

fixed for 4.4

Changed in gcc-4.4 (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

gcc-4.5 still needs updates

Revision history for this message
Matthias Klose (doko) wrote :

removed the patch tag, gcc-4.5 needs updates, and gcc-4.6 did enter stage3

tags: removed: patch patch-forwarded-upstream
Revision history for this message
Matthias Klose (doko) wrote :

won't fix for 4.5

Changed in gcc-4.5 (Ubuntu):
status: Triaged → Won't Fix
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.