From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 36FCB3858C2B; Wed, 1 Nov 2023 13:09:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 36FCB3858C2B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698844153; bh=5TJlWgtELfaCm8CXb1ZgUb1GtwI1pZnJw2bF6GtkwxY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=o6HWG02b2M45MU97uXBxeuV9L8X8ZepjBS3P8LoggC+B6dWL9P2kGIOgQM6rM3rgW Vt7FN1sgYFlAI9p7CxnEDqwoKkj2NIIPnhjJx+bOTbQsYXIHCJHLFAcWA76F9/VcQ4 VSymdSjbZ+X5baW/8eWaf00zftCbDcMUIeEWxZZo= From: "vincenzo.innocente at cern dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug libbacktrace/112263] [C++23] std::stacktrace does not identify symbols in shared library Date: Wed, 01 Nov 2023 13:09:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libbacktrace X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vincenzo.innocente at cern dot ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112263 --- Comment #6 from vincenzo Innocente = --- Sorry, made the (almost) full exercise: read the doc in=20 https://en.cppreference.com/w/cpp/utility/stacktrace_entry and the code in stacktrace header file and in libstdc++-v3/src/c++23/stacktrace.cc (have not read the specs in the C++23 standard) indeed the entry implementation has just the handle as data member and the details are retrieved when the "Query" methods are called. This appears to happen in stacktrace_entry::_Info::_M_populate(native_handle_type pc) which in turn calls ::__glibcxx_backtrace_pcinfo if this fails it calls ::__glibcxx_backtrace_syminfo so most probably the issue is in this last function unless there is a probl= em with the logic in _M_populate that I failed to identify.=