Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Pavel Shevaev <pacha.shevaev@gmail.com>
To: Paul Pluzhnikov <ppluzhnikov@google.com>
Cc: gdb@sourceware.org
Subject: Re: Trying to spot memory corruption with core dump
Date: Tue, 28 Jul 2009 16:55:00 -0000	[thread overview]
Message-ID: <d9c3f61a0907280955q627669c8wc0bf20a729b14137@mail.gmail.com> (raw)
In-Reply-To: <8ac60eac0907280642h4700d7d5m95204a6e201281da@mail.gmail.com>

> With typical VG slow-downs (50x to 100x), you need to run it longer: 3
> hours without VG => 50*3/24.0 == 1 week under VG.

Unfortunately, I can't afford it :(

> Is the application multithreaded?

Yes. And yes, I tried using helgrind as well and it discovered nothing...

> Does it process a "random" event source?

Well, it uses async handlers of boost::asio which in my case used as a
nice demultiplexing wrapper around epoll

> VG could change timing and make bugs hide; that's not unheard of.
> You could try setting MALLOC_CHECK_=2 in the environment (see 'info
> libc'), or linking the application with '-lmcheck'.

Thanks for the MALLOC_CHECK_ tip! I'm going to stress test my app using it...

> Finally, does your application handle async signals?
> If so, does signal handler call anything async-signal unsafe? That is
> one common source of "random" heap corruption.

Oh, no, nothing like that is used.

P.S. thanks again for being helpful, I've been trying to spot this
memory corruption for a week, I think I'm gradually going mad, so,
_any_ help is highly appreciated

-- 
Best regards, Pavel


  reply	other threads:[~2009-07-28 16:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28  6:44 Pavel Shevaev
2009-07-28  6:58 ` Paul Pluzhnikov
2009-07-28  7:12   ` Pavel Shevaev
2009-07-28 13:43     ` Paul Pluzhnikov
2009-07-28 16:55       ` Pavel Shevaev [this message]
2009-07-28 17:32         ` Michael Snyder
2009-07-28 21:51         ` Samuel Bronson

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=d9c3f61a0907280955q627669c8wc0bf20a729b14137@mail.gmail.com \
    --to=pacha.shevaev@gmail.com \
    --cc=gdb@sourceware.org \
    --cc=ppluzhnikov@google.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