Telepathy debugging: Difference between revisions

From OLPC
Jump to navigation Jump to search
(New page: This page explains how to enable Telepathy debug output on your XO. * First you need to [http://wiki.laptop.org/go/Olpc-utils#.2Fhome.2Folpc.2F.xsession enable] your /home/olpc/.xsession...)
 
(core files)
Line 2: Line 2:


* First you need to [http://wiki.laptop.org/go/Olpc-utils#.2Fhome.2Folpc.2F.xsession enable] your /home/olpc/.xsession file
* First you need to [http://wiki.laptop.org/go/Olpc-utils#.2Fhome.2Folpc.2F.xsession enable] your /home/olpc/.xsession file
mv /home/olpc/.xession-example. /home/olpc/.xsession
mv /home/olpc/.xession-example /home/olpc/.xsession
* Then edit it and uncomment the lines about GABBLE_DEBUG, GABBLE_LOGFILE, SALUT_DEBUG and SALUT_LOGFILE
* Then edit it and uncomment the lines about GABBLE_DEBUG, GABBLE_LOGFILE, SALUT_DEBUG and SALUT_LOGFILE
* LM_DEBUG and GIBBER_DEBUG can be useful to debug lower level problems but will produce really bigger log files
* LM_DEBUG and GIBBER_DEBUG can be useful to debug lower level problems but will produce really bigger log files
Line 9: Line 9:
Telepathy log files are now available at /home/olpc/.sugar/default/logs/telepathy-gabble.log and /home/olpc/.sugar/default/logs/telepathy-salut.log .
Telepathy log files are now available at /home/olpc/.sugar/default/logs/telepathy-gabble.log and /home/olpc/.sugar/default/logs/telepathy-salut.log .
Be sure to attach these files if you submit a ticket about a Telepathy issue.
Be sure to attach these files if you submit a ticket about a Telepathy issue.

== Capturing core files ==

Core files are produced when a program crashes and contain useful debugging information.

As root:

echo /tmp/core-%p-%e > /proc/sys/kernel/core_pattern

This tells the kernel to put core files into the /tmp directory.

To make this persist across reboots, add the following line to /etc/sysctl.conf:

kernel.core_pattern = /tmp/core-%p-%e

Add the following line to /home/olpc/.xsession:

ulimit -c unlimited

This turns off any limit on core file size.

Revision as of 14:15, 14 November 2007

This page explains how to enable Telepathy debug output on your XO.

  • First you need to enable your /home/olpc/.xsession file
 mv /home/olpc/.xession-example /home/olpc/.xsession
  • Then edit it and uncomment the lines about GABBLE_DEBUG, GABBLE_LOGFILE, SALUT_DEBUG and SALUT_LOGFILE
  • LM_DEBUG and GIBBER_DEBUG can be useful to debug lower level problems but will produce really bigger log files
  • reboot

Telepathy log files are now available at /home/olpc/.sugar/default/logs/telepathy-gabble.log and /home/olpc/.sugar/default/logs/telepathy-salut.log . Be sure to attach these files if you submit a ticket about a Telepathy issue.

Capturing core files

Core files are produced when a program crashes and contain useful debugging information.

As root:

 echo /tmp/core-%p-%e > /proc/sys/kernel/core_pattern

This tells the kernel to put core files into the /tmp directory.

To make this persist across reboots, add the following line to /etc/sysctl.conf:

 kernel.core_pattern = /tmp/core-%p-%e

Add the following line to /home/olpc/.xsession:

 ulimit -c unlimited

This turns off any limit on core file size.