From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gH2ZBLvN8mU/pQYAWB0awg (envelope-from ) for ; Thu, 14 Mar 2024 06:13:15 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=HJcioWw4; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=tKYZImQX; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=HJcioWw4; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=tKYZImQX; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 0C68D1E0BB; Thu, 14 Mar 2024 06:13:15 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A84B41E030 for ; Thu, 14 Mar 2024 06:13:12 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D5A933857BAF for ; Thu, 14 Mar 2024 10:13:11 +0000 (GMT) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) by sourceware.org (Postfix) with ESMTPS id DE0DC3858C31 for ; Thu, 14 Mar 2024 10:12:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DE0DC3858C31 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=suse.de ARC-Filter: OpenARC Filter v1.0.0 sourceware.org DE0DC3858C31 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710411167; cv=none; b=koRQNuV1eFD9Ro2CuBFcy+iIgxXRqtqj2kAkI9zYo1UOVMmgJ6M+2h8tb2RR2YojhNmfs+Bg6+nWzdlnfPa+qKScAxtJ0JMMcTsDv+Ghz//aSjzzN7IhbWTE+q3KeK2us7CVBwr2Xv0ov3tXuSUmLAX1+wDvrUD7ujo0aR0Ip3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1710411167; c=relaxed/simple; bh=oprDailjPytsPIPORbJ9xLG1aRWFD9KZP3HEfyWpL/8=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature:From: To:Subject:Date:Message-Id:MIME-Version; b=ID3bWFfjUNSgBsO4eCM+WPPmUcQssDTeia796mshv9b4cI3uPH6ZUha7904bWL4lW/EI0DH7zlIbhE2VWdyQ9u62XS5xblwPPasMC3eZAtzaRm+03UdH7/pmOLWzKIATkGN+8Tsyxl5LyAjzcj6IS5wgT4kqE6DvYr0Kbe/4z0w= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id AFF9921D0E for ; Thu, 14 Mar 2024 10:12:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710411162; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IOD1GGNdaug6tbpleOtmXJNfY+v+RyzDqLF0+XuqgVs=; b=HJcioWw46IBhPI2/dFYU37MdH9XzZyEeqjtJZi9JGa1GT0TU6c2nEdId0iGqBbvS2L4NVW SrquGMwRopaVJd4I28he5kZMbFB0FgMt3a39Z6ADToeCDjMriOoied0Ob0kBPQM12z5AZr L9fq/nrAsdG+X8l7OleDW/257j/zD4g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710411162; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IOD1GGNdaug6tbpleOtmXJNfY+v+RyzDqLF0+XuqgVs=; b=tKYZImQXVcleJR7jTUAOmPh+kJCkPkAeYQ7ASOHPK3C5kYdkWh41kKeJy2jJloiDlsP/sQ uhjPJSZkM9W3frCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1710411162; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IOD1GGNdaug6tbpleOtmXJNfY+v+RyzDqLF0+XuqgVs=; b=HJcioWw46IBhPI2/dFYU37MdH9XzZyEeqjtJZi9JGa1GT0TU6c2nEdId0iGqBbvS2L4NVW SrquGMwRopaVJd4I28he5kZMbFB0FgMt3a39Z6ADToeCDjMriOoied0Ob0kBPQM12z5AZr L9fq/nrAsdG+X8l7OleDW/257j/zD4g= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1710411162; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=IOD1GGNdaug6tbpleOtmXJNfY+v+RyzDqLF0+XuqgVs=; b=tKYZImQXVcleJR7jTUAOmPh+kJCkPkAeYQ7ASOHPK3C5kYdkWh41kKeJy2jJloiDlsP/sQ uhjPJSZkM9W3frCA== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 9155113929 for ; Thu, 14 Mar 2024 10:12:42 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id REB4IZrN8mVWSQAAD6G6ig (envelope-from ) for ; Thu, 14 Mar 2024 10:12:42 +0000 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH] [gdb/testsuite] Fix test-case gdb.threads/attach-stopped.exp on manjaro linux Date: Thu, 14 Mar 2024 11:13:35 +0100 Message-Id: <20240314101335.25078-1-tdevries@suse.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Authentication-Results: smtp-out1.suse.de; none X-Spamd-Result: default: False [1.90 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; R_MISSING_CHARSET(2.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; BROKEN_CONTENT_TYPE(1.50)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_NONE(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; MID_CONTAINS_FROM(1.00)[]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-3.00)[100.00%] X-Spam-Score: 1.90 X-Spam-Status: No, score=-12.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org When running test-case gdb.threads/attach-stopped.exp on aarch64-linux, using the manjaro linux distro, I get: ... (gdb) thread apply all bt^M ^M Thread 2 (Thread 0xffff8d8af120 (LWP 278116) "attach-stopped"):^M #0 0x0000ffff8d964864 in clock_nanosleep () from /usr/lib/libc.so.6^M #1 0x0000ffff8d969cac in nanosleep () from /usr/lib/libc.so.6^M #2 0x0000ffff8d969b68 in sleep () from /usr/lib/libc.so.6^M #3 0x0000aaaade370828 in func (arg=0x0) at attach-stopped.c:29^M #4 0x0000ffff8d930aec in ?? () from /usr/lib/libc.so.6^M #5 0x0000ffff8d99a5dc in ?? () from /usr/lib/libc.so.6^M ^M Thread 1 (Thread 0xffff8db62020 (LWP 278111) "attach-stopped"):^M #0 0x0000ffff8d92d2d8 in ?? () from /usr/lib/libc.so.6^M #1 0x0000ffff8d9324b8 in ?? () from /usr/lib/libc.so.6^M #2 0x0000aaaade37086c in main () at attach-stopped.c:45^M (gdb) FAIL: gdb.threads/attach-stopped.exp: threaded: attach2 to stopped bt ... The problem is that the test-case expects to see start_thread: ... gdb_test "thread apply all bt" ".*sleep.*start_thread.*" \ "$threadtype: attach2 to stopped bt" ... but lack of symbols makes that impossible. Fix this by allowing " in ?? () from " as well. Tested on aarch64-linux. PR testsuite/31451 Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31451 --- gdb/testsuite/gdb.threads/attach-stopped.exp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gdb/testsuite/gdb.threads/attach-stopped.exp b/gdb/testsuite/gdb.threads/attach-stopped.exp index 4be0e220b17..78e194c992f 100644 --- a/gdb/testsuite/gdb.threads/attach-stopped.exp +++ b/gdb/testsuite/gdb.threads/attach-stopped.exp @@ -54,10 +54,12 @@ proc corefunc { threadtype } { } # ".*sleep.*clone.*" would fail on s390x as bt stops at START_THREAD there. + set test "$threadtype: attach2 to stopped bt" if {[string equal $threadtype threaded]} { - gdb_test "thread apply all bt" ".*sleep.*start_thread.*" "$threadtype: attach2 to stopped bt" + gdb_test "thread apply all bt" \ + ".*sleep.*(start_thread| in \\?\\? \\(\\) from ).*" $test } else { - gdb_test "bt" ".*sleep.*main.*" "$threadtype: attach2 to stopped bt" + gdb_test "bt" ".*sleep.*main.*" $test } gdb_exit base-commit: 3a4c6f1aa958739705ee69526fdeed7c69d7243c -- 2.35.3