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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to