This is the mail archive of the
mailing list for the libstdc++ project.
Re: vector_capacity:test03() failing on mips-irix6
> From: Benjamin Kosnik <email@example.com>
> This is right after trying to resize a vector to vector.max_size(). I
> suspect the allocation has failed but isn't being caught. I don't know
> why this is, but it can be reproduced on xscale-elf crosses, in
> addition to irix6.5.
I think I understand what's wrong. There's a bug in irix6's libc
malloc implementation, such that for very large allocations it'll
return a valid pointer (i.e. non-NULL) but accesses to it will crash.
We've come across it before in 27_io/ios_base_storage.cc, see:
I verified that if I link vector_capacity.cc with -lmalloc, it passes
on irix6 just like the ios_base_storage.cc problem reported
I'd like to know whether there is any way to pass -lmalloc to these
two tests just for irix6. Failing that, what options are available to
XFAIL just test03 (not the whole file) on irix6?
Kaveh R. Ghazi firstname.lastname@example.org