Differences

This shows you the differences between two versions of the page.

Link to this comparison view

devel:gdb [2011/04/08 14:39]
tr created initially and added "Timer-Trigger Debugging" section
devel:gdb [2011/04/08 15:08] (current)
tr Note how "kamctl ps" helps you determining the timer process.
Line 7: Line 7:
 If you wish to debug a function that is triggered by a timer (e.g., tm/dialog callbacks issued from transaction timeouts) you need to attach gdb to the Kamailio timer process. Specifically, you cannot simply start the Kamailio binary from gdb since the initial Kamailio process does not handle timeouts. Consequently, breakpoints you set on the initial process which you expect to fire won't do so if they are timer-triggered. If you wish to debug a function that is triggered by a timer (e.g., tm/dialog callbacks issued from transaction timeouts) you need to attach gdb to the Kamailio timer process. Specifically, you cannot simply start the Kamailio binary from gdb since the initial Kamailio process does not handle timeouts. Consequently, breakpoints you set on the initial process which you expect to fire won't do so if they are timer-triggered.
  
-Unfortunately, you cannot tell from the list of Kamailio processes which one corresponds to the timer process. On my system with worker processes disabledit is the second kamailio process though.+In order to tell which Kamailio process corresponds to the timer process, you can use ''kamctl ps'' and check for the process with ''Type=timer''.
  
  
  
  

Navigation

Wiki

Other

QR Code
QR Code devel:gdb (generated for current page)