From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2FC9C433F5 for ; Fri, 15 Oct 2021 11:53:55 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 087E660524 for ; Fri, 15 Oct 2021 11:53:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 087E660524 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C0B938385E; Fri, 15 Oct 2021 13:53:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="Gs/Jh0pX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D1838384B; Fri, 15 Oct 2021 13:52:57 +0200 (CEST) Received: from mail-qt1-x82e.google.com (mail-qt1-x82e.google.com [IPv6:2607:f8b0:4864:20::82e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8FFF18383B for ; Fri, 15 Oct 2021 13:52:43 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x82e.google.com with SMTP id v17so8502146qtp.1 for ; Fri, 15 Oct 2021 04:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Q3XzQ1zDmAcAWRmkVVY2DlvsGOAkuQa+2y0GPg0XKzQ=; b=Gs/Jh0pXATxGXLW8RXX+zsAtIqi/V9VvoVEnbe+LXZSNek8g87u+KGotCEHyZvHspR Oxi5P/5kDmAcJ3mIFJvsk0Txbm+s3W/5YggioO/0ZPDnaPJDq6K3pMblsguxtKGfwCzD YFdtApVPRZG/jrxQxj1JvDZ7wVcPoeUcrmMWU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Q3XzQ1zDmAcAWRmkVVY2DlvsGOAkuQa+2y0GPg0XKzQ=; b=pm7QN4sV3W2TNdSl4vZpCOVOEQBZwdc096/Lha6o6mfT3VtsDEhh8cXNFvytaDGBuy xLKWiHjNFMZuffgiqlOX56lwFvZjjNCl7hVh8jdeKdcztJQ5bFr5MQZbumWv6fphP6oi oZNUWA8pU7JJ9gkDbImkB1/Cq8NcH1qtq530+I34PzIleJxivMjIIVTHLUv70NPnFdQy C3+aLSKlKxkvgxXitUJ9V6iHQJbCV14rTNqmcJ/1cHdc901Clsw0T3hjYwvUl93JZerk tn3hCpzd0UPotTcJsBJYplRjVfgubDOCnatBDp2VQRwMcdtYKODjdS83nlZ9PjUVart6 gbrQ== X-Gm-Message-State: AOAM531AquSV1IOJRRihwUA/YeMPove0drxW0n4uXg701qRKFlZM+jC3 h8eBkUvNdyzS8GgQetESfMg27g== X-Google-Smtp-Source: ABdhPJzy3fe0yo/Yt6Ue5HCuphhGx7Cdmw06kTjPMaSTZpqBbgHvzzASJT/9IPU4RCckOeyw2M8jaQ== X-Received: by 2002:a05:622a:10b:: with SMTP id u11mr12733987qtw.314.1634298762445; Fri, 15 Oct 2021 04:52:42 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-f8b0-5c25-4d47-ecdb.res6.spectrum.com. [2603:6081:7b01:cbda:f8b0:5c25:4d47:ecdb]) by smtp.gmail.com with ESMTPSA id y23sm2629833qtm.68.2021.10.15.04.52.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 04:52:41 -0700 (PDT) Date: Fri, 15 Oct 2021 07:52:39 -0400 From: Tom Rini To: Simon Glass Cc: U-Boot Mailing List , Marek Vasut , Heinrich Schuchardt , Stephen Warren Subject: Re: [PATCH v2] pytest: Show a message when sandbox crashes Message-ID: <20211015115239.GV7964@bill-the-cat> References: <20211008151523.3283426-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="nwm0+8ypT8JHVFqB" Content-Disposition: inline In-Reply-To: <20211008151523.3283426-1-sjg@chromium.org> X-Clacks-Overhead: GNU Terry Pratchett X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean --nwm0+8ypT8JHVFqB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 08, 2021 at 09:15:23AM -0600, Simon Glass wrote: > When a test hands on a real board there is no way on the console to obtain > any information about why it hung. >=20 > With sandbox we can actually find out that it died and get a signal or > exit code. Add this to make it easier to figure out what happened. >=20 > So instead of: >=20 > test/py/u_boot_spawn.py:171: in expect > c =3D os.read(self.fd, 1024).decode(errors=3D'replace') > E OSError: [Errno 5] Input/output error >=20 > We get: >=20 > test/py/u_boot_spawn.py:171: in expect > c =3D os.read(self.fd, 1024).decode(errors=3D'replace') > E ValueError: U-Boot exited with signal 11 (Signals.SIGSEGV) >=20 > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! --=20 Tom --nwm0+8ypT8JHVFqB Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmFpa4cACgkQFHw5/5Y0 tywWMgv/VTBgjvR8eqdHLKy8F+ugUi0RYyJDTOtY3WaUB206kPQyJ+46NDFOOL05 r/YJMgksWEoTYz82XRCNHozD5EG4YyusfNpy/0Bx8liRrrCe75m/fy8DldgtgdfO He2QW3vSIwCDokWs/QcS+b9uZuzt6FyZv/BiuAZw4dtJVOx1Q2fzvhozT+kv56+4 bX2FoWKAQNQezMlCqiUGihCekJpQih8nyR+LlvGcZuyH+IXLfnHyFdSReoS7vmSk ggZy02Q+XyU4d+n6Iz6ZpjVhprjPCL99lUu7rtWl+yXvZVP9uia4d/AawvsHyHld Hzii+FqHv5029JHBGhlaCmrmHk5cgKP/SSe+EaQ3NaW+hu4RDo6FfiHjSnTQg5PL LmlSkpN3mE02/0hE8KrY8W19otpW+vbK8ufgPc6LNj/tgHNXiBGW8QMeSUAgBj5u Ncw4Vj6F2z6LbMCzZyiEV+3FZSgE71Y5x2DvU/Ar0xesBImhnXQch/PprAMHonSP FZFR2hw/ =BFpT -----END PGP SIGNATURE----- --nwm0+8ypT8JHVFqB--