[clazy] [Bug 410753] New: [check proposal] not holding mutex locks when emitting signals

Jean-Michaƫl Celerier bugzilla_noreply at kde.org
Fri Aug 9 09:41:10 BST 2019


https://bugs.kde.org/show_bug.cgi?id=410753

            Bug ID: 410753
           Summary: [check proposal] not holding mutex locks when emitting
                    signals
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: jeanmichael.celerier at gmail.com
                CC: smartins at kde.org
  Target Milestone: ---

It is a fast-track to recursive locks and deadlocks.

Like https://bugs.kde.org/show_bug.cgi?id=410751, it should not try to be
recursive and could in the first time be using simple heuristics, such as : 
- is there a std::lock_guard object in the scope where the signal is emitted or
a parent one
- in a second time, try to handle more complicated cases such as explicit
mutex.lock(), std::unique_lock or QMutexLocker.

This likely needs a proper control flow graph analysis to be correct, does
clang has something for that ?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list