This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: vector_capacity:test03() failing on mips-irix6


 > From: Benjamin Kosnik <bkoz@redhat.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.
 > -benjamin

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:
http://gcc.gnu.org/ml/gcc/2002-05/msg01012.html

I verified that if I link vector_capacity.cc with -lmalloc, it passes
on irix6 just like the ios_base_storage.cc problem reported
previously.

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?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]