[PATCH] D17785: Add step to kill stale symbolizer processes before building

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 15:11:23 PST 2016


rnk created this revision.
rnk added reviewers: eugenis, gkistanova.
rnk added a subscriber: llvm-commits.

This comes up from time to time and we have to reboot the builder.

http://reviews.llvm.org/D17785

Files:
  zorg/buildbot/builders/SanitizerBuilderWindows.py

Index: zorg/buildbot/builders/SanitizerBuilderWindows.py
===================================================================
--- zorg/buildbot/builders/SanitizerBuilderWindows.py
+++ zorg/buildbot/builders/SanitizerBuilderWindows.py
@@ -45,6 +45,15 @@
     ############# PREPARING
     f = buildbot.process.factory.BuildFactory()
 
+    # Kill any stale symbolizer processes for the last run. If there are any
+    # stale processes, the build will fail during linking. This can happen to
+    # any process, but it is most likely to happen to llvm-symbolizer if its
+    # pipe isn't closed.
+    f.addStep(ShellCommand(name='taskkill',
+                           description='kill stale processes',
+                           command=['taskkill', '/f', '/im', 'llvm-symbolizer'],
+                           haltOnFailure=False))
+
     # Determine Slave Environment and Set MSVC environment.
     f.addStep(SetProperty(
         command=getVisualStudioEnvironment(vs, target_arch),


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17785.49555.patch
Type: text/x-patch
Size: 987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160301/2326f9f4/attachment.bin>


More information about the llvm-commits mailing list