netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Gilad Benjamini <gilad.benjamini@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: conntrack & valgrind
Date: Thu, 10 Jan 2008 13:39:08 +0100	[thread overview]
Message-ID: <478611EC.1050205@netfilter.org> (raw)
In-Reply-To: <d95317090801091757s5ba5bcbfnf066f011e3488761@mail.gmail.com>

Gilad Benjamini wrote:
> Is conntrack supposed to be "valgrind clean" ?
> I ran a few times "valgrind  --tool=memcheck --show-reachable=yes conntrack -L"
> and I always get different "Invalid read of size " messages.

# valgrind --tool=memcheck --show-reachable=yes conntrack -L
==15883== Memcheck, a memory error detector.
==15883== [...]
==15883==
tcp      6 [...]
==15883==
==15883== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 19 from 1)
==15883== malloc/free: in use at exit: 18 bytes in 1 blocks.
==15883== malloc/free: 19 allocs, 18 frees, 3,966 bytes allocated.
==15883== For counts of detected errors, rerun with: -v
==15883== searching for pointers to 1 not-freed blocks.
==15883== checked 100,072 bytes.
==15883==
==15883== LEAK SUMMARY:
==15883==    definitely lost: 0 bytes in 0 blocks.
==15883==      possibly lost: 0 bytes in 0 blocks.
==15883==    still reachable: 18 bytes in 1 blocks.
==15883==         suppressed: 0 bytes in 0 blocks.
==15883== Rerun with --leak-check=full to see details of leaked memory.

I can't reproduce the problem with current libraries and conntrack-tools 
SVN snapshots. Which version are you using?

--
Los honestos son inadaptados sociales -- Les Luthiers

  reply	other threads:[~2008-01-10 12:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <d95317090801080112v662f7fcdk36b582d14557896d@mail.gmail.com>
2008-01-10  1:57 ` conntrack & valgrind Gilad Benjamini
2008-01-10 12:39   ` Pablo Neira Ayuso [this message]
2008-01-10 20:21     ` Gilad Benjamini
2008-01-11  1:27       ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=478611EC.1050205@netfilter.org \
    --to=pablo@netfilter.org \
    --cc=gilad.benjamini@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).