This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Troubles with current 3.3 and 21_strings/ctor_copy_dtor.cc
- From: Phil Edwards <phil at jaj dot com>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 16 Jul 2003 15:14:28 -0400
- Subject: Re: Troubles with current 3.3 and 21_strings/ctor_copy_dtor.cc
- References: <3F158FFF.1040909@unitus.it>
On Wed, Jul 16, 2003 at 07:48:47PM +0200, Paolo Carlini wrote:
> I wanted to apply the fix for 11528 to the branch too and I noticed that
> the unpatched sources behave *very* strangely for me on this testcase:
> all the physical memory is used and the system becomes unusable.
> Probably, after a while it would crash, but I managed to stop 'make
> check' with CTRL-C.
Oh, this brings back memories. Lots of memories. Not good ones, either.
(Do a search in the older archives for "ctor_copy_dtor".)
At a guess, the call to __gnu_cxx_test::set_memory_limits() in that file is
not taking effect, for any of various reasons. Then one of the tests tries
to build a string (maxsize-1) characters long, and the system obligingly
attempts to hand over a few gigs of free store.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams