From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by sourceware.org (Postfix) with ESMTPS id 4DE123858C52 for ; Wed, 24 Jan 2024 18:51:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4DE123858C52 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 4DE123858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.158.5 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706122273; cv=none; b=QSwSzm59RmSbdweN5g2VtiReR4oRHetM3aUh9npz+hm70Z7+J/Zah8P+ZAA9mmdklQmkn05xf4C+1tUWvlpkpc/ugZaWBbpnmcYbnMDPQStfuPTAoRsmeQplJC4QEnJeEegmMiBknhUi9KuuXI2r+homelXlBquRxcnvTm6y7DI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706122273; c=relaxed/simple; bh=cyCc0rcVH9FC7zQ/G7A9hpU8P9KFo/hawx6eZY60xZk=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=TAXERazfaLTAURZUVJynB5CsXaSh1wYY3M8iqpzQo879neSLo71QQNBfYrwnaja4EiLCiVjw82vYjHAEnXqoQZ90AHNMLqgVsNugxKemYsvWEAJm8Xsit0maOQ8s50xYdxRuyE1+WnUvFYGE3eltzh0O9XSHJkWcn+5s/WDc3js= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353724.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 40OIDQer015475; Wed, 24 Jan 2024 18:51:11 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=ia/hPmoC8eMgDRG0H/udiL8ljzx/cGZHiBuvfGqy8LI=; b=qk+Z4L9oPmZBGK1xgE+y3xMYQRvnhBwPc8tD+e5pBnQVXfiH8k6M2Ff229iXFlyx5dD3 hJfAQjUWFWyUkliOxz6Ih3sriZxTkz8sNFI80fqFXHv9dOX7fMWHBB08sjkmO7N9Fzab I0d5e1Mo3PRWRa8cZRsGHn1dYPfMGcD90U3275z6VFd3KZZE608P8sv5yqTgNoSHGJvu 0ut/JLbT0KSZl+iVBAVu8OllsMTQhvtbuDANKcC5eVjX0mPoDBVAWFpOVV4UfQdrqqiP LAgTIWmm5BIQh2ptKrTbWY/Z/cEYazGYtNY3gES78mf+mYMy/jTnCBG8wqoKhjpCVDsU Hw== Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3vu555e6s4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 18:51:10 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 40OH5Hf0022560; Wed, 24 Jan 2024 18:51:10 GMT Received: from smtprelay02.wdc07v.mail.ibm.com ([172.16.1.69]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3vrt0m7gtf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 24 Jan 2024 18:51:10 +0000 Received: from smtpav06.wdc07v.mail.ibm.com (smtpav06.wdc07v.mail.ibm.com [10.39.53.233]) by smtprelay02.wdc07v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 40OIp99Z21627400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 24 Jan 2024 18:51:09 GMT Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 978585804E; Wed, 24 Jan 2024 18:51:09 +0000 (GMT) Received: from smtpav06.wdc07v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E17515803F; Wed, 24 Jan 2024 18:51:08 +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 18:51:08 +0000 (GMT) Message-ID: Date: Wed, 24 Jan 2024 10:51:08 -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, Carl Love References: <20240115231801.28434-1-tdevries@suse.de> <87wms5l24p.fsf@tromey.com> From: Carl Love In-Reply-To: <87wms5l24p.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: zjQ-ZynywG-HnF21_Bax16NxOQfi7JSO X-Proofpoint-ORIG-GUID: zjQ-ZynywG-HnF21_Bax16NxOQfi7JSO 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_08,2024-01-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 spamscore=0 adultscore=0 bulkscore=0 priorityscore=1501 suspectscore=0 malwarescore=0 impostorscore=0 mlxlogscore=999 clxscore=1011 phishscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2401240136 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,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/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. Carl