[Bug libstdc++/41645] New: Massive failures in parallel test mode

chris at bubblescope dot net gcc-bugzilla@gcc.gnu.org
Fri Oct 9 12:10:00 GMT 2009


In 'libstdc++-v3', type 'make check-parallel' and a huge number of tests fail.

Some of these are expected, in particular several in 25_algorithm, to do with
lack of c++0x support, but most of the failures seem to be related to a string
problem.

Taking one example
(testsuite/26_numerics/complex/inserters_extractors/char/1.cc), I get the
error:

1.exe(21140) malloc: *** error for object 0x100019ae0: pointer being freed was
not allocated
*** set a breakpoint in malloc_error_break to debug

And backtrace:

#0  0x00007fff879fdb91 in malloc_error_break ()
#1  0x00007fff87927083 in free ()
#2  0x0000000100094bfa in std::basic_stringbuf<char, std::char_traits<char>,
std::allocator<char> >::overflow (this=0x7fff5fbff428, __c=40) at
bits/basic_string.h:236
#3  0x000000010009911c in std::basic_streambuf<char, std::char_traits<char>
>::xsputn (this=0x7fff5fbff428, __s=<value temporarily unavailable, due to
optimizations>, __n=13) at bits/streambuf.tcc:97
#4  0x000000010008f4b5 in std::__ostream_insert<char, std::char_traits<char> >
(__out=@0x7fff5fbff420, __s=<value temporarily unavailable, due to
optimizations>, __n=13) at streambuf:427
#5  0x0000000100053aac in std::operator<< <float, char, std::char_traits<char>
> (__os=@0x7fff5fbff420, __x=<value temporarily unavailable, due to
optimizations>) at bits/basic_string.h:2539
#6  0x000000010000521d in test01 ()
#7  0x0000000100005cd8 in main ()

All the errors seem to be similarly related to string. The standard 'make
check' works fine, as does the compiler in general use. 

This problem seems to be connected to libtestc++.a (If I remove it when
compiling the test, the result works fine), but I am not sufficiently expert on
linking to figure out exactly what is going wrong.


-- 
           Summary: Massive failures in parallel test mode
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: chris at bubblescope dot net
 GCC build triplet: x86_64-apple-darwin10.0.0
  GCC host triplet: x86_64-apple-darwin10.0.0
GCC target triplet: x86_64-apple-darwin10.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41645



More information about the Gcc-bugs mailing list