Project

General

Profile

Actions

Bug #2360

closed
AH VJ

possible deadlock with signal handling

Bug #2360: possible deadlock with signal handling

Added by Andreas Herz over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

I got a bug report about signal handling and a possible deadlock that needs investigation:

Send SIGHUP and some time after SIGUSR2. This results in rotation_flag being set. With the rule reload the rule reload starting message is generated. In SCLogMessage the op_iface_ctx->fp_mutex becomes locked. But since the rotation_flag is set we call SCLogReopen which triggers another SCLogMessage when it doesn't have the proper permissions at that point. This results in a recursion in the scenario, since the flag is released AFTER the reopen.


Related issues 1 (0 open1 closed)

Related to Suricata - Bug #2306: suricata 4 deadlocks during failed output log reopeningClosedVictor JulienActions

VJ Updated by Victor Julien over 8 years ago Actions #1

  • Related to Bug #2306: suricata 4 deadlocks during failed output log reopening added

VJ Updated by Victor Julien over 8 years ago Actions #2

  • Status changed from New to Closed
  • Assignee changed from OISF Dev to Victor Julien
  • Target version changed from TBD to 4.1beta1
Actions

Also available in: PDF Atom