From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C67973849AE6; Fri, 19 Apr 2024 19:53:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C67973849AE6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1713556400; bh=8Xf4uIqHUWRPRuLepbdv6Cu6PlWsWyg0Lo25GlS9xos=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KoA9+FbO841iBqwe5iD8WwY8HfG4c2MJoOyHxXyflobWMuk/Sx44CBgGPufnRb596 WQoBAvkMmA1oSe/rBZLWY7j1TbdpDrBhETLtmCG1X0vk0ityrcekBHEMs6sQy7gRgK nwy+ke5g+4M/Sx1b4Unn88f0+BOsljMR+x0lYgus= From: "amerey at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug corefiles/31634] gdb doesn't correctly fetch the soname of shared libraries Date: Fri, 19 Apr 2024 19:53:19 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: corefiles X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amerey at redhat dot com 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: cc Message-ID: In-Reply-To: References: 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=3D31634 Aaron Merey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amerey at redhat dot com --- Comment #2 from Aaron Merey --- Thanks for the detailed bug report. I tried to reproduce this but it worked correctly for me: Thread 1 "gdb" hit Breakpoint 1, gdb_bfd_read_elf_soname (filename=3D0x= ea0680 "/home/amerey/test/solib/libfoo.so") at solib.c:1599 1599 gdb_bfd_ref_ptr abfd =3D gdb_bfd_open (filename, gnutarge= t); (gdb) finish [...] Value returned is $1 =3D std::unique_ptr =3D { get() =3D 0xeaa860 "libfoo.so" } If you're able to upload your corefile where this fails I'll take a look at= it. --=20 You are receiving this mail because: You are on the CC list for the bug.=