[LLVMbugs] [Bug 5277] New: Program::Wait is unsafe to call from multiple threads

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 22 11:58:08 PDT 2009


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: unassignedbugs at nondot.org
        ReportedBy: daniel at zuster.org
                CC: kremenek at apple.com, llvmbugs at cs.uiuc.edu,
                    snaroff at apple.com


(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.



More information about the llvm-bugs mailing list