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