From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 9q00A0TgkWrhxwwAWB0awg (envelope-from ) for ; Fri, 28 Aug 2026 15:23:48 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=dmsR8GS3; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id E2EED1E166; Fri, 28 Aug 2026 15:23:47 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,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 EF98D1E033 for ; Fri, 28 Aug 2026 15:23:45 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16F2E4B9DB56 for ; Fri, 28 Aug 2026 19:23:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16F2E4B9DB56 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=dmsR8GS3 Received: from omta34.uswest2.a.cloudfilter.net (omta34.uswest2.a.cloudfilter.net [35.89.44.33]) by sourceware.org (Postfix) with ESMTPS id 06DEE4BA9003 for ; Fri, 28 Aug 2026 19:23:08 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 06DEE4BA9003 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 06DEE4BA9003 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=35.89.44.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787944989; cv=none; b=xrgW+d86x31SLtqm8wUKqCf3VpJTYzy94qW3OXV0SG77zGHNNkzqMl/6KeOGWbcGI0Of5PbptnFPwq5Vtr0AZD61DU3lSSti1MFIfHh5ay046iFqBSbNfx89GpGUYKW4pSj6DM6ljoKHXB1390hk07eoybo/bqLP1Tf82xX1bzg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1787944989; c=relaxed/simple; bh=B/NzKyiB9B73IVuclmKRRFD/7yoyiIbqoiPGD9tffVE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vSo6r7y57umdsknzwQtVmfGvG+dU563mVpX9EnVl6ZiREJp4UjF6TcUb8OppEaRl+QkDL4mnYRw21T1gQSGeioCCOgQQoju9xebOhU5GBTFj43EjgBqtZAUa2XtqmuuHmCErqyBfglh+8aa7b7wclugKvtMgdJw/wZLryGBERTo= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=dmsR8GS3 reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 06DEE4BA9003 Received: from eig-obgw-6001b.ext.cloudfilter.net ([10.0.30.143]) by cmsmtp with ESMTPS id zvzvwY78paC0U02ANxtdGW; Fri, 28 Aug 2026 19:23:07 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 02ANxMSUL9tXG02ANxqWH2; Fri, 28 Aug 2026 19:23:07 +0000 X-Authority-Analysis: v=2.4 cv=KK1aDEFo c=1 sm=1 tr=0 ts=6a91e01b a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=IkcTkHD0fZMA:10 a=Sv0fKeRqtYgA:10 a=ItBw4LHWJt0A:10 a=kPCOmYnx_qijEKu7VC0A:9 a=QEXdDO2ut3YA:10 a=zgiPjhLxNE0A:10 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: Date:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=B/NzKyiB9B73IVuclmKRRFD/7yoyiIbqoiPGD9tffVE=; b=dmsR8GS35XyioXxBHhqpRXsnNg 7j+GYtxJI9H5a6QrGg8iMHoL1bLLoZVDhMFDywXmhGHd4M6n+vj5vI+vGHDxTQ8xaZDa5sjvgeMqD 11odhvL/FQZL+dm2hoOjJAF1V; Received: from 97-122-117-2.hlrn.qwest.net ([97.122.117.2]:39942 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.5) (envelope-from ) id 1x02AM-00000002Q4Y-3Cbi; Fri, 28 Aug 2026 13:23:06 -0600 From: Tom Tromey To: Philippe Blain via Gdb Cc: Philippe Blain Subject: Re: Recovering a core dump deleted while debugging In-Reply-To: (Philippe Blain via Gdb's message of "Wed, 26 Aug 2026 07:53:16 -0400") References: X-Attribution: Tom Date: Fri, 28 Aug 2026 13:23:05 -0600 Message-ID: <87v78u82xy.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.117.2 X-Source-L: No X-Exim-ID: 1x02AM-00000002Q4Y-3Cbi X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-117-2.hlrn.qwest.net (bapiya) [97.122.117.2]:39942 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfM5ps/bujfpzwxssZVcpdzU/RrOOjVnjl+LB1OD/VWFVwcL8kYxNz+P3f/aY0kZbbxA3PiRLsK6iWAAKm6jCwgxg4PBXFS1x6TZW2WvMtq/7O3tUJUlJ NpDERSBmmremFHsaOXGWmUbnleN1gcofA16yLO9gbqgVKd1LuR7isdG4bl20HiRFOwdX8ZQjxHHmmw== X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces~public-inbox=simark.ca@sourceware.org Sender: "Gdb" > I=E2=80=99m debugging a core dump in GDB and some other process deleted t= he > directory where the core dump was. Is there anyway to recover it? Probably not. > I tried 'lsof -p $pid' and looking in /proc/$pid/fd/ but the core dump > does not appear there. I=E2=80=99m guessing GDB closes the file after it = loads > everything into memory ? BFD sometimes closes file descriptors, so you might have run into this. gdb can also cause BFD to do this, though exactly when is kind of opaque to the user. Checking /proc is pretty much the only thing I would have suggested. Tom