From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24240 invoked by alias); 4 Dec 2018 23:11:52 -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 24231 invoked by uid 89); 4 Dec 2018 23:11:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mailsec111.isp.belgacom.be Received: from mailsec111.isp.belgacom.be (HELO mailsec111.isp.belgacom.be) (195.238.20.107) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 04 Dec 2018 23:11:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skynet.be; i=@skynet.be; q=dns/txt; s=securemail; t=1543965110; x=1575501110; h=message-id:subject:from:to:date:in-reply-to:references: mime-version:content-transfer-encoding; bh=DCflxBt/GOznOwIyZgv/Q0dfSLgz1lql85N50q4cOrU=; b=z1uaixASPpJNR5LsKl0bWTyguPF8M+wy/NQXt27ZMHVfctbLjwDsD7jE A6t1wPA6r+Jf8ZjuFhOuGJGNczNdYw==; Received: from 184.205-67-87.adsl-dyn.isp.belgacom.be (HELO md) ([87.67.205.184]) by relay.skynet.be with ESMTP/TLS/AES256-GCM-SHA384; 05 Dec 2018 00:11:48 +0100 Message-ID: <1543965108.10519.6.camel@skynet.be> Subject: Re: [RFA] Fix tid-reuse sometimes blocks for a very long (infinite?) time. From: Philippe Waroquiers To: Pedro Alves , gdb-patches@sourceware.org Date: Tue, 04 Dec 2018 23:11:00 -0000 In-Reply-To: References: <20181104200048.2463-1-philippe.waroquiers@skynet.be> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00049.txt.bz2 On Tue, 2018-12-04 at 15:23 +0000, Pedro Alves wrote: > On 11/04/2018 08:00 PM, Philippe Waroquiers wrote: > > A failure that seems to cause a long/infinite time is the following: > > > > For a not clear reason, tid-reuse.c spawner thread sometimes gets an error: > > tid-reuse: /bd/home/philippe/gdb/git/build_moreaa/gdb/testsuite/../../../moreaa/gdb/testsuite/gdb.threads/tid-reuse.c:58: spawner_thread_func: Assertion `rc == 0' failed. > > Odd. It'd be interesting to know what was the value of 'rc'. > I suspect it was EAGAIN, but I'm not seeing why you'd get that: > the test spawns each thread and waits for it to die before spawning > a new one. Maybe you were testing in parallel mode, and some other > testcase happens to exhaust the number of threads simultaneously? > I'm thinking of perhaps gdb.threads/attach-many-short-lived-threads.exp, > for example. Yes, I also suspect it will be EAGAIN (at least man pthread_create does not show much other possibilities). I have submitted an RFAv2 : compared to v1, it reports the value of 'rc' before crashing. Thanks Philippe