[Ubuntu Wiki] Update of "DebuggingProgramCrash" by mterry

Ubuntu Wiki noreply at ubuntu.com
Mon Jun 20 17:04:00 UTC 2011


Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ubuntu Wiki" for change notification.

The "DebuggingProgramCrash" page has been changed by mterry:
http://wiki.ubuntu.com/DebuggingProgramCrash?action=diff&rev1=110&rev2=111

Comment:
Prune pre-hardy details

  
  This document describes how to install debug packages on Ubuntu, which will aid in providing information for bugs.
  
+ == Debug Symbol Packages ==
- == Hardy 8.04 and Newer ==
- 
- Use this section only if you are using Ubuntu '''Hardy 8.04''' or more recent versions (the command {{{cat /etc/issue}}} will tell you). See the following section if you are using a prior version.
  
  First, check if there is a package with a -dbg suffix in the main Ubuntu repositories. These are the debug symbol packages, and are equivalent to '-dbgsym' described below. You can safely use either one, but not both at once. Try installing the package, adding -dbg to its name, for example:
  {{{
@@ -92, +90 @@

  
   * Announcement: https://lists.ubuntu.com/archives/ubuntu-devel-announce/2006-September/000195.html
  
- == Prior Ubuntu versions ==
- 
- Use this section if you are using an Ubuntu version prior to Gutsy 7.10.
- 
-  1. Check if the package has a debugging version available.  In general, debugging packages will be named with a `-dbg` suffix
-  1. If not, you can generally* build one this way:
- 
- Something to keep in mind: if you would like to create a build you're going to need to have the relevant deb-src lines in your /etc/apt/sources.list
- 
-   a. Install the development scripts:
-   {{{
- sudo apt-get install devscripts fakeroot
- }}}
- 
-   a. Find out to which package your program belongs to:
-   {{{
- dpkg --search <program> 
- }}}
- 
-   a. Install the build-time dependencies for the package:
-   {{{
- sudo apt-get build-dep <package>
- }}}
-   a. Build .debs for debugging:
-   {{{
- export DEB_BUILD_OPTIONS="debug nostrip noopt"
- fakeroot apt-get source -b <package>
- }}}
-   a. Install the needed .debs (they will be in the current working directory if the build succeeded):
-   {{{
- sudo debi <package>*.changes
- }}}
- 
- 
- * Most packages support the build of debugging version in this way. If this process doesn't work for a package, please open a bug against it.
- 
- 
  == The Xorg server ==
  The X server will by default trap its own crashes and dump a stack trace in /var/log/Xorg.0.log. However, this stack trace is modified by the signal handler itself. To get a "normal" crash, which will trigger a core dump (and ''apport'' reporting), add this to your /etc/X11/xorg.conf:
  {{{




More information about the Ubuntu-bugsquad mailing list