freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] Memory leak or memory accumulation with freetds-0.82 ctlib's ct_cmd_alloc / ct_cmd_drop?
- From: mtbrown88 AT comcast.net
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Memory leak or memory accumulation with freetds-0.82 ctlib's ct_cmd_alloc / ct_cmd_drop?
- Date: Mon, 1 Dec 2008 20:01:14 +0000 (UTC)
Hi freddy77,
Ran valgrind and purify against ctlib_leak...no memory leaks found. After
further investigation, the allocated memory (via ctlib_leak) is going into
the cache pool, so my memory leak must be elsewhere (not in the ctlib_leak
source code). I'll expand my search to the rest of my source code again.
Thanks for the assistance and for pointing me to valgrind. I've used purify,
but hadn't used valgrind before.
Cheers,
mtbrown88
----- Original Message -----
From: "Frediano Ziglio" <freddy77 AT gmail.com>
To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
Sent: Saturday, November 29, 2008 3:49:27 AM GMT -05:00 US/Canada Eastern
Subject: Re: [freetds] Memory leak or memory accumulation with freetds-0.82
ctlib's ct_cmd_alloc / ct_cmd_drop?
Il giorno gio, 27/11/2008 alle 17.01 +0000, mtbrown88 AT comcast.net ha
scritto:
>
> Hi freddy77,
>
>
>
> Thanks for testing it. I am running Red Hat Enterprise Linux 4 Update 7 --
> uname -a output:
>
> Linux devbox.localdomain 2.6.9-78 EL #1 Wed Jul 9 15:27:01 EDT 2008 i686
> athlon i386 GNU/Linux
>
> and top shows all of the memory slowly being used up.
>
>
>
> Thanks,
>
> mtbrown88
>
Could you try to install valgring and execute a
valgrind --tool=memcheck --leak-check=yes --show-reachable=yes
--num-callers=20 ./ctlib_leak
it should report leaks and where they happen. Is better to compile
FreeTDS (at least) with debugging informations.
freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
- Re: [freetds] Memory leak or memory accumulation with freetds-0.82 ctlib's ct_cmd_alloc / ct_cmd_drop?, mtbrown88, 12/01/2008
Archive powered by MHonArc 2.6.24.