http://llvm.org/bugs/show_bug.cgi?id=5277

           Summary: Program::Wait is unsafe to call from multiple threads
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core LLVM classes
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected],
                    [email protected]


(found via inspection)

Program::Wait uses ::wait and expects that it will either return the child PID
or EINTR, other cases cause an error. This is invalid if multiple threads
happen to call Program::Wait concurrently. The code should change to use
waitpid.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to