This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Mystery solved; zero FAILs again with mainline on freebsd5
- From: Loren James Rittle <rittle at latour dot waar dot labs dot mot dot com>
- To: libstdc++ at gcc dot gnu dot org
- Date: Mon, 7 Feb 2005 16:57:41 -0600 (CST)
- Subject: Mystery solved; zero FAILs again with mainline on freebsd5
- Reply-to: rittle at labs dot mot dot com
At the end of last week, I finally solved the mystery of the last two
library FAILs (only crashed with -pthread) with mainline on freebsd5.
It appears that the thread library on FreeBSD5 allocates smaller
stacks (or better protected stacks) than FreeBSD4. As committed since
location of memory allocation is not at issue in these tests. - Loren
* testsuite/27_io/basic_istream/getline/wchar_t/5.cc: Make buf static.
* testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc: Make ref and
src static.
Index: libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc,v
retrieving revision 1.1
diff -c -r1.1 5.cc
*** libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc 26 Nov 2004 20:34:27 -0000 1.1
--- libstdc++-v3/testsuite/27_io/basic_istream/getline/wchar_t/5.cc 7 Feb 2005 22:45:55 -0000
***************
*** 44,50 ****
{
bool test __attribute__((unused)) = true;
! wchar_t buf[1000000];
wstring::size_type index = 0, index_new = 0;
unsigned n = 0;
--- 44,50 ----
{
bool test __attribute__((unused)) = true;
! static wchar_t buf[1000000];
wstring::size_type index = 0, index_new = 0;
unsigned n = 0;
Index: libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc,v
retrieving revision 1.1
diff -c -r1.1 4.cc
*** libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc 6 Oct 2004 09:06:59 -0000 1.1
--- libstdc++-v3/testsuite/27_io/basic_stringbuf/setbuf/wchar_t/4.cc 7 Feb 2005 22:45:55 -0000
***************
*** 30,39 ****
const unsigned max_size = 1 << 18;
! wchar_t ref[max_size];
wmemset(ref, L'\0', max_size);
! wchar_t src[max_size * 2];
wmemset(src, L'\1', max_size * 2);
for (unsigned i = 128; i <= max_size; i *= 2)
--- 30,39 ----
const unsigned max_size = 1 << 18;
! static wchar_t ref[max_size];
wmemset(ref, L'\0', max_size);
! static wchar_t src[max_size * 2];
wmemset(src, L'\1', max_size * 2);
for (unsigned i = 128; i <= max_size; i *= 2)