Debug » History » Version 3
Adrian Georgescu, 02/27/2013 02:28 PM
1 | 1 | Adrian Georgescu | h1. Debug |
---|---|---|---|
2 | |||
3 | 3 | Adrian Georgescu | h2. Logs |
4 | |||
5 | Regular logs like protocol and notification traces are stored in /var/log/sylkserver folder |
||
6 | |||
7 | h2. Backtrace |
||
8 | |||
9 | 1 | Adrian Georgescu | In case of crashes, to obtain a full backtrace, do the following: |
10 | |||
11 | <pre> |
||
12 | # enable core files |
||
13 | ulimit -c unlimited |
||
14 | </pre> |
||
15 | |||
16 | Run sylkserver in the foreground (--no-fork) |
||
17 | |||
18 | 2 | Adrian Georgescu | When it crashes you see a file called 'core' in the current directory |
19 | 1 | Adrian Georgescu | |
20 | <pre> |
||
21 | gdb python core |
||
22 | set logging on |
||
23 | thread apply all bt |
||
24 | exit |
||
25 | </pre> |
||
26 | |||
27 | You'll see a file called gdb.txt |
||
28 | |||
29 | Please make sure you gave the python-sipsimple-dbg package installed. |