[llvm-bugs] [Bug 44792] New: Dead lock when forking with coverage enabled in multithreaded environment

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Feb 5 02:05:08 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=44792

            Bug ID: 44792
           Summary: Dead lock when forking with coverage enabled in
                    multithreaded environment
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: profile
          Assignee: unassignedbugs at nondot.org
          Reporter: cdenizet at mozilla.com
                CC: llvm-bugs at lists.llvm.org

When forking, the mutex defined here:
https://github.com/llvm/llvm-project/blob/master/compiler-rt/lib/profile/GCDAProfiling.c#L67
must be reinitialized in child process else the mutex in a locked stated can be
duplicate and then when a thread in child process attempts to lock it then it
wait for ever.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200205/6a4c0336/attachment.html>


More information about the llvm-bugs mailing list