From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id oX4eLDlLAGtjQSQAWB0awg (envelope-from ) for ; Fri, 20 Nov 2026 08:29:29 -0500 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=N5EqYcVn; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=BHvC6STJ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ITOeRRpX; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=v0jjp67M; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id AF6801E0CA; Fri, 20 Nov 2026 08:29:29 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (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 1CE571E091 for ; Fri, 20 Nov 2026 08:29:29 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 24E6B43ADCCF for ; Fri, 20 Nov 2026 13:29:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 24E6B43ADCCF Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=N5EqYcVn; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=BHvC6STJ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ITOeRRpX; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=v0jjp67M Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) by sourceware.org (Postfix) with ESMTPS id BEB184BCA439 for ; Fri, 20 Nov 2026 13:28:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BEB184BCA439 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 BEB184BCA439 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795181322; cv=none; b=BjJNQ6FemflHUUEDo0hs+l/ISUNRS9XHbPImuxGP7Jye3O/Ndib/VV6kp7JbU5u5yP6lVybdKvwRyRzNXcDTi2IDUZcL3sIxsHqzPFC7PGy4XdZ7RGTGCfql74RCPYYboBN/Wr5IMFgNdkJMFG3XQfi8GpoGzonTEhgsJO4dF0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1795181322; c=relaxed/simple; bh=KM1z0CMyNnutfGxPu3JZjP8/jAg5nwTUsCILV0vhwzo=; h=DKIM-Signature:DKIM-Signature:DKIM-Signature:DKIM-Signature: Message-ID:Date:MIME-Version:Subject:From:To; b=GI/iRW9Akxp0fI0oo39ECP/jq2iXWhxpl/irOeyWzmKy+y2C5drhm2o6JIRtT2LxCL9jalNui8V/96VQ5yFhWZ+n4uY+45/ZSOI0aDH+vVl86uVbcsX0aO25nkWYfibbsPeeyawIB23Ctb1zoGWOGfmaqnSf3aTS42defgEutDU= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=N5EqYcVn; dkim=pass header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=BHvC6STJ; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa header.b=ITOeRRpX; dkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519 header.b=v0jjp67M DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BEB184BCA439 Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104: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-out2.suse.de (Postfix) with ESMTPS id B71D61F38C for ; Fri, 20 Nov 2026 13:28:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1795181320; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL/n1YVKmEWmlvi5x0MMb03UdEUjXX6reLMWYFj4l9U=; b=N5EqYcVn8erCm5qx2bevRjowV0Cfv5T5w31UGSvvcg1PhOWqWNaZK9TMVgbvY0DpDBc7Xt nyDPWejgZ3ul1zzxUqPdMSNHSXtqnQT/kzL+N2mLNsnkPFF4LGjDu4fuBXF2XYQVePfQIV Fgo4VzGQmtHRVxMYN5p2lY8P+ehkHhA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1795181320; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL/n1YVKmEWmlvi5x0MMb03UdEUjXX6reLMWYFj4l9U=; b=BHvC6STJH9xmLhdPT9PleJ4yXNC+1sVbIncRtLUo29iJYtxIIpASR3+g8XimZgsbZB4Xan E2jEdHdRDKzpfFCw== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=ITOeRRpX; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=v0jjp67M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1795181318; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL/n1YVKmEWmlvi5x0MMb03UdEUjXX6reLMWYFj4l9U=; b=ITOeRRpXyqsG22xW91JdPoSEMD2Pwkyi7jrkxQ4ZA+KiMTrL+INnE05sRN8mjCTTS+Q4xm KdShJilckEjzaXl73rr580US75EM622iqCquzufV8vxtdKf1LLOwFL5x+MJSwn3FLCLP/F x2SrVzkgaX3SDtJ3mulneabe0Xr4a10= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1795181318; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BL/n1YVKmEWmlvi5x0MMb03UdEUjXX6reLMWYFj4l9U=; b=v0jjp67MgfeFwgVLdiouypBZfTmDvbBbRygn47udXVQJrESsnbcK+bX5lxjG/tsYnTxhR1 H9LCdC9pwZiSQ5CQ== 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 82C011342D for ; Fri, 20 Nov 2026 13:28:38 +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 0ZD5EwZLAGvzbQAAD6G6ig (envelope-from ) for ; Fri, 20 Nov 2026 13:28:38 +0000 Message-ID: Date: Fri, 20 Nov 2026 14:28:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] [gdb/testsuite] Timeout updates in gdb.base/kill-during-detach.exp From: Tom de Vries To: gdb-patches@sourceware.org References: <20261103082942.3542020-1-tdevries@suse.de> Content-Language: en-US In-Reply-To: <20261103082942.3542020-1-tdevries@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: B71D61F38C X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Rspamd-Action: no action X-Spamd-Result: default: False [-13.50 / 50.00]; SUSE_INTERNAL_BYPASS(-9.00)[]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; ARC_NA(0.00)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[suse.de:+]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:104:10:150:64:97:from]; MID_RHS_MATCH_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[gdb-patches@sourceware.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:rdns, imap1.dmz-prg2.suse.org:helo, suse.de:dkim, sourceware.org:url] 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 On 11/3/26 9:29 AM, Tom de Vries wrote: > With a gdb 17.2 based package and test-case gdb.base/kill-during-detach.exp, I > ran into: > ... > (gdb) python kill_and_detach() > FAIL: exit_p=false: checkpoint_p=false: python kill_and_detach() (timeout) > ... > > I didn't manage to reproduce this, but I have seen this more often. > > This may either be a regular testsuite timeout, or a problem with gdb. > > It could be a regular testsuite timeout. The command that is issued: > ... > def kill_and_detach(): > os.kill(inf_pid, signal.SIGKILL) > time.sleep(1) > gdb.execute("detach") > ... > does two things (with a sleep of 1 in between) that would normally get their > own timeout window. > > Let's address this by adding a timeout factor of 2. > > Then there's the problem that we don't see any output after the timeout. So > we add a simple command after the command to drain some more output. > > If the problem is a testsuite timeout, the timeout factor may be sufficient to > fix this. And if it's a gdb problem, we might get more information the next > time we run into this. > I've double-checked this using make-check-all.sh, and pushed this. Thanks, - Tom > Tested on x86_64-linux. > > Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34935 > --- > gdb/testsuite/gdb.base/kill-during-detach.exp | 19 ++++++++++++++++--- > 1 file changed, 16 insertions(+), 3 deletions(-) > > diff --git a/gdb/testsuite/gdb.base/kill-during-detach.exp b/gdb/testsuite/gdb.base/kill-during-detach.exp > index f5e3a902211..27584581a9b 100644 > --- a/gdb/testsuite/gdb.base/kill-during-detach.exp > +++ b/gdb/testsuite/gdb.base/kill-during-detach.exp > @@ -126,10 +126,23 @@ proc run_test { exit_p checkpoint_p } { > # NOTE: The 'checkpoint' system in GDB appears to be a little > # iffy. This detach does seem to restore the checkpoint, but > # it leaves the inferior stuck in a running state. > - gdb_test_no_output "python kill_and_detach()" > + > + # Double the timeout, to account for the fact that we're doing two > + # things in kill_and_detach. > + with_timeout_factor 2 { > + gdb_test_no_output "python kill_and_detach()" > + } > } else { > - gdb_test "python kill_and_detach()" \ > - "\\\[Inferior $::decimal \[^\r\n\]+ detached\\\]" > + # Double the timeout, to account for the fact that we're doing two > + # things in kill_and_detach. > + with_timeout_factor 2 { > + gdb_test "python kill_and_detach()" \ > + [subst_vars {\[Inferior $::decimal [^\r\n]+ detached\]}] > + } > + > + # Do a simple command to drain late output of the previous command in > + # case it timed out. > + gdb_test "info inferiors" ".*" > } > } > > > base-commit: 9db3b515b964c1bbdc4d20c1202fbf27719be269