From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 92432 invoked by alias); 4 Feb 2020 10:10:33 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 92420 invoked by uid 89); 4 Feb 2020 10:10:32 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-9.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy= X-HELO: mx1.osci.io Received: from polly.osci.io (HELO mx1.osci.io) (8.43.85.229) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Feb 2020 10:10:31 +0000 Received: by mx1.osci.io (Postfix, from userid 994) id A9F7320178; Tue, 4 Feb 2020 05:10:29 -0500 (EST) Received: from gnutoolchain-gerrit.osci.io (gnutoolchain-gerrit.osci.io [8.43.85.239]) by mx1.osci.io (Postfix) with ESMTP id 56F53202F2; Tue, 4 Feb 2020 05:10:27 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by gnutoolchain-gerrit.osci.io (Postfix) with ESMTP id 39F0C2816C; Tue, 4 Feb 2020 05:10:27 -0500 (EST) X-Gerrit-PatchSet: 1 Date: Tue, 04 Feb 2020 10:10:00 -0000 From: "Tom de Vries (Code Review)" To: gdb-patches@sourceware.org Cc: Simon Marchi Auto-Submitted: auto-generated X-Gerrit-MessageType: comment Subject: [review] [gdb/testsuite] Add note to 'Race detection' entry in README X-Gerrit-Change-Id: I12ef2f0ec35abc5a0221585bf30e5f4f0616aa7c X-Gerrit-Change-Number: 762 X-Gerrit-ChangeURL: X-Gerrit-Commit: fc61066b037fb638e70b4c30044a562212edebff In-Reply-To: References: X-Gerrit-Comment-Date: Tue, 4 Feb 2020 05:10:26 -0500 Reply-To: gnutoolchain-gerrit@osci.io MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline User-Agent: Gerrit/3.0.3-79-g83ff7f88f1 Content-Type: text/plain; charset=UTF-8 Message-Id: <20200204101027.39F0C2816C@gnutoolchain-gerrit.osci.io> X-SW-Source: 2020-02/txt/msg00064.txt.bz2 Tom de Vries has posted comments on this change. Change URL: https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/762 ...................................................................... Patch Set 1: > Patch Set 1: > > Out of curiosity, do you have an example of this? Surely, you must have experienced a concrete case of this happening :) I ran into this while working on https://gnutoolchain-gerrit.osci.io/r/c/binutils-gdb/+/133 , where I would try to match: ... [Inferior 1 exited ... ]^M (gdb) [Inferior 2 exited ... ]^M ... An easier way to reproduce this is: ... $ cat gdb/testsuite/gdb.base/check-read1.c #include int main (void) { printf ("hello\n"); return 0; } ... and: ... $ cat gdb/testsuite/gdb.base/check-read1.exp standard_testfile if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} { return -1 } if ![runto_main] then { fail "can't run to main" return 0 } gdb_test "continue &" ... Where with make check we have: ... Running src/gdb/testsuite/gdb.base/check-read1.exp ... FAIL: gdb.base/check-read1.exp: continue & (timeout) === gdb Summary === # of unexpected failures 1 ... but with make check-read1 we have: ... Running src/gdb/testsuite/gdb.base/check-read1.exp ... === gdb Summary === # of expected passes 1 ... -- Gerrit-Project: binutils-gdb Gerrit-Branch: master Gerrit-Change-Id: I12ef2f0ec35abc5a0221585bf30e5f4f0616aa7c Gerrit-Change-Number: 762 Gerrit-PatchSet: 1 Gerrit-Owner: Tom de Vries Gerrit-Reviewer: Tom de Vries Gerrit-CC: Simon Marchi Gerrit-Comment-Date: Tue, 04 Feb 2020 10:10:26 +0000 Gerrit-HasComments: No Gerrit-Has-Labels: No Gerrit-MessageType: comment