From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10951 invoked by alias); 27 Jul 2007 13:41:32 -0000 Received: (qmail 10943 invoked by uid 22791); 27 Jul 2007 13:41:31 -0000 X-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DK_POLICY_SIGNSOME,FORGED_RCVD_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 27 Jul 2007 13:41:27 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l6RDfIes007815; Fri, 27 Jul 2007 09:41:18 -0400 Received: from pobox.hsv.redhat.com (pobox.hsv.redhat.com [172.16.16.12]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l6RDfIek010942; Fri, 27 Jul 2007 09:41:18 -0400 Received: from localhost.localdomain (vpn-14-223.rdu.redhat.com [10.11.14.223]) by pobox.hsv.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l6RDfG3x002933; Fri, 27 Jul 2007 09:41:17 -0400 Message-ID: <46A9F5FC.6050007@redhat.com> Date: Fri, 27 Jul 2007 13:41:00 -0000 From: Phil Muldoon User-Agent: Thunderbird 2.0.0.5 (X11/20070719) MIME-Version: 1.0 To: Mark Wielaard CC: Kris Van Hees , frysk@sourceware.org Subject: Re: Problem with getExe and testInsertedBreakpoint References: <20070726132332.GD20459@ca-server1.us.oracle.com> <1185458316.3630.57.camel@dijkstra.wildebeest.org> <46A8BEF5.1080706@redhat.com> <1185476234.13705.22.camel@dijkstra.wildebeest.org> <46A8F6BD.90805@redhat.com> <1185530388.3588.51.camel@dijkstra.wildebeest.org> In-Reply-To: <1185530388.3588.51.camel@dijkstra.wildebeest.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00208.txt.bz2 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