Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-572

No debug symbols for Ubuntu packages

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Duplicate
    • 5.5.27
    • N/A
    • Packaging
    • Ubuntu 12.04 Precise Pangolin, deb packages

    Description

      MariaDB 12.04 packages install a stripped binary:

      /usr/sbin/mysqld: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=0x16b84c98034eb05e6b35fe977237b6fe7a40c11a, stripped

      I have downloaded/unpacked all the available .deb packages, and failed to find anything resembling debug symbols.

      Attachments

        Issue Links

          Activity

            danblack Daniel Black added a comment -

            I'd be really happy with any debug symbols in a single or multiple package.

            The lack of this, along with MDEV-6367, is making it hard to make debug builds in a reasonable time and this that is stopping me from getting essential information about a memory leak on MDEV-6300.

            danblack Daniel Black added a comment - I'd be really happy with any debug symbols in a single or multiple package. The lack of this, along with MDEV-6367 , is making it hard to make debug builds in a reasonable time and this that is stopping me from getting essential information about a memory leak on MDEV-6300 .
            danblack Daniel Black added a comment -

            Looks like galera has done this: https://github.com/codership/galera/pull/116/files.

            otto are you able to help here?

            danblack Daniel Black added a comment - Looks like galera has done this: https://github.com/codership/galera/pull/116/files . otto are you able to help here?

            Yes, in Debian by default binaries are stripped. If will make the binaries much smaller and 99,999% of the time end-users don't need binaries with debug symbols. If debug versions are wanted, they are most often installed from a development repository and the packages are named dbg. For example I've done galera-dbg and I can do mariadb-server(5.5/10.0)-dbg too, but right now I don't have any extra time on my hands.

            This is not assigned to anybody so I'll assign it to myself so I'll remember to return to it later.

            otto Otto Kekäläinen added a comment - Yes, in Debian by default binaries are stripped. If will make the binaries much smaller and 99,999% of the time end-users don't need binaries with debug symbols. If debug versions are wanted, they are most often installed from a development repository and the packages are named dbg. For example I've done galera-dbg and I can do mariadb-server (5.5/10.0)-dbg too, but right now I don't have any extra time on my hands. This is not assigned to anybody so I'll assign it to myself so I'll remember to return to it later.

            In Debian and Ubuntu normal packages are not supposed to contain debug symbols, they are stipped when the binary packages are created.

            Ubuntu however provides automatically a facility that has the debug symbols, so that users can install them and get better stack traces. See details at https://wiki.ubuntu.com/DebuggingProgramCrash#Debug_Symbol_Packages (and examples at http://ddebs.ubuntu.com/pool/universe/m/mariadb-10.0/)

            Also it looks like this issue is a duplicate of https://mariadb.atlassian.net/browse/MDEV-658 (or the other way around, as 572 is older)

            otto Otto Kekäläinen added a comment - In Debian and Ubuntu normal packages are not supposed to contain debug symbols, they are stipped when the binary packages are created. Ubuntu however provides automatically a facility that has the debug symbols, so that users can install them and get better stack traces. See details at https://wiki.ubuntu.com/DebuggingProgramCrash#Debug_Symbol_Packages (and examples at http://ddebs.ubuntu.com/pool/universe/m/mariadb-10.0/ ) Also it looks like this issue is a duplicate of https://mariadb.atlassian.net/browse/MDEV-658 (or the other way around, as 572 is older)

            Since December 2015 Debian also generates automatic debug symbol packages, see e.g. http://snapshot.debian.org/package/mariadb-10.0/10.0.22-6/#mariadb-server-10.0-dbgsym_10.0.22-6

            otto Otto Kekäläinen added a comment - Since December 2015 Debian also generates automatic debug symbol packages, see e.g. http://snapshot.debian.org/package/mariadb-10.0/10.0.22-6/#mariadb-server-10.0-dbgsym_10.0.22-6

            People

              otto Otto Kekäläinen
              psergei Sergei Petrunia
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.