From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 118E23858282; Tue, 19 Mar 2024 15:14:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 118E23858282 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1710861296; bh=9oaKrzl1MK8msuWanKZxTr/rzOB7u9m56BH57Qne3Cg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ANcpNWTBC9EehUFjtsYvoJPaR6L7a5Lc7u0/K6HPHddm7V4iE0FAkl2NH3OyQtmcW q7JSWBv12k1cXY4msju04MVujkB98yfWFdhsD9J9CbESlmhbHeM55uWrhZZs3qCZ9b BtzWXnpU9mUw2JqeTtm1yFymQHlpr7SX/lbUKZyk= From: "cel at linux dot ibm.com" To: gdb-prs@sourceware.org Subject: [Bug testsuite/31312] attach-many-short-lived-threads gives inconsistent results Date: Tue, 19 Mar 2024 15:14:54 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: testsuite X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cel at linux dot ibm.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: cel at linux dot ibm.com X-Bugzilla-Target-Milestone: 15.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31312 --- Comment #20 from Carl E Love --- I tried the prototype patch from Thiago. It seems to fix the hangs on deta= ch.=20 I ran the many-short-lived threads test 500 times. I did have three runs t= hat encountered a new error I haven't seen before.=20=20 FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 6: break at break_fn: 1 FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 6: break at break_fn: 2 (the program is no longer running) FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 6: break at break_fn: 3 (the program is no longer running) FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 6: reset timer = in the inferior FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 6: detach (the program is no longer running) It seems the workload had finished before the expect script finished runnin= g.=20 So we may want to address that as a separate patch later.=20 Thiago's fix seems to work well on Power 10. I did work on the strace as suggested. I was trying to get strace to attac= h to the gdb thread from the expect script. Haven't got the script to get the correct gdb PID yet. I think I was trying to attach to the expect script w= hich strace fails to attach to. I tried writing a script that I could run after= the workload started that would call ps and try to grep out the gdb process id = and attach to it but again I haven't got that working yet either.=20=20 I will try and work on the strace thing some more but not sure if it is rea= lly needed at this point given that Thiago seems to have figured out the issues. --=20 You are receiving this mail because: You are on the CC list for the bug.=