Merge lp:~ted/apport/backtrace into lp:~apport-hackers/apport/trunk

Proposed by Ted Gould
Status: Rejected
Rejected by: Martin Pitt
Proposed branch: lp:~ted/apport/backtrace
Merge into: lp:~apport-hackers/apport/trunk
Diff against target: 11 lines (+7/-0)
1 file modified
bin/apport-backtrace (+7/-0)
To merge this branch: bzr merge lp:~ted/apport/backtrace
Reviewer Review Type Date Requested Status
Martin Pitt (community) Disapprove
Review via email: mp+35692@code.launchpad.net

Description of the change

Small little script to get a backtrace from a crash file.

To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

This is already provided by "apport-retrace -s foo.crash", so not necessary. apport-retrace also offers a lot of other options, like temporarily instlaling the necessary ddebs, opening an interactive gdb session, etc.

review: Disapprove
Revision history for this message
Ted Gould (ted) wrote :

On Fri, 2010-09-17 at 07:01 +0000, Martin Pitt wrote:
> This is already provided by "apport-retrace -s foo.crash", so not
> necessary.. apport-retrace also offers a lot of other options, like
> temporarily instlaling the necessary ddebs, opening an interactive
> gdb session, etc.

Hmm, I didn't know about apport-retrace, and in fact didn't have it
installed. Any reason this isn't part of the standard install of
apport?

Also, it seems to need "Package" which I don't always have. Is that
avoidable?

  $ apport-retrace
-s /var/crash/_usr_bin_gnome-power-manager.1000.crash
report file does not contain one of the required fields: CoreDump
Package ExecutablePath

Where the apport-backtrace can work fine as it only uses CoreDump and
ExecutablePath.

Revision history for this message
Martin Pitt (pitti) wrote :

You can invoke it with -R (--rebuild-package-info) if you have a crash report which wasn't post-processed by the UI yet, i. e. does not yet have a Package: field.

Unmerged revisions

1790. By Ted Gould

Adding in a little program to get a backtrace from a crash file.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'bin/apport-backtrace'
2--- bin/apport-backtrace 1970-01-01 00:00:00 +0000
3+++ bin/apport-backtrace 2010-09-16 17:11:43 +0000
4@@ -0,0 +1,7 @@
5+#!/bin/sh -e
6+
7+TMPDIR=$(mktemp -d)
8+
9+apport-unpack $1 $TMPDIR
10+gdb -nx `cat $TMPDIR/ExecutablePath` -core $TMPDIR/CoreDump -ex 'backtrace full' -ex 'thread apply all backtrace full' -ex quit
11+rm -rf $TMPDIR

Subscribers

People subscribed via source and target branches