Re: Getting better crash reports

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fre, 20 04 2007 kl. 16:11 +0000, skrev Will Woods:
> On Fri, 2007-04-20 at 17:18 +0200, David Nielsen wrote:
> > For the latest release Ubuntu is shipping a little custom tool to fetch
> > debug symbols so to provide more complete reports for our developer
> > overlords.
> > 
> > Maybe we should look at borrowing this?
> > 
> > https://wiki.ubuntu.com/Apport
> 
> Funny you should mention that! I actually spent a week trying to port it
> to Fedora, and had a long chat with the lead Apport developer about it.

It just goes to show how unoriginal I am.

> The Apport code is all python, and quite well-written too - it's got
> unit tests and everything. They're quite supportive of us trying to get
> it to work in Fedora.

Excellent, maybe we could convince the right people to put it on
Freedesktop.org or something and generic'ify the code so it could get
adopted by as many projects as possible in the longrun. Regardless it is
a great idea, I hate getting a crash and noticing that I forgot to
install the symbols.

> Unfortunately it depends on some Ubuntu-specific kernel patches to work
> right. They haven't been able to get those patches into the upstream
> kernel yet.
> 
> The first hurdle to clear is getting info about the crashing process.
> Ubuntu has a kernel patch that puts stuff like CORE_PID into the
> environment - we'd need a tool that pulls this info from the core file
> itself instead. (That's why upstream rejected this patch.)

Well, it has to be in Ubuntu' own best interest to help with this, the
more work is upstream the better for all of us. I take it they are aware
of the issue and working on a solution?

> If you've got a core file, all the info we need (like PID and such) is
> somewhere in the ELF .notes section of the core. The problem is that I
> haven't yet found definitions of those structs. It's in the kernel
> somewhere, but I haven't gotten around to figuring it out.
> 
> Probably someone could write a simple tool based on elfutils-libs that
> would accomplish the same thing.

This would only be true for the C style apps right, we'd need additional work 
at the time where Apport gets support for Python (yuck!) and Mono (yay!) or
have I been dipping in Ingo cloning fluid again?

> Anyway, if anyone's interested in checking it out, you can get a copy of
> my apport SRPM here: 
> 
> http://homepage.mac.com/wgwoods/fedora/apport/apport-0.75-0.rc2.fc7.src.rpm
> 
> I *really* want to get this working for F8.

That would make a great addition to our line up, though by no means a
perfect solution to all our problems. It only does crashes and right now
the worst problem I'm seeing on Development is occasional rampant memory
abuse leading to total system failure - tracking down that kind of
problem really could benefit from a similar little helper tool.

- David


[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux