From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Y7PWKo9FzWfpvgkAWB0awg (envelope-from ) for ; Sun, 09 Mar 2025 03:38:55 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=XyMKdk3F; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 922991E105; Sun, 9 Mar 2025 03:38:55 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 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 C7CE41E08E for ; Sun, 9 Mar 2025 03:38:54 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 426E03858C41 for ; Sun, 9 Mar 2025 07:38:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 426E03858C41 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=XyMKdk3F Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 5E8093858D1E for ; Sun, 9 Mar 2025 07:38:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E8093858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5E8093858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741505905; cv=none; b=LXBNxzDC6o7nrOzLIz2IVWzMZ1ubBr1j1z+nln7nTzcleksHUrxNWAA/FQV8BH/YCTTvnS+BXpDjw97L9mLqExArFmZ+jD/UNf8FUo7Y+pkBeBF//fpXK6ItYUDTtOszYG1jVJpVRFp6fB1JKKAiFZZ6DKQQzAOPs9PO4I7H/7s= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741505905; c=relaxed/simple; bh=WsxNa6oS4il1494DE68567DkFs0o5v4AHhzoO8fIN44=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=cbbbWEGUfsRnvN0VV9Ur/PfLq2AS+10Xzaxx2oy+pKijMnxkk02xrJPPTNn9ahI5ZiHuTx7tS5YVtXytn0KFsg3lscxH9YS9UvbQUIbgfGb5r9AB7f4bMDsmp/xMJwX+dkwSCDLzYFwzqa7XjEMBD8snH5+3Jb+i+OgS/r5ddsE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E8093858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741505905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=s/lrKzhZxR0D5OZNOm3qLB+5dM7LRg9EN6nNKoFHRuA=; b=XyMKdk3Fhi6nHERWHu8o44+r0xlUKGy4oVlR8NQIVo5YWleHhDVo+51IH33wWZwYMpP1pU EwooHKEPET/tBnxGnIHSOhXkAvGrx0lRH57Vtp3BTmsaY9Q1SBL3l4+FrlUV7DxQ5Gk9HF FE5U0l8GfgR2fsokUgGDc9ebt/zzDzc= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-413-Rjg98K7qMbWZEenLwTPUdw-1; Sun, 09 Mar 2025 03:38:23 -0400 X-MC-Unique: Rjg98K7qMbWZEenLwTPUdw-1 X-Mimecast-MFC-AGG-ID: Rjg98K7qMbWZEenLwTPUdw_1741505902 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B05A31800257; Sun, 9 Mar 2025 07:38:22 +0000 (UTC) Received: from f41-zbm-amd (unknown [10.22.88.7]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8D07519560AD; Sun, 9 Mar 2025 07:38:20 +0000 (UTC) Date: Sun, 9 Mar 2025 00:38:17 -0700 From: Kevin Buettner To: Andrew Burgess Cc: gdb-patches@sourceware.org, Tom de Vries Subject: Re: [RFC] gdb: block SIGTERM during fetch_inferior_event Message-ID: <20250309003633.6969aa6a@f41-zbm-amd> In-Reply-To: References: Organization: Red Hat MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: kkKYTozO2nbF1akT_RMqofx_y_E7lbbIlBjFHQcVwUQ_1741505902 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hi Andrew, On Thu, 27 Feb 2025 11:31:02 +0000 Andrew Burgess wrote: > What I have here is different than any of the previous approaches > posted, but I'm still not entirely sure this is the right solution, > but I thought I'd share it. Might be nice to see if we can get this > fixed. > > The patch might still need some cleanup, but it should be good enough > to discuss this approach. I've looked at your approach, plus the discussion surrounding earlier attempts to fix this problem. What I find really compelling is this observation in your commit log... > But I think everything that is written in the comments in > fetch_inferior_event can also apply to gdb_exception_forced_quit. So > we should be blocking that too. I agree with this observation, and, therefore, I think your approach makes sense. Kevin