From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id E97723858D28 for ; Wed, 24 Jan 2024 20:47:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E97723858D28 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E97723858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706129238; cv=none; b=j0yXzQDnGE0wnTgHEzf2J7NEvwcKn8rKY+jaX09D/57ZnqVToMjESL/25clkCtNTA1qAPMqhlGliZJUhp910H1rXKRDijF2bg8DgputyaQTlzPKRTTJ6TYjgWbDPaWqc223D87NBNmm+0xAZkbEL78CCd9GyCOhSd7okfbIfffs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706129238; c=relaxed/simple; bh=aB7n+ib7MYSmsuQpBddksbr35fV5gAKKkGzFdMbuekY=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=Vahzk8rAyjsryC+EjHH7ezByKqgFXgqXLqPI4KP15n+VwqdTYrABIYzLOTMugvK3UCg9OrRpVqzdCIy9MXtbmYSH9bbSkJHx5qBYD3uL+Knj62nngn+EmnSzNkq3aa8uYXwcX6RkfT0j+eh959OSd5vn0nk3XXnhR7xMNEfVxUI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353729.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40OKMQKd032198; Wed, 24 Jan 2024 20:47:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=Yrdm+5L6syjAf5fT38iGaqAADPIWuk+QOm0rWyWshyE=; b=YhOz4+Mb35Y6kpDYaJV5bZobXjw8iDv4QoAurUPkfsM9xPXqsoJt7schow5qQoGZIsdg sCLtONNvgjkwNyeFKfefvmE1NPv3gzV7ZT4aKsnHkRWptLpQibyTh+DFcqE2Oh0A98oz CDmuyO3xpMC4ZPDUIMCBYR8EN4L6Am0pVDulUYAxRKjRXkQwCdd+1YSOGOaMW+GAnzXK pX0EoIA02kFsoAGUFFjTWRlyPbkmdLnBjdQmo95EJ83K7Q05eycFD7kl6+ZcGX0cCkpM Rh6COgAgcrhkTppq4RADhMsV4I5RC7R7YOC0OmiC1UnWq/2eXO6776IQuC3k+S1BDBjI ig== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vu9h9gh7u-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 20:47:13 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 40OKJMCH028287; Wed, 24 Jan 2024 20:47:12 GMT Received: from smtprelay03.dal12v.mail.ibm.com ([172.16.1.5]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3vru72qvn1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 20:47:12 +0000 Received: from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com [10.39.53.233]) by smtprelay03.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 40OKlCua18088564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Jan 2024 20:47:12 GMT Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E22C35804E; Wed, 24 Jan 2024 20:47:11 +0000 (GMT) Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 565985803F; Wed, 24 Jan 2024 20:47:11 +0000 (GMT) Received: from [9.67.177.45] (unknown [9.67.177.45]) by smtpav06.wdc07v.mail.ibm.com (Postfix) with ESMTP; Wed, 24 Jan 2024 20:47:11 +0000 (GMT) Message-ID: Date: Wed, 24 Jan 2024 12:47:10 -0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [gdb/testsuite] Update xfail in gdb.threads/attach-many-short-lived-threads.exp Content-Language: en-US To: Tom Tromey , Tom de Vries Cc: gdb-patches@sourceware.org References: <20240115231801.28434-1-tdevries@suse.de> <87wms5l24p.fsf@tromey.com> From: Carl Love In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: OWueAtixyMwVUBdTMOoyU49qaASaAgW- X-Proofpoint-ORIG-GUID: OWueAtixyMwVUBdTMOoyU49qaASaAgW- X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-24_09,2024-01-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 mlxlogscore=907 priorityscore=1501 phishscore=0 adultscore=0 bulkscore=0 suspectscore=0 impostorscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401240151 X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,BODY_8BITS,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Tom: On 1/24/24 10:51, Carl Love wrote: > Tom: > > On 1/19/24 08:27, Tom Tromey wrote: >>>>>>> "Tom" == Tom de Vries writes: >> >> Tom> But since commit c6f7f9c80c3 ("Bail out of "attach" if a thread cannot be >> Tom> traced"), the warning has been changed into an error. >> >> Tom> Fix the FAIL by updating the test-case to expect an error instead of a >> Tom> warning. >> >> Thanks, this looks good to me. >> Approved-By: Tom Tromey >> >> Tom > > The patch fixes the issues on my Power 9 box running "Ubuntu 22.04.3 LTS. > > However, the Power 10 box running Fedora Linux 38 (Server Edition) still reports a lot of errors. I see the errors in the daily build on the machine.  I can reproduce the failures when running the test by itself with: > > make check RUNTESTFLAGS='GDB=/home/carll/bin/gdb gdb.threads/attach-many-short-lived-threads.exp ' > > Here is some of the output from gdb.log: > > The program is not being run. > (gdb) file /home/carll/GDB/build-current/gdb/testsuite/outputs/gdb.threads/attach-many-short-lived-threads/attach-many-short-lived-threads > Reading symbols from /home/carll/GDB/build-current/gdb/testsuite/outputs/gdb.threads/attach-many-short-lived-threads/attach-many-short-lived-threads... > (gdb) builtin_spawn /home/carll/GDB/build-current/gdb/testsuite/outputs/gdb.threads/attach-many-short-lived-threads/attach-many-short-lived-threads > attach 3385832 > Attaching to program: /home/carll/GDB/build-current/gdb/testsuite/outputs/gdb.threads/attach-many-short-lived-threads/attach-many-short-lived-threads, process 3385832 > Cannot attach to lwp 3513884: Operation not permitted (1) > (gdb) XFAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 1: attach (EPERM) > attach 3385832 > Attaching to program: /home/carll/GDB/build-current/gdb/testsuite/outputs/gdb.threads/attach-many-short-lived-threads/attach-many-short-lived-threads, process 3385832 > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: attach (timeout) > info threads > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: no new threads (timeout) > set breakpoint always-inserted on > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: set breakpoint always-inserted on (timeout) > break break_fn > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break break_fn (timeout) > continue > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break at break_fn: 1 (timeout) > continue > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break at break_fn: 2 (timeout) > continue > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: break at break_fn: 3 (timeout) > print again = 1 > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: reset timer in the inferior (timeout) > print seconds_left > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: print seconds_left (timeout) > detach > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: detach (timeout) > set breakpoint always-inserted off > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: set breakpoint always-inserted off (timeout) > delete breakpoints > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 2: delete all breakpoints in delete_breakpoints (timeout) > ERROR: breakpoints not deleted > attach 3385832 > UNRESOLVED: gdb.threads/attach-many-short-lived-threads.exp: iter 3: attach (timeout) > info threads > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: no new threads (timeout) > set breakpoint always-inserted on > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: set breakpoint always-inserted on (timeout) > break break_fn > FAIL: gdb.threads/attach-many-short-lived-threads.exp: iter 3: break break_fn (timeout) > continue > > etc. > > closing exp10 > waiting for exp10 > testcase /home/carll/GDB/build-current/gdb/testsuite/../../../binutils-gdb-current/gdb/testsuite/gdb.threads/attach-many-short-lived-threads.exp completed in 1910 seconds > >                 === gdb Summary === > > # of expected passes            1 > # of unexpected failures        98 > # of expected failures          1 > # of unresolved testcases       8 > > > > Not sure if the failures are specific to the Distro/OS or not.  But I will try testing on a Power 10 system with other distros and let you know.  Please let me know if you have any ideas on how to fix these errors on Power 10. I tried running the test on various Power 10 systems with varying results: Ubuntu 22.04.3 LTS === gdb Summary === # of expected passes 34 # of expected failures 7 --------------------------- Red Hat Enterprise Linux 9.3 (Plow) # of unsupported tests 1 Seems really odd, will have to look into this more -------------------------- SUSE Linux Enterprise Server 15 SP5 === gdb Summary === # of expected passes 109 -------------------------- Fedora Linux 38 (Server Edition) === gdb Summary === I get inconsistent results # of expected passes 56 # of unexpected failures 32 # of expected failures 2 # of unresolved testcases 2 === gdb Summary === # of expected passes 109 I have run this test multiple times and had failures. Now it is running without any errors??? Not sure what has changed. I will keep an eye on this to see if things change again. Carl