Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: Florian Weimer <fweimer@redhat.com>
Cc: Pedro Alves <palves@redhat.com>, gdb-patches@sourceware.org
Subject: Re: Use of mcheck during GDB development
Date: Tue, 15 Nov 2016 20:46:00 -0000	[thread overview]
Message-ID: <20161115204602.GC21655@vapier.lan> (raw)
In-Reply-To: <eb8546a7-ccfc-3b52-0f11-e5a78e813a8b@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1077 bytes --]

On 15 Nov 2016 21:22, Florian Weimer wrote:
> On 11/15/2016 09:03 PM, Pedro Alves wrote:
> > On 11/15/2016 04:00 PM, Florian Weimer wrote:
> >> We need to get rid of the mcheck functionality in glibc because we
> >> really, really want to stop calling the malloc hook functions.
> >>
> >> A future glibc version will provide a lightweight heap checker, with
> >> functionality comparable to mcheck (but thread-safe!) as linkable and
> >> LD_PRELOAD-able (perhaps under a different name than libmcheck).
> >>
> >> How critical is the mcheck functionality to GDB development?
> >
> > Despite its flaws, it catches bugs.  It's lightweight enough that
> > it can be on all the time.  It's nice to have, IMO.
> 
> Interesting.  Do you know which mcheck bits actually catch failures?
> ...
> I think most people use valgrind for memory debugging.

or ASAN.  that seems like a much saner project to migrate to.
i suspect all the bugs mcheck would catch, ASAN would too, and
it'd catch even more since ASAN includes stack coverage.

ASAN is in gcc-4.8+.
-mike

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

  reply	other threads:[~2016-11-15 20:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-15 16:00 Florian Weimer
2016-11-15 20:03 ` Pedro Alves
2016-11-15 20:22   ` Florian Weimer
2016-11-15 20:46     ` Mike Frysinger [this message]
2016-11-15 20:50     ` Pedro Alves
2016-11-15 21:58       ` Simon Marchi
2016-11-15 22:07         ` Pedro Alves
2016-11-15 22:11           ` Simon Marchi
2016-11-15 21:28     ` Yao Qi

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=20161115204602.GC21655@vapier.lan \
    --to=vapier@gentoo.org \
    --cc=fweimer@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=palves@redhat.com \
    /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