From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C8B53858D35; Wed, 15 Feb 2023 01:54:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C8B53858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1676426078; bh=fV17VE2Hutm2vkuFFrNarAWcjBaGAE2290h+JysgeNA=; h=From:To:Subject:Date:From; b=aaDOGyof3t85vgDSlQCapEd9LEd5O/Xt4mHO3a+IKhY6rd596y6wIcqRgrJN7gB8z F/TWcSs0XwkVoan7TLzJSFpD/TL16ziruoTN2kFYsoEQYeATJGgzTYAm4l0rdXmY58 0oHhPPbIHUDJ3M0cN9qEDDqvOWPsimogwdSRWh9o= From: "andres at anarazel dot de" To: gdb-prs@sourceware.org Subject: [Bug corefiles/30126] New: Overly verbose "Can't open file [shared memory path] during file-backed mapping note processing" warnings Date: Wed, 15 Feb 2023 01:54:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: corefiles X-Bugzilla-Version: 13.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: andres at anarazel dot de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30126 Bug ID: 30126 Summary: Overly verbose "Can't open file [shared memory path] during file-backed mapping note processing" warnings Product: gdb Version: 13.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: corefiles Assignee: unassigned at sourceware dot org Reporter: andres at anarazel dot de Target Milestone: --- Hi,=20 Whenever loading a core dump from postgres, I'm greeted by a series of warn= ings like this: warning: Can't open file /anon_hugepage (deleted) during file-backed mapping note processing warning: Can't open file /dev/shm/PostgreSQL.1150234652 during file-backed mapping note processing warning: Can't open file /dev/shm/PostgreSQL.535700290 during file-backed mapping note processing warning: Can't open file /SYSV604b7d00 (deleted) during file-backed mapping note processing Sometimes hundreds of such notes will be emitted, because of shorter lived shared memory allocations. None of those files will ever exist, and that's OK. Unfortunately the above warnings can't be quieted by any setting as far as I can see. >From what I can tell the core dump unfortunately does not contain informati= on that'd allow to distinguish the above automatically from other "real" files= . So I don't really have a better idea than to quiesce those warnings than to do string prefix matching. Looks like there's already some code for this in gdb, in gdb/linux-tdep.c:mapping_is_anonymous_p, but it's not used for weeding out files during core dump load. Regards, Andres --=20 You are receiving this mail because: You are on the CC list for the bug.=