From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 6G3mI4JbtmAbYgAAWB0awg (envelope-from ) for ; Tue, 01 Jun 2021 12:08:34 -0400 Received: by simark.ca (Postfix, from userid 112) id 8995B1F163; Tue, 1 Jun 2021 12:08:34 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,RDNS_DYNAMIC, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2BCCF1E54D for ; Tue, 1 Jun 2021 12:08:33 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9FB283846013 for ; Tue, 1 Jun 2021 16:08:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FB283846013 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1622563712; bh=WLltFU3BZqQJ9+k7BHXE8CKCjW60iSThKw+ZFQ3FxLU=; h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Jf6xoaKKPz9xZrHOMYAstX8rAYYlrsMRsveb6yGTUL6xZCJOuXq69bxuUUp+DRnZv E7lBFVqnf6kFqRDLIzXviWzzVKBwcjL3pIpyxtQ6SzKBC2kp4xa4g0SkZe5Iwl50f7 OEjFOWqbIS8lZl2c35E6FSfAmGhwmxG6MGflyQBk= Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 9F13E3857819 for ; Tue, 1 Jun 2021 16:08:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9F13E3857819 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 151G8589017537 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 1 Jun 2021 12:08:10 -0400 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 151G8589017537 Received: from [10.0.0.11] (192-222-157-6.qc.cable.ebox.net [192.222.157.6]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 059611E54D; Tue, 1 Jun 2021 12:08:04 -0400 (EDT) Subject: Re: [PATCH] kill all threadapply processes at end of test To: Carl Love , Pedro Franco de Carvalho , gdb-patches@sourceware.org References: <87cztn7lk9.fsf@linux.ibm.com> <875yzflgzs.fsf@linux.ibm.com> <73bcfb777e72f549218cb431784e103b1831ea30.camel@us.ibm.com> <95a322dd-8059-8a48-acf5-07b965585995@polymtl.ca> <5c776f594a2cb584423ba95d9b3d7ea1ae527def.camel@us.ibm.com> Message-ID: <45240f47-fb67-8d59-be02-427d66f9d776@polymtl.ca> Date: Tue, 1 Jun 2021 12:08:04 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <5c776f594a2cb584423ba95d9b3d7ea1ae527def.camel@us.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Tue, 1 Jun 2021 16:08:05 +0000 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Cc: ulrich.weigand@de.ibm.com, tom@tromey.com, rogealve@br.ibm.com Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > I have added a commit message describing the issue with the test and > how the patch fixes the issue. > > Please let me know if the patch is acceptable for committing to GDB > mainline. Thanks. > > Carl > > --------------------------------------------------------------------- > Fix threadapply test > > The current test case leaves detached processes running at the end of > the test. This patch changes the test to use a barrier wait to ensure all > processes exit cleanly at the end of the tests. > > gdb/testsuite/ChangeLog: > > 2021-05-22 Carl Love > > * gdb.threads/threadapply.c: Add global mybarrier. > (main): Add pthread_barrier_init. > (thread_function): Replace while loop with myp increment and > pthread_barrier_wait. Thanks, this is OK. Do you have push access or know somebody that could push it for you? Otherwise, I can do it. Simon