[Ubuntu Wiki] Update of "DebuggingProgramCrash" by hggdh2

Ubuntu Wiki noreply at ubuntu.com
Mon Sep 27 15:38:03 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/DebuggingProgramCrash?action=diff&rev1=105&rev2=106

The comment on the change is:
updated list-symbol-packages.sh (work in progress)

------------------------------------------------------------------------------
  }}}
  You can also use the Synaptic Package Manager to search for 'yelp-dbgsym' and install it from there.
  
- The above procedure will install the debug symbol package for yelp only. Chances are that yelp uses shared libraries in other packages and debug symbols for them might be required in order to obtain a readable stack trace. You can download the [[attachment:list-dbgsym-packages.sh]] shell script and run it (after a chmod a+x list-symbols-packages.sh) this way:
+ The above procedure will install the debug symbol package for yelp only. Chances are that yelp uses shared libraries in other packages and debug symbols for them might be required in order to obtain a readable stack trace. You can download the [[attachment:list-dbgsym-packages-v2.sh]] shell script and run it (after a chmod a+x list-symbols-packages-v2.sh) this way:
+ 
+ /!\ we updated [[attachment:list-dbgsym-packages-v2.sh]] to list-symbols-packages-v2.sh. This is the first change to make it compatible with newer GDB (which does not, by default, load all libraries at start anymore). -v2 is currently only working if you run it against a currently-executing binary (i.e., with '-p $(pidof <whatever>').
+ 
   {{{
- bash list-symbols-packages.sh yelp
+ bash list-symbols-packages-v2.sh yelp
  }}}
  in order to obtain a more complete list of symbol packages to install. The script may also attach to a running process and in this case it gives an even more complete list of symbol packages to install, and this is recommended if the problem you are having does not prevent you from running the program. You can usually get the process ID of a running process using <code>pidof</code>, so while you have yelp running you might run:
   {{{
- bash list-symbols-packages.sh -p $(pidof -s yelp)
+ bash list-symbols-packages-v2.sh -p $(pidof -s yelp)
  }}}
  to get a list of packages that should be installed for best debug information. If the running process is a server (daemon), you might have to run 'list-symbols-packages.sh' with sudo.
  




More information about the Ubuntu-bugsquad mailing list