From: Phil Muldoon <pmuldoon@redhat.com>
To: Mark Wielaard <mark@klomp.org>
Cc: Kris Van Hees <kris.van.hees@oracle.com>, frysk@sourceware.org
Subject: Re: Problem with getExe and testInsertedBreakpoint
Date: Fri, 27 Jul 2007 13:41:00 -0000 [thread overview]
Message-ID: <46A9F5FC.6050007@redhat.com> (raw)
In-Reply-To: <1185530388.3588.51.camel@dijkstra.wildebeest.org>
Mark Wielaard wrote:
> Hi Phil,
>
> On Thu, 2007-07-26 at 14:32 -0500, Phil Muldoon wrote:
>
>
> Aha, that also explains the meaning of the new kernel /proc/sys sysctrl
> parameters fs.binfmt_elf.dumpwhole_segments to get all text sections
> included and fs.binfmt_elf.dump_elf_headers to get partial text sections
> that I saw Roland added. Does fcore have some similar parameters?
>
>
Yup, fcore -a dump all possible segments. However that is not the
default. That has been there since fcore was written because I perhaps
made the brave assumption that in userland core dumps we can hang around
and dump more segments as the process is "fine". In kernel core dumps I
think the aim it so do this all as quickly as possible and clobber the
process.
> Right, and elf_prpsinfo only allows for truncated executable names (16
> chars). Bleah. So something like BuildID is really badly needed to
> present the user with something that is more often usable I guess. I saw
> that the BuildID support proposal was approved as one of the Fedora 8
> Features: http://fedoraproject.org/wiki/Releases/FeatureBuildId
> http://fedoraproject.org/wiki/Releases/8/FeatureList
> Will it be possible for frysk to also support that in the Fedora 8
> timeframe?
>
>
Given that there is a lot to do, and not enough of us to do it, I've
taken the rather (perhaps cheeky) approach of letting Jan and Roland
thrash out the details, then pick it up and incorporate it when done. I
already owe a Roland an answer to the partially elided segment question
and Frysk.
> OK, and I assume the same would be true for any code segments that were
> altered through ptrace poke?
>
>
I'm not sure of kernel mechanics. The core dump class just looks at the
the bits in /proc/$$/maps to see if it has been written to.
> Thanks. I filed bug #4852 to clean up the code where I abused it and
> will go through the other stuff in the core listed there that uses the
> wrong approach (I know I just copied what I did from some other existing
> example, so it is good to get this fully cleaned up).
>
>
>> Hope that helps!
>>
>
> It helped greatly. Thanks for sharing. Some of the things you said
> suddenly made me see the bigger picture and connect the dots.
>
>
Awesome, glad to be of help
Regards
Phil
next prev parent reply other threads:[~2007-07-27 13:41 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-26 13:23 Kris Van Hees
2007-07-26 13:58 ` Mark Wielaard
2007-07-26 15:35 ` Phil Muldoon
2007-07-26 18:57 ` Mark Wielaard
2007-07-26 19:32 ` Phil Muldoon
2007-07-27 10:00 ` Mark Wielaard
2007-07-27 13:41 ` Phil Muldoon [this message]
2007-07-27 19:04 ` Roland McGrath
2007-07-31 9:57 ` Mark Wielaard
2007-07-31 10:18 ` Roland McGrath
2007-07-26 15:00 ` Phil Muldoon
2007-07-26 15:03 ` Phil Muldoon
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=46A9F5FC.6050007@redhat.com \
--to=pmuldoon@redhat.com \
--cc=frysk@sourceware.org \
--cc=kris.van.hees@oracle.com \
--cc=mark@klomp.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 read-only IMAP folder(s) and NNTP newsgroup(s).