[Ubuntu Wiki] Update of "DebuggingWithApportRetrace" by hggdh2
Ubuntu Wiki
noreply at ubuntu.com
Thu Jul 8 19:39:48 UTC 2010
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Ubuntu Wiki" for change notification.
The following page has been changed by hggdh2:
http://wiki.ubuntu.com/DebuggingWithApportRetrace?action=diff&rev1=12&rev2=13
The comment on the change is:
do not run GDB as root!
------------------------------------------------------------------------------
== Using apport-retrace ==
Now, for any package to be installed, you must be running as root (or under a ''fakeroot'' environment, not discussed here). So we run:
{{{
- cerdea at xango2:~$ sudo apport-retrace -g /var/crash/_usr_bin_gcalctool.1000.crash
+ cerdea at xango2:~$ sudo apport-retrace -o trash /var/crash/_usr_bin_gcalctool.1000.crash
WARNING: package libsepol1-dbgsym not available
}}}
+
+ /!\ we could also run 'sudo apport-retrace -g /var/crash/_usr_bin_gcalctool.1000.crash', but it is not a very good idea to run GDB under root -- unless really needed.
+
(...) those are the debug symbols packages that would be needed, but could not be found. Hopefully, they will not matter. Keeping on.
{{{
WARNING: package perl-base-dbgsym not available
@@ -59, +62 @@
Unpacking busybox-initramfs-dbgsym (from .../busybox-initramfs-dbgsym_1%3a1.13.3-1ubuntu9_amd64.ddeb) ...
}}}
(...) humongous list of symbols packages cut off for sanity
+
+ Now we can run, under our common userId, a GDB session on the crash:
{{{
+ apport-retrace -g /var/crash/_usr_bin_gcalctool.1000.crash
+
Setting up libvorbisfile3-dbgsym (1.2.3-3ubuntu1) ...
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
More information about the Ubuntu-bugsquad
mailing list