Skip to content

Commit

Permalink
dialog: Fix crash in debugging function (debug_main_timer_list())
Browse files Browse the repository at this point in the history
DBG:dialog:debug_main_timer_list: testing forward loop with visited = 1
DBG:dialog:debug_main_timer_list: testing backward loop with visited = 2
DBG:dialog:insert_dlg_timer_unsafe: inserting 0x7f303dba8d80 for 7205
DBG:dialog:debug_main_timer_list: testing forward loop with visited = 1
ERROR:dialog:debug_main_timer_list: Detected something wrong with main timer list on forward linking for entry 0x7f303dba8d80
DBG:core:handle_sigs: OpenSIPS exit status = 134
INFO:core:handle_sigs: child process 139408 exited by a signal 6
(cherry picked from commit 4c6a8ec)
  • Loading branch information
liviuchircu committed Sep 6, 2022
1 parent 57e4bf5 commit 68616b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/dialog/dlg_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,11 @@ void debug_detached_timer_list(struct dlg_tl *detached)
/* assumed to be always called under timer lock */
void debug_main_timer_list(void)
{
static int visited;

struct dlg_tl *start,*finish;
int visited=1;

visited++;
start = finish = &(d_timer->first);
LM_DBG("testing forward loop with visited = %d\n",visited);

Expand Down

0 comments on commit 68616b0

Please sign in to comment.