Re: Memory leak in stringtokenizer module?

Martin Bayer <[email protected]> Fri, 14 Oct 2005 12:28:41 +0200
Newsgroups gmane.comp.video.gephex.devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--===============1577355958==
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature";
	boundary="------------enig67FF215CB56C6CE19B01C492"

This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig67FF215CB56C6CE19B01C492
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

Hi Herb,

> I've encountered a really serious problem obviously regarding the
> stringtokenizer module.
> 
> I've attached two graphs where the first one runs fine (testleak2) while
> the second one (testleak3) increases virtual memory usage of the engine
> by about 10MB per second...

For a first look the leak is not in the stringtokenizer, as the update
code is quite simple and doesn't allocate memory on the heap.

I guess the problem is located in the sdl_image driver of the frbinmodule.

I added a new entry to the bugtracker:

 http://bugs.gephex.org/show_bug.cgi?id=151

> How can I find out about that memory leak (I've tried valgrind and other
> tools and using ulimit, but the last is especially complicated because
> of all the wrapper scripts)?

Just start it with gephex-engine-real and gephex-gui-real. The wrapper
scripts are only important at the first startup.

Martin

--------------enig67FF215CB56C6CE19B01C492
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDT4heCm3i57PRsbsRAjA5AJ47+kU0uaXfz9d+YQzR6c6hb2/9EgCeOEXq
KHIsS5GIteY0DtPvsa9xtKc=
=4mp1
-----END PGP SIGNATURE-----

--------------enig67FF215CB56C6CE19B01C492--

--===============1577355958==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gephex-devel mailing list
[email protected]
http://lists.gephex.org/mailman/listinfo/gephex-devel

--===============1577355958==--