• PostgreSQL debug symbols no longer available?

    From Stan Hu@21:1/5 to All on Mon Dec 6 23:20:02 2021
    I noticed that as of https://salsa.debian.org/postgresql/postgresql/-/commit/39f05d009f7d65f0fbd2e016f986ad52c2462fe4,
    the PostgreSQL `-dbg` package is no longer available, and there
    doesn't appear to be a substitute. I verified that the server binaries
    in postgresql-13 are stripped of symbols.

    We were using this in production to be able to resolve symbols in perf
    output traces. I noticed the PGDG repository still contains `-dbgsym`
    packages.

    Was this just an oversight, or is there a better way to obtain symbols
    without compiling the package ourselves?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Christoph Berg@21:1/5 to All on Mon Dec 6 23:20:02 2021
    ------50YLUF8KBXBXH5SXM42P1KRW46DIT5
    Content-Type: text/plain;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    Hi,

    You want either debuginfod or debian-debug, see https://wiki.debian.org/HowToGetABacktrace.
    ------50YLUF8KBXBXH5SXM42P1KRW46DIT5
    Content-Type: text/html;
    charset=utf-8
    Content-Transfer-Encoding: quoted-printable

    <!DOCTYPE html><html><body>Hi,<br><br>You want either debuginfod or debian-debug, see <a href="https://wiki.debian.org/HowToGetABacktrace">https://wiki.debian.org/HowToGetABacktrace</a>.</body></html>
    ------50YLUF8KBXBXH5SXM42P1KRW46DIT5--

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Hu@21:1/5 to cb@df7cb.de on Tue Dec 7 00:20:01 2021
    On Mon, Dec 6, 2021 at 2:11 PM Christoph Berg <cb@df7cb.de> wrote:
    You want either debuginfod or debian-debug, see https://wiki.debian.org/HowToGetABacktrace.

    Ah, thanks, I did see that in the PostgreSQL Wiki, but I didn't
    realize that meant the debug packages are now automatically generated.
    For our Ubuntu build, it looks like installing pkg-create-dbgsym
    installs a wrapper for dh_strip, which causes these packages to be
    created.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)