[geos-devel] Was it a big memory leak ?

Yury A. Bychkov me at yury.ca
Wed Oct 8 05:11:14 EDT 2003


Good news. I was wondering why my memory leak detector didn't complain about
that. Since that FAQ says that disabling the caching will slow down things
considerably, we should probably leave it as it is.

BTW, can you send a message to the list once you finish cascade-patching for
getCoordinates(), so that I can start on fixing the leaks it caused (when I ran
the current code on my big test file (1673 tests) I've got 55162 leaks) ?

Yury

----- Original Message ----- 
From: "strk" <strk at keybit.net>
To: <geos-devel at geos.refractions.net>
Sent: Wednesday, October 08, 2003 1:09 AM
Subject: [geos-devel] Was it a big memory leak ?


> It seems it was not, but a feature/bug of the STL library (caching).
> valgrind FAQ contains tips on how to disable this binding in gcc
> please read and comment on this - I think it should be specified
> at configuration time wheter to force this or that behaviour
> (when not possible at runtime).
>
> --strk;
>
>
> ----- Forwarded message from Geoff Alexander <galexander2 at nc.rr.com> -----
>
> From: "Geoff Alexander" <galexander2 at nc.rr.com>
> To: "strk" <strk at keybit.net>, <valgrind-users at lists.sourceforge.net>
> Cc: <dblasby at refractions.net>
> Subject: Re: [Valgrind-users] still reachable from basic_string (C++)
> Date: Tue, 7 Oct 2003 21:19:42 -0400
>
> Looks like this may be Q14 in the valgrind FAQ
> (http://developer.kde.org/~sewardj/docs-1.9.5/FAQ.txt).
>
> Geoff Alexander
>
> ----- Original Message -----
> From: "strk" <strk at keybit.net>
> To: <valgrind-users at lists.sourceforge.net>
> Cc: <dblasby at refractions.net>
> Sent: Tuesday, October 07, 2003 5:29 PM
> Subject: [Valgrind-users] still reachable from basic_string (C++)
>
>
> > Does the following valgrind detect a memory leak in the libstdc++ ?
> >
> > ==2410== 114048 bytes in 26 blocks are still reachable in loss record 14
> of 14
> > ==2410==    at 0x4002A9A4: malloc (vg_replace_malloc.c:153)
> > ==2410==    by 0x804BB6E: __default_alloc_template<true,
> 0>::_S_chunk_alloc(unsigned int, int &) (/usr/include/g++-3/stl_alloc.h:490)
> > ==2410==    by 0x804B95B: __default_alloc_template<true,
> 0>::_S_refill(unsigned int) (/usr/include/g++-3/stl_alloc.h:531)
> > ==2410==    by 0x402F092B: basic_string<char, string_char_traits<char>,
> __default_alloc_template<true, 0> >::replace(unsigned int, unsigned int,
> char const *, unsigned int) (/usr/include/g++-3/stl_alloc.h:332)
> > ==2410==    by 0x402E78C7: __static_initialization_and_destruction_0
> (/usr/include/g++-3/std/bastring.h:223)
> > ==2410==    by 0x402E7D69:
> geos::TopologyValidationError::TopologyValidationError(int,
> geos::Coordinate) (/usr/include/g++-3/stl_map.h:76)
> > ==2410==    by 0x402EFB04: (within /extra/geos/lib/libgeos.so.1.0.0)
> > ==2410==    by 0x40286855: (within /extra/geos/lib/libgeos.so.1.0.0)
> > ==2410==    by 0x4000D1D8: _dl_init (dl-init.c:70)
> > ==2410==    by 0x40001DB0: (within /lib/ld-2.2.2.so)
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Valgrind-users mailing list
> > Valgrind-users at lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/valgrind-users
>
> ----- End forwarded message -----
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel




More information about the geos-devel mailing list