Debug

Version 1 (Adrian Georgescu, 02/27/2013 02:25 pm)

1 1 Adrian Georgescu
h1. Debug
2 1 Adrian Georgescu
3 1 Adrian Georgescu
In case of crashes, to obtain a full backtrace, do the following:
4 1 Adrian Georgescu
5 1 Adrian Georgescu
<pre>
6 1 Adrian Georgescu
# enable core files
7 1 Adrian Georgescu
ulimit -c unlimited
8 1 Adrian Georgescu
</pre>
9 1 Adrian Georgescu
10 1 Adrian Georgescu
Run sylkserver in the foreground (--no-fork)
11 1 Adrian Georgescu
12 1 Adrian Georgescu
13 1 Adrian Georgescu
# when it crashes you see a file called 'core' in the current directory
14 1 Adrian Georgescu
<pre>
15 1 Adrian Georgescu
gdb python core
16 1 Adrian Georgescu
set logging on
17 1 Adrian Georgescu
thread apply all bt
18 1 Adrian Georgescu
exit
19 1 Adrian Georgescu
</pre>
20 1 Adrian Georgescu
21 1 Adrian Georgescu
You'll see a file called gdb.txt
22 1 Adrian Georgescu
23 1 Adrian Georgescu
Please make sure you gave the python-sipsimple-dbg package installed.