From patchwork Fri Mar 24 11:11:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Borntraeger X-Patchwork-Id: 9642723 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 64B90601E9 for ; Fri, 24 Mar 2017 11:12:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E9DB2833B for ; Fri, 24 Mar 2017 11:12:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3208928408; Fri, 24 Mar 2017 11:12:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B3EE92833B for ; Fri, 24 Mar 2017 11:12:12 +0000 (UTC) Received: from localhost ([::1]:60731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crN8d-0003zb-Dq for patchwork-qemu-devel@patchwork.kernel.org; Fri, 24 Mar 2017 07:12:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1crN7t-0003tB-9t for qemu-devel@nongnu.org; Fri, 24 Mar 2017 07:11:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1crN7q-0005wn-4J for qemu-devel@nongnu.org; Fri, 24 Mar 2017 07:11:25 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:56773 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1crN7p-0005wS-VD for qemu-devel@nongnu.org; Fri, 24 Mar 2017 07:11:22 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2OB3mtt145847 for ; Fri, 24 Mar 2017 07:11:21 -0400 Received: from e33.co.us.ibm.com (e33.co.us.ibm.com [32.97.110.151]) by mx0b-001b2d01.pphosted.com with ESMTP id 29cmcb4226-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 24 Mar 2017 07:11:20 -0400 Received: from localhost by e33.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 24 Mar 2017 05:11:20 -0600 Received: from b03cxnp08025.gho.boulder.ibm.com (9.17.130.17) by e33.co.us.ibm.com (192.168.1.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 24 Mar 2017 05:11:17 -0600 Received: from b03ledav003.gho.boulder.ibm.com (b03ledav003.gho.boulder.ibm.com [9.17.130.234]) by b03cxnp08025.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2OBBGQL10748268; Fri, 24 Mar 2017 04:11:16 -0700 Received: from b03ledav003.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8DF2D6A03B; Fri, 24 Mar 2017 05:11:16 -0600 (MDT) Received: from oc1450873852.ibm.com (unknown [9.152.224.202]) by b03ledav003.gho.boulder.ibm.com (Postfix) with ESMTP id 5DAFB6A03C; Fri, 24 Mar 2017 05:11:15 -0600 (MDT) To: Peter Maydell , QEMU Developers References: From: Christian Borntraeger Date: Fri, 24 Mar 2017 12:11:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: X-TM-AS-GCONF: 00 x-cbid: 17032411-0008-0000-0000-0000077D0203 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006840; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000206; SDB=6.00838215; UDB=6.00412160; IPR=6.00615979; BA=6.00005234; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014793; XFM=3.00000013; UTC=2017-03-24 11:11:19 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17032411-0009-0000-0000-000040EC908E Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-03-24_08:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1702020001 definitions=main-1703240097 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 148.163.158.5 Subject: Re: [Qemu-devel] qemu-system-s390x tests/boot-serial-test intermittent failure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Cornelia Huck , Thomas Huth , =?UTF-8?Q?Alex_Benn=c3=a9e?= , Alexander Graf , Richard Henderson Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP On 03/24/2017 11:57 AM, Peter Maydell wrote: > Hi; qemu-system-s390x seems to have an intermittent failure at > the moment -- it's been causing our Travis builds to flap. I actually > caught it doing this on one of my local test builds (which happens > to be aarch64 but I don't think that matters, since Travis is doing > x86 builds): > > while QTEST_QEMU_BINARY=s390x-softmmu/qemu-system-s390x > QTEST_QEMU_IMG=qemu-img MALLOC_PERTURB_=${MALLOC_PERTURB_:-$((RANDOM % > 255 + 1))} gtester -k --verbose -m=quick tests/boot-serial-test ; do > true; done > TEST: tests/boot-serial-test... (pid=1122) > /s390x/boot-serial/s390-ccw-virtio: OK > PASS: tests/boot-serial-test > TEST: tests/boot-serial-test... (pid=1135) > /s390x/boot-serial/s390-ccw-virtio: OK > [skip lots more successes] > TEST: tests/boot-serial-test... (pid=1582) > /s390x/boot-serial/s390-ccw-virtio: > Broken pipe > FAIL > GTester: last random seed: R02Se94f36f305f2edd8391a22749ec91143 > (pid=1635) > FAIL: tests/boot-serial-test > > Any ideas? > thanks Adding Thomas who did the s390 version. One idea. Maybe qemu exits before the other side is ready. Does reverting commit 864111f422babcf8ce837fb47f7f9e1948446f22 Author: Christian Borntraeger AuthorDate: Tue Oct 18 09:29:54 2016 +0200 Commit: Paolo Bonzini CommitDate: Wed Nov 2 09:28:56 2016 +0100 vl: exit qemu on guest panic if -no-shutdown is not set help? If yes, does also help? diff --git a/tests/boot-serial-test.c b/tests/boot-serial-test.c index 57edf6a..11f48b0 100644 --- a/tests/boot-serial-test.c +++ b/tests/boot-serial-test.c @@ -79,8 +79,8 @@ static void test_machine(const void *data) g_assert(fd != -1); args = g_strdup_printf("-M %s,accel=tcg -chardev file,id=serial0,path=%s" - " -serial chardev:serial0 %s", test->machine, - tmpname, test->extra); + " -no-shutdown -serial chardev:serial0 %s", + test->machine, tmpname, test->extra); qtest_start(args); unlink(tmpname);