[Bug 15037] New: Stop-hooks sometimes fail to fire on Linux

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

             Bug #: 15037
           Summary: Stop-hooks sometimes fail to fire on Linux
           Product: lldb
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
        AssignedTo: lldb-dev@cs.uiuc.edu
        ReportedBy: daniel.malea@intel.com
    Classification: Unclassified

LLDB stop-hooks occasionally (but not always) fail to fire on Linux, which
causes a timeout in one of the test cases (and for users of the python API that
depend on being notified when the inferior process has stopped).

To reproduce, remove the @expectedFailureLinux decorator from
TestStopHookMechanism.py and run:

python dotest.py --executable <path-to-lldb> functionalities/stop-hook

It should be noted that the above intermittently fails (so re-run if it
passes). It seems likely that a race condition is the root-cause, but I have
not confirmed this.