validate:launcher: Timeout if running gdb takes too much time
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 14 Nov 2016 21:41:34 +0000 (18:41 -0300)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Mon, 14 Nov 2016 21:44:27 +0000 (18:44 -0300)
validate/launcher/utils.py

index 0f3f6762eb19f0986ea5367e3a6026935ba737e6..34b0df0ebb45a6db1fd37c1ac302d565c0592844 100644 (file)
@@ -301,7 +301,7 @@ class BackTraceGenerator(Loggable):
 
         try:
             return subprocess.check_output(
-                gdb, stderr=subprocess.STDOUT).decode()
+                gdb, stderr=subprocess.STDOUT, timeout=30).decode()
         except Exception as e:
             return "Could not run `gdb` on process (pid: %d):\n%s" % (
                 test.process.pid, e)