home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / apport / examples / README < prev   
Encoding:
Text File  |  2006-08-09  |  1.1 KB  |  35 lines

  1. Until the kernel's crashdump helper semantics is changed to produce
  2. core dumps, this library can be preloaded to emulate the kernel
  3. behaviour. Right now, apport cannot put stack traces and core dumps
  4. into crash reports if being called by the kernel.
  5.  
  6. ATTENTION: This library uses unsafe temporary file handling and must
  7. NOT be used on production systems!
  8.  
  9. To use this library, do the following steps:
  10.  
  11. 1. Disable the kernel crash handler:
  12.  sudo /etc/init.d/apport stop
  13.  
  14. 2. Build the library:
  15.  
  16.  cp -r /usr/share/doc/apport/examples apportlib
  17.  cd apportlib
  18.  make
  19.  
  20. 3. Adjust permissions of /var/crash to be world-writable:
  21.  
  22.  sudo chmod 1777 /var/crash
  23.  
  24.   With the preload approach, apport does not have permission to write
  25.   into the default /var/crash directory, so this adjustment is
  26.   necessary to allow apport to create reports in the right place.
  27.  
  28. 4. Enable preloading for the current shell:
  29.  
  30.  export LD_PRELOAD=`pwd`/libapport.so:$LD_PRELOAD 
  31.  
  32.   Alternatively, you can also add the path to /etc/ld.so.preload to
  33.   have it become active for *all* programs. Above command will only
  34.   activate the library for programs started from this shell.
  35.