Received: from eggs.gnu.org ([2001:4830:134:3::10]:41577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woqvn-0000Y6-US for qemu-devel@nongnu.org; Mon, 26 May 2014 05:11:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Woqvg-0002yG-AO for qemu-devel@nongnu.org; Mon, 26 May 2014 05:10:55 -0400 Received: from oxygen.pond.sub.org ([144.76.244.19]:46468) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Woqvf-0002y4-VM for qemu-devel@nongnu.org; Mon, 26 May 2014 05:10:48 -0400 Received: from blackfin.pond.sub.org (p5B328AAB.dip0.t-ipconnect.de [91.50.138.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by oxygen.pond.sub.org (Postfix) with ESMTPSA id C5C0F20725 for ; Mon, 26 May 2014 11:10:45 +0200 (CEST) From: Markus Armbruster References: <1400073154-27069-1-git-send-email-armbru@redhat.com> <20140514132802.GB19672@T430.nay.redhat.com> <20140514142806.GK3610@noname.redhat.com> Date: Mon, 26 May 2014 11:10:44 +0200 In-Reply-To: <20140514142806.GK3610@noname.redhat.com> (Kevin Wolf's message of "Wed, 14 May 2014 16:28:06 +0200") Message-ID: <8761ks3nxn.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Fix core dump suppression in test 039 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Fam Zheng , qemu-devel@nongnu.org, stefanha@redhat.com Kevin Wolf writes: > Am 14.05.2014 um 15:28 hat Fam Zheng geschrieben: >> On Wed, 05/14 15:12, Markus Armbruster wrote: >> > The shell script attempts to suppress core dumps like this: >> > >> > old_ulimit=$(ulimit -c) >> > ulimit -c 0 >> > $QEMU_IO arg... >> > ulimit -c "$old_ulimit" >> > >> > This breaks the test hard unless the limit was zero to begin with! >> > ulimit sets both hard and soft limit by default, and (re-)raising the >> > hard limit requires privileges. Broken since it was added in commit >> > dc68afe. >> > >> > Could be fixed by adding -S to set only the soft limit, but I'm not >> > sure how portable that is in practice. Simply do it in a subshell >> > instead, like this: >> > >> > (ulimit -c 0; exec $QEMU_IO arg...) >> > >> > Signed-off-by: Markus Armbruster >> >> Reviewed-by: Fam Zheng > > Thanks, applied to the block branch. I just got this on a system with abrt installed: 039 3s ... - output mismatch (see 039.out.bad) --- 039.out 2014-05-23 11:45:22.436540656 +0200 +++ 039.out.bad 2014-05-26 11:06:37.757516376 +0200 @@ -11,7 +11,7 @@ Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 wrote 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) -./039: Aborted ( ulimit -c 0; exec "$@" ) +./039: Aborted (core dumped) ( ulimit -c 0; exec "$@" ) incompatible_features 0x1 ERROR cluster 5 refcount=0 reference=1 ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0 [...] I immediately erased abrt, as I have no use for it.