This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Large file iostreams
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Pétur Runólfsson <peturr02 at ru dot is>
- Cc: Benjamin Kosnik <bkoz at redhat dot com>, libstdc++ at gcc dot gnu dot org
- Date: Wed, 15 Oct 2003 17:20:57 +0200
- Subject: Re: [RFC] Large file iostreams
- References: <07D05A69A3D0C14FAEA60C3ACE8E5564028D0E57@mail.ru.is>
Pétur Runólfsson wrote:
OK, this is the current draft. This fixes all fpos related bugs in
bugzilla (11450, 11543 and 12065), and an unrelated bug in
basic_filebuf::imbue that was unconvered by the test case for 11543.
Hi Pétur!
Your draft looks indeed /very/ good to me, but I haven't found yet the
time to study it in detail :( I hope Benjamin will, before me...
I'm working on 12540: as I suspected we have even one more leak... :(
Fixing the strdup issue avoids this
==32590== 336 bytes in 56 blocks are definitely lost in loss record 3 of 3
==32590== at 0x4002B6F1: malloc (vg_replace_malloc.c:153)
==32590== by 0x403B9A9F: __GI___strdup (strdup.c:43)
==32590== by 0x4029B564: std::locale::locale(char const*) (locale.cc:219)
==32590== by 0x8048C49: main (12352.cc:86)
==32590== by 0x40353CA5: __libc_start_main
(../sysdeps/generic/libc-start.c:152)
==32590== by 0x8048940: (within /home/paolo/a.out)
for one iteration of 12352.
But we still have got this:
==32590== 208 bytes in 4 blocks are definitely lost in loss record 2 of 3
==32590== at 0x4002B6F1: malloc (vg_replace_malloc.c:153)
==32590== by 0x8048A0F: allocate(unsigned) (12352.cc:13)
==32590== by 0x8048A69: operator new(unsigned) (12352.cc:27)
==32590== by 0x402DBA10: std::moneypunct<wchar_t,
false>::_M_initialize_moneypunct(__locale_struct*, char const*)
(monetary_members.cc:454)
==32590== by 0x402BFD24: std::locale::_Impl::_Impl(char const*,
unsigned) (locale_facets.h:1654)
==32590== by 0x4029B717: std::locale::locale(char const*) (locale.cc:291)
==32590== by 0x8048C49: main (12352.cc:86)
==32590== by 0x40353CA5: __libc_start_main
(../sysdeps/generic/libc-start.c:152)
Paolo.