Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
installation_guide:debug:start [2022/10/20 07:32] – [Powerful SIP traffic monitor] borja | installation_guide:debug:start [2025/04/10 21:17] (current) – [Attach the GDB (debugger) to the Asterisk] borja | ||
---|---|---|---|
Line 320: | Line 320: | ||
==== Set the right TimeZone ==== | ==== Set the right TimeZone ==== | ||
- | Install the NTP package to synchronize your server to the world'stime. | + | Install the NTP package to synchronize your server to the world's time. |
< | < | ||
Line 331: | Line 331: | ||
# | # | ||
</ | </ | ||
+ | |||
+ | or automatically, | ||
+ | |||
+ | < | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | ==== Monitor the file descriptors ==== | ||
+ | |||
+ | List the file descriptors used by a process : | ||
+ | |||
+ | < | ||
+ | # ls -l / | ||
+ | </ | ||
+ | |||
+ | ==== Generate a CallStacks or Coredumps ==== | ||
+ | |||
+ | Generate the threads stacks or a coredump file for the process (voximald) : | ||
+ | |||
+ | < | ||
+ | gdb -ex " | ||
+ | gdb / | ||
+ | </ | ||
+ | |||
+ | ==== Execute the Asterisk with GDB (debugger) ==== | ||
+ | |||
+ | Launch the Asterisk process with the debugger (gdb) : | ||
+ | |||
+ | < | ||
+ | gdb -ex=r --args asterisk -cvvvvvv -U asterisk -G asterisk | ||
+ | </ | ||
+ | |||
+ | ==== Attach the GDB (debugger) to the Asterisk ==== | ||
+ | |||
+ | Launch the debugger process and attach to the running Asterisk : | ||
+ | |||
+ | < | ||
+ | gdb / | ||
+ | </ | ||
+ |