Debug

Version 3 (Adrian Georgescu, 02/27/2013 02:28 pm)

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