From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Jeffrey Walton <noloader@gmail.com>
Cc: GDB Users List <gdb@sourceware.org>
Subject: Re: Interpret object causing crash in __cxa_finalize (have core)
Date: Wed, 24 Aug 2011 20:34:00 -0000 [thread overview]
Message-ID: <20110824203420.GA23547@host1.jankratochvil.net> (raw)
In-Reply-To: <CAH8yC8mxDGuAUZDa=YUv5NRe0NObeK4_=w=JDL+xo2wEzNzApw@mail.gmail.com>
On Wed, 24 Aug 2011 22:18:45 +0200, Jeffrey Walton wrote:
> We are also interested in memory leaks - other libraries affect our integrity.
Then please do not complain on too many messages, the mails said Boost is not
conforming to memory leak checkers (that does not mean it really leaks).
This mail thread is about memory corruption, not about memory leaks.
> Yes, we have -g3 -ggdb.
-ggdb in fact has no effect.
> But we seem to be missing diagnostic
> information from __do_global_dtors_aux and __cxa_finalize.
You have full debug info from __cxa_finalize, what more info would you like?
__do_global_dtors_aux just executes all the destructors, there isn't anything
interesting inside. It is assembled from gcc sources some special ways so its
debug info is missing.
> OK, I' seem to have a misconception. Is there no debug information
> associated with global constructors and destructors?
Global destructor is __cxa_finalize which has debug info. It runs destructors
for all the existing instances, for instance 0x83dfc0 is run the destructor
~map, it also has debug info.
> how does one determine the problematic object destructor?
There probably isn't any problematic object destructor. Just some code before
corrupted memory so the correct object destructor crashes on it later.
Please read more about memory corruption debugging, there is a wide range of
tools for it, GDB is not one of them. I have written one brief list of such
tools in the part 1 of:
http://people.redhat.com/jkratoch/DeveloperConference2011-debug.pdf
Regards,
Jan
prev parent reply other threads:[~2011-08-24 20:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 19:31 Jeffrey Walton
2011-08-24 19:40 ` Jan Kratochvil
2011-08-24 19:54 ` Jeffrey Walton
2011-08-24 20:03 ` Jan Kratochvil
2011-08-24 20:19 ` Jeffrey Walton
2011-08-24 20:34 ` Jan Kratochvil [this message]
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=20110824203420.GA23547@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=gdb@sourceware.org \
--cc=noloader@gmail.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