From: Yao Qi <qiyaoltc@gmail.com>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: Yao Qi <qiyaoltc@gmail.com>, gdb-patches@sourceware.org
Subject: Re: [patch] Fix ASAN crash for gdb.compile/compile.exp
Date: Tue, 19 May 2015 13:43:00 -0000 [thread overview]
Message-ID: <86y4kkr8de.fsf@gmail.com> (raw)
In-Reply-To: <20150519123536.GA27983@host1.jankratochvil.net> (Jan Kratochvil's message of "Tue, 19 May 2015 14:35:36 +0200")
Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> Now compile_object_run() called from line
> (gdb) compile code puts("hello")
> has finished for a long time. But we still need to have that injected code
> OBJFILE valid when GDB is executing it. Therefore OBJFILE is freed only from
> destructor of the frame #1.
Hmm, you are right.
>
> At the patched line of call_function_by_hand_dummy() the dummy frame
> destructor has not yet been run but it will be run before the fetched NAME
> will get used.
>
> In fact I do not see now how to fix it differently than what the patch does.
Your patch is fine by me.
--
Yao (齐尧)
next prev parent reply other threads:[~2015-05-19 13:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-18 17:01 Jan Kratochvil
2015-05-16 13:20 ` ping: " Jan Kratochvil
2015-05-19 11:47 ` Yao Qi
2015-05-19 12:35 ` Jan Kratochvil
2015-05-19 13:43 ` Yao Qi [this message]
2015-05-19 14:14 ` [commit] " Jan Kratochvil
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=86y4kkr8de.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=jan.kratochvil@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