From patchwork Wed May 13 17:51:25 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 186677 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp670555ilb; Wed, 13 May 2020 10:54:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIgXhszQa55gn5Ds5RxSZZ8ULBr4CejOk/PqiKPvIu9ez54dawzoheGoFCVx7ZWjqquEMN X-Received: by 2002:ae9:ed95:: with SMTP id c143mr880433qkg.314.1589392465893; Wed, 13 May 2020 10:54:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589392465; cv=none; d=google.com; s=arc-20160816; b=RGS0WID9rOP51VLPA1/dZg4XuI6PIShLbm9O7pK/hpsqKo83B6XphF+B3ytnDXxHyE 7VJ6ahdLZR+Car4Up+5POBf2cSKhnTUKGGu1RCqpeYepb6Ekm1LHDz8DSABqyhVkqF52 7ev9v+FcXFluSh5Ro/UBP2jjgkT1jVvkf1iocb+yz2BQsfqrV+zRd/hm5KKnLz0+bHYC DPSHOPHS0d190HW06R3pFU5XuHUV22YrqYC7nhRp5vDBYwP1baTL4ajLuGM5S9AXfV8U fhUhNQD5dgkfGBzV13jtqpSZSBluVHdqQ7MhzQRaRgBa5G6LjiRkckMv/cVHqRzge4C4 qtcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=yZ7Kz7mTKR6F85RFkM8gYJqayYGL/UEHlzggZx2/D6I=; b=mtDiWwaTkzxx25JkIIp+e9Giyv/eeDCvOuQvJhPsuqRHe8LcG3MwGZyPvtDYc+XiQY 1TpNyK9NRsNlzilH4F97BSKNR2mMaiNbvtyDw61I6yVtmk23EkJhL9ZDtuMBBvhtfuw6 BFZeOaL8V5u3w0IlN5IfljZHV2/vp7blvA77LfsN2piRsjR11pgER2azCPy/+bgZ1Tbz Stv6qAyke2oXqpvOw46AlTCDDASgAi7H553DumCaOUD6xA9YRriWHhuhZEsGexrLgwtW ivD4Bx1RJCVLeAFKvmpgv5T+qIyfJe9dh50PcFqC+6KcDS78PJOHoXvpiYLXWL4sg/V9 A/sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hewj1P5T; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d18si105719qka.110.2020.05.13.10.54.25 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 May 2020 10:54:25 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Hewj1P5T; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:48850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYvaL-00045g-Bz for patch@linaro.org; Wed, 13 May 2020 13:54:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYvXh-0000jS-H4 for qemu-devel@nongnu.org; Wed, 13 May 2020 13:51:41 -0400 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]:34151) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYvXg-0004xc-Ci for qemu-devel@nongnu.org; Wed, 13 May 2020 13:51:41 -0400 Received: by mail-wr1-x442.google.com with SMTP id y3so567639wrt.1 for ; Wed, 13 May 2020 10:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yZ7Kz7mTKR6F85RFkM8gYJqayYGL/UEHlzggZx2/D6I=; b=Hewj1P5TdhhgUKPudvdnzaBTw1wD+rS6hItKNQ+o/MlUR1xpwEtapYYZvzP2ha2udC P8GGrL7w6Iulx4T42llediNkBOWnWn0S3HBHBCJuGS+QeLWQef5e0x0xUVbjk5mfmwEA xGJ196Hizcgsw2QldS34Et1VGioPsW/VuoYn9r6JmeSLwiiZymeNEenykwfOkunEyGnP 4PS9gvoLMiIcvo3+lBbWBCW5gHi/RQStGJ3tgvJ2wHPt5WCqlwQv0xx5oOinppV7288g 3aLRK6lPrggMTrtadLk5v7Put1Boy75RE8qI0hWkch9r8qvdMnIfMBxITBdw0BZm6Zwq Eb4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yZ7Kz7mTKR6F85RFkM8gYJqayYGL/UEHlzggZx2/D6I=; b=CpnmXl2cBCQb7RqXUX5YCqAI+7LFCH2XLmEbVtQ7KbhDCqwiK8cHffAEnrcxgGXCO+ 6PB4mIWI45qF5xWBWWOPuKbEsYo39TQhwWnGxD3IPxAKHwk1pe5PnLNLxtrhgA2CI9/Y HZsDfvnx8mMeT3UUtOJUlaiJ/jYka0k6aREqCBHkUlmK35HOtWmEdm5l4mCJcq7TNG8u 76svRZew6dEgYoZNBYKVXD+cBfR2ISuXAETJPGZFKtnEfmbwH424XHE91vjFqIex6ORd 36TWIM1IIjicxinjKm404D4kmlsA5l/tB/1bA+03xaynXZHpemf3GQOPgJ/9C/uLGqpO NDug== X-Gm-Message-State: AOAM5300fVovLcGFrUicBHTadJKeor5k8PqitmA9UwzpAmps8hBevqKB STXzBcf7wYx7vNZmomhH2uV/NQ== X-Received: by 2002:adf:dfcf:: with SMTP id q15mr482206wrn.137.1589392299029; Wed, 13 May 2020 10:51:39 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id q17sm19462878wmk.36.2020.05.13.10.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 May 2020 10:51:35 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id E21DB1FF87; Wed, 13 May 2020 18:51:34 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 01/10] tests/guest-debug: catch hanging guests Date: Wed, 13 May 2020 18:51:25 +0100 Message-Id: <20200513175134.19619-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200513175134.19619-1-alex.bennee@linaro.org> References: <20200513175134.19619-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x442.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" If gdb never actually connected with the guest we need to catch that and clean-up after ourselves. Signed-off-by: Alex Bennée Message-Id: <20200512104338.27365-1-alex.bennee@linaro.org> --- tests/guest-debug/run-test.py | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/guest-debug/run-test.py b/tests/guest-debug/run-test.py index d9af9573b9e..71c55690546 100755 --- a/tests/guest-debug/run-test.py +++ b/tests/guest-debug/run-test.py @@ -80,4 +80,10 @@ if __name__ == '__main__': print("GDB crashed? SKIPPING") exit(0) + try: + inferior.wait(2) + except subprocess.TimeoutExpired: + print("GDB never connected? Killed guest") + inferior.kill() + exit(result)