How to get debug symbols for packages from ESM repositories?

Ubuntu Version:
22.04 LTS

Desktop Environment (if applicable):
KDE Plasma

Problem Description:
I have machine connected to ESM repositories. I’ve installed ffmpeg (it came from the ESM repo) and now want to get debug symbols for it. I’ve addeded file /etc/apt/sources.d/ddebs.list with following content:

deb http://ddebs.ubuntu.com/ jammy main restricted universe multiverse
deb http://ddebs.ubuntu.com/ jammy-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com/ jammy-proposed main restricted universe multiverse

and installed appropriate GPG key (C8CAB6595FDFF622).

After updating (i.e. sudo apt update), I’m trying to install:

sudo apt install libavcodec58-dbgsym libavformat58-dbgsym libavutil56-dbgsym libswscale5-dbgsym

and getting error messages (see details below).

I just thing I need to add some special repository that would provide relevant debug symbols. But I don’t know what it is and I could not find any information anywhere…

Relevant System Information:
VirtualBox VM, x86_64, 6 vCPU, 32GB RAM running on Windows host OS

Screenshots or Error Messages:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libavcodec58-dbgsym : Depends: libavcodec58 (= 7:4.4.1-3ubuntu5)
 libavformat58-dbgsym : Depends: libavformat58 (= 7:4.4.1-3ubuntu5)
 libavutil56-dbgsym : Depends: libavutil56 (= 7:4.4.1-3ubuntu5) but 7:4.4.2-0ubuntu0.22.04.1+esm6 is to be installed
 libswscale5-dbgsym : Depends: libswscale5 (= 7:4.4.1-3ubuntu5) but 7:4.4.2-0ubuntu0.22.04.1+esm6 is to be installed```

What I’ve Tried:
I’ve even tried more precise apt command:

sudo apt install libavcodec58-dbgsym=7:4.4.2-0ubuntu0.22.04.1+esm6 libavformat58-dbgsym=7:4.4.2-0ubuntu0.22.04.1+esm6 libavutil56-dbgsym=7:4.4.2-0ubuntu0.22.04.1+esm6 libswscale5-dbgsym=7:4.4.2-0ubuntu0.22.04.1+esm6

That have given me following errors:

Package libavcodec58-dbgsym is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libavcodec58-dbgsym:i386

Package libswscale5-dbgsym is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libswscale5-dbgsym:i386

Package libavutil56-dbgsym is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libavutil56-dbgsym:i386

Package libavformat58-dbgsym is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libavformat58-dbgsym:i386

E: Version '7:4.4.2-0ubuntu0.22.04.1+esm6' for 'libavcodec58-dbgsym' was not found
E: Version '7:4.4.2-0ubuntu0.22.04.1+esm6' for 'libavformat58-dbgsym' was not found
E: Version '7:4.4.2-0ubuntu0.22.04.1+esm6' for 'libavutil56-dbgsym' was not found
E: Version '7:4.4.2-0ubuntu0.22.04.1+esm6' for 'libswscale5-dbgsym' was not found

Does anyone can really help with this? @Canonical support, if you are reading this, please look into this problem.

Is this free Ubuntu Pro or through a paid program with Canonical?

1 Like

It is free Ubuntu Pro.
But looks like noone else but Canonical support knows the answer.
I’ve also posted same question here
https://askubuntu.com/questions/1543981/how-to-get-debug-symbols-for-packages-from-esm-repositories
33 views so far, noone could answer.

That’s correct. Canonical doesn’t support the free tier directly, and those of us in the community don’t know enough about that.

AskUbuntu isn’t even monitored or maintained by Canonical either. In fact, it’s unofficial community support whereas this Discourse is official community support.

So, sadly, you’re going to have to be patient and wait. If nobody knows the answer, nobody will answer.

1 Like

Can we take a look at your sources please.

inxi -r

Try a post at the PRO FAQ thread (perhaps pinging lech directly to get attention as the last post was in October last year)

2 Likes
$ inxi -r
Repos:
  Active apt repos in: /etc/apt/sources.list
    1: deb http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted
    2: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy main restricted
    3: deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    4: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates main restricted
    5: deb http://ua.archive.ubuntu.com/ubuntu/ jammy universe
    6: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy universe
    7: deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe
    8: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates universe
    9: deb http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
    10: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy multiverse
    11: deb http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    12: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-updates multiverse
    13: deb http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    14: deb-src http://ua.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
    15: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted
    16: deb-src http://security.ubuntu.com/ubuntu/ jammy-security main restricted
    17: deb http://security.ubuntu.com/ubuntu/ jammy-security universe
    18: deb-src http://security.ubuntu.com/ubuntu/ jammy-security universe
    19: deb http://security.ubuntu.com/ubuntu/ jammy-security multiverse
    20: deb-src http://security.ubuntu.com/ubuntu/ jammy-security multiverse
  Active apt repos in: /etc/apt/sources.list.d/ddebs.list
    1: deb http://ddebs.ubuntu.com/ jammy main restricted universe multiverse
    2: deb http://ddebs.ubuntu.com/ jammy-updates main restricted universe multiverse
    3: deb http://ddebs.ubuntu.com/ jammy-proposed main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/docker.list
    1: deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu/ jammy stable
  Active apt repos in: /etc/apt/sources.list.d/github_git-lfs.list
    1: deb [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/ubuntu/ jammy main
    2: deb-src [signed-by=/etc/apt/keyrings/github_git-lfs-archive-keyring.gpg] https://packagecloud.io/github/git-lfs/ubuntu/ jammy main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/neovim-ppa-ubuntu-stable-jammy.list
    1: deb https://ppa.launchpadcontent.net/neovim-ppa/stable/ubuntu/ jammy main
  Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
    1: deb https://deb.opera.com/opera-stable/ stable non-free
  Active apt repos in: /etc/apt/sources.list.d/pgadmin4.list
    1: deb [signed-by=/usr/share/keyrings/packages-pgadmin-org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/jammy/ pgadmin4 main
  Active apt repos in: /etc/apt/sources.list.d/ubuntu-esm-apps.list
    1: deb https://esm.ubuntu.com/apps/ubuntu/ jammy-apps-security main
    2: deb-src https://esm.ubuntu.com/apps/ubuntu/ jammy-apps-security main
    3: deb https://esm.ubuntu.com/apps/ubuntu/ jammy-apps-updates main
    4: deb-src https://esm.ubuntu.com/apps/ubuntu/ jammy-apps-updates main
  Active apt repos in: /etc/apt/sources.list.d/ubuntu-esm-infra.list
    1: deb https://esm.ubuntu.com/infra/ubuntu/ jammy-infra-security main
    2: deb-src https://esm.ubuntu.com/infra/ubuntu/ jammy-infra-security main
    3: deb https://esm.ubuntu.com/infra/ubuntu/ jammy-infra-updates main
    4: deb-src https://esm.ubuntu.com/infra/ubuntu/ jammy-infra-updates main
  Active apt repos in: /etc/apt/sources.list.d/vscode.list
    1: deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code/ stable main
  Active apt repos in: /etc/apt/sources.list.d/xtradeb-ubuntu-apps-jammy.list
    1: deb https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu/ jammy main
    2: deb-src https://ppa.launchpadcontent.net/xtradeb/apps/ubuntu/ jammy main

Thanks for advise. I’ve posted a reply on that topic mentioning Lech. Let’s see, if that will help…

1 Like

Posted… no reply so far (5 days)…

@ivan-pizhenko Browsing around the esm repo, I can’t see any -dbgsym deb packages there at all, none.

There are a few -dbg packages, and even a few for ffmpeg, but not the release you’re using, and none at all for libav components.

Indeed, if you check the DebuggingProgramCrash wiki page, it says:

If you are on Ubuntu Jammy (22.04) or later, you do not need to worry about installing debug symbol packages anymore. The Ubuntu project maintains a Debuginfod server, and GDB and other debuginfo-consumer applications support it out of the box. For more information about it, please refer to this page.

So, perhaps the documentation will help.

3 Likes

Thank you. I didn’t know there’s, such an analog of Microsoft Symbol Server exists for Linux.

But anyway, EVEN IT have not provided me those debug symbol files.

See below my GDB output:

Downloading 5.52 MB separate debug info for /lib/x86_64-linux-gnu/libvpx.so.7
Downloading 0.08 MB separate debug info for /lib/x86_64-linux-gnu/libwebpmux.so.3                                                                                     
Downloading 1.21 MB separate debug info for /lib/x86_64-linux-gnu/libwebp.so.7                                                                                        
Downloading 0.30 MB separate debug info for /lib/x86_64-linux-gnu/liblzma.so.5                                                                                        
Downloading 1.28 MB separate debug info for /lib/x86_64-linux-gnu/libdav1d.so.5                                                                                       
Downloading 9.05 MB separate debug info for /lib/x86_64-linux-gnu/librsvg-2.so.2                                                                                      
Downloading 0.54 MB separate debug info for /lib/x86_64-linux-gnu/libgobject-2.0.so.0                                                                                 
Downloading 0.03 MB separate debug info for /home/ivan/.cache/debuginfod_client/e4b295ec2fc849132dafd136750dacd65ce4b85b/debuginfo                                    
Downloading 1.45 MB separate debug info for /lib/x86_64-linux-gnu/libglib-2.0.so.0                                                                                    
Downloading 1.89 MB separate debug info for /lib/x86_64-linux-gnu/libcairo.so.2                                                                                       
Downloading 0.10 MB separate debug info for /lib/x86_64-linux-gnu/libsnappy.so.1                                                                                      
Downloading 0.43 MB separate debug info for /lib/x86_64-linux-gnu/libcodec2.so.1.0                                                                                    
Downloading 0.06 MB separate debug info for /lib/x86_64-linux-gnu/libgsm.so.1                                                                                         
Downloading 0.39 MB separate debug info for /lib/x86_64-linux-gnu/libmp3lame.so.0                                                                                     
Downloading 0.57 MB separate debug info for /lib/x86_64-linux-gnu/libopus.so.0                                                                                        
Downloading 0.04 MB separate debug info for /lib/x86_64-linux-gnu/libshine.so.3                                                                                       
Downloading 0.28 MB separate debug info for /lib/x86_64-linux-gnu/libspeex.so.1                                                                                       
Downloading 0.19 MB separate debug info for /lib/x86_64-linux-gnu/libtheoraenc.so.1                                                                                   
Downloading 0.04 MB separate debug info for /home/ivan/.cache/debuginfod_client/e3d3731e6c5742b0f3227b050b83b6c1b13defbc/debuginfo                                    
Downloading 0.14 MB separate debug info for /lib/x86_64-linux-gnu/libtheoradec.so.1                                                                                   
Downloading 0.11 MB separate debug info for /lib/x86_64-linux-gnu/libtwolame.so.0                                                                                     
Downloading 0.16 MB separate debug info for /lib/x86_64-linux-gnu/libvorbis.so.0                                                                                      
Downloading 0.22 MB separate debug info for /lib/x86_64-linux-gnu/libvorbisenc.so.2                                                                                   
Downloading 7.25 MB separate debug info for /lib/x86_64-linux-gnu/libx265.so.199                                                                                      
Downloading 0.20 MB separate debug info for /lib/x86_64-linux-gnu/libva.so.2                                                                                          
Downloading 0.16 MB separate debug info for /lib/x86_64-linux-gnu/libmfx.so.1                                                                                         
Downloading 1.37 MB separate debug info for /home/ivan/.cache/debuginfod_client/e3f6c1a4e149e517ab507a508ecf48765df86368/debuginfo                                    
Downloading 0.07 MB separate debug info for /lib/x86_64-linux-gnu/libbz2.so.1.0                                                                                       
Downloading 0.59 MB separate debug info for /lib/x86_64-linux-gnu/libgme.so.0                                                                                         
Downloading 10.89 MB separate debug info for /lib/x86_64-linux-gnu/libopenmpt.so.0                                                                                    
Downloading 0.35 MB separate debug info for /lib/x86_64-linux-gnu/libchromaprint.so.1                                                                                 
Downloading 0.16 MB separate debug info for /lib/x86_64-linux-gnu/librabbitmq.so.4                                                                                    
Downloading 3.15 MB separate debug info for /lib/x86_64-linux-gnu/libsrt-gnutls.so.1.4                                                                                
Downloading 0.67 MB separate debug info for /lib/x86_64-linux-gnu/libssh-gcrypt.so.4                                                                                  
Downloading 5.50 MB separate debug info for /lib/x86_64-linux-gnu/libzmq.so.5                                                                                         
Downloading 0.02 MB separate debug info for /lib/x86_64-linux-gnu/libva-drm.so.2                                                                                      
Downloading 0.05 MB separate debug info for /lib/x86_64-linux-gnu/libva-x11.so.2                                                                                      
Downloading 0.03 MB separate debug info for /lib/x86_64-linux-gnu/libvdpau.so.1                                                                                       
Downloading 0.00 MB separate debug info for /home/ivan/.cache/debuginfod_client/7a520d222a3972072b32d80011070446b2684530/debuginfo                                    
Downloading 1.33 MB separate debug info for /lib/x86_64-linux-gnu/libX11.so.6
Downloading 0.09 MB separate debug info for /lib/x86_64-linux-gnu/libOpenCL.so.1                                                                                      
Downloading 0.33 MB separate debug info for /lib/x86_64-linux-gnu/libsoxr.so.0                                                                                        
Downloading 0.02 MB separate debug info for /lib/x86_64-linux-gnu/libcairo-gobject.so.2                                                                               
Downloading 0.25 MB separate debug info for /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0
Downloading 0.01 MB separate debug info for /home/ivan/.cache/debuginfod_client/c3b559c2e575c9a50701b4543c33582222307684/debuginfo                                    
Downloading 2.98 MB separate debug info for /lib/x86_64-linux-gnu/libgio-2.0.so.0
Downloading 0.09 MB separate debug info for /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0                                                                              
Downloading 0.53 MB separate debug info for /lib/x86_64-linux-gnu/libpango-1.0.so.0                                                                                   
Downloading 0.18 MB separate debug info for /lib/x86_64-linux-gnu/libgcc_s.so.1                                                                                       
Downloading 0.07 MB separate debug info for /lib/x86_64-linux-gnu/libffi.so.8                                                                                         
Downloading 0.46 MB separate debug info for /lib/x86_64-linux-gnu/libpcre.so.3                                                                                        
Downloading 0.45 MB separate debug info for /lib/x86_64-linux-gnu/libfontconfig.so.1                                                                                  
Downloading 0.33 MB separate debug info for /lib/x86_64-linux-gnu/libpng16.so.16                                                                                      
Downloading 0.01 MB separate debug info for /lib/x86_64-linux-gnu/libxcb-shm.so.0                                                                                     
Downloading 0.21 MB separate debug info for /lib/x86_64-linux-gnu/libxcb.so.1
Downloading 0.06 MB separate debug info for /lib/x86_64-linux-gnu/libxcb-render.so.0                                                                                  
Downloading 5.99 MB separate debug info for /lib/x86_64-linux-gnu/libstdc++.so.6                                                                                      
Downloading 0.04 MB separate debug info for /lib/x86_64-linux-gnu/libogg.so.0                                                                                         
Downloading 0.07 MB separate debug info for /lib/x86_64-linux-gnu/libnuma.so.1                                                                                        
Downloading 3.06 MB separate debug info for /lib/x86_64-linux-gnu/libicuuc.so.70                                                                                      
Downloading 0.08 MB separate debug info for /home/ivan/.cache/debuginfod_client/bef3ff1d70aadd68aab07d858a759360c8b919ae/debuginfo                                    
Downloading 0.30 MB separate debug info for /lib/x86_64-linux-gnu/libmpg123.so.0                                                                                      
Downloading 0.04 MB separate debug info for /lib/x86_64-linux-gnu/libvorbisfile.so.3                                                                                  
Downloading 0.05 MB separate debug info for /lib/x86_64-linux-gnu/libudfread.so.0                                                                                     
Downloading 2.05 MB separate debug info for /lib/x86_64-linux-gnu/libp11-kit.so.0                                                                                     
Downloading 0.05 MB separate debug info for /lib/x86_64-linux-gnu/libidn2.so.0                                                                                        
Downloading 0.58 MB separate debug info for /lib/x86_64-linux-gnu/libunistring.so.2                                                                                   
Downloading 0.47 MB separate debug info for /lib/x86_64-linux-gnu/libnettle.so.8                                                                                      
Downloading 0.39 MB separate debug info for /lib/x86_64-linux-gnu/libhogweed.so.6                                                                                     
Downloading 1.48 MB separate debug info for /lib/x86_64-linux-gnu/libgcrypt.so.20                                                                                     
Downloading 0.23 MB separate debug info for /lib/x86_64-linux-gnu/libgpg-error.so.0                                                                                   
Downloading 0.57 MB separate debug info for /lib/x86_64-linux-gnu/libgssapi_krb5.so.2                                                                                 
Downloading 0.13 MB separate debug info for /lib/x86_64-linux-gnu/libbsd.so.0                                                                                         
Downloading 0.80 MB separate debug info for /lib/x86_64-linux-gnu/libsodium.so.23                                                                                     
Downloading 0.41 MB separate debug info for /lib/x86_64-linux-gnu/libpgm-5.3.so.0                                                                                     
Downloading 1.00 MB separate debug info for /lib/x86_64-linux-gnu/libnorm.so.1                                                                                        
Downloading 0.48 MB separate debug info for /lib/x86_64-linux-gnu/libgomp.so.1                                                                                        
Downloading 0.02 MB separate debug info for /lib/x86_64-linux-gnu/libgmodule-2.0.so.0                                                                                 
Downloading 0.47 MB separate debug info for /lib/x86_64-linux-gnu/libjpeg.so.8
Downloading 0.40 MB separate debug info for /lib/x86_64-linux-gnu/libmount.so.1                                                                                       
Downloading 0.26 MB separate debug info for /lib/x86_64-linux-gnu/libselinux.so.1                                                                                     
Downloading 0.15 MB separate debug info for /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0                                                                                
Downloading 0.05 MB separate debug info for /lib/x86_64-linux-gnu/libthai.so.0                                                                                        
Downloading 0.04 MB separate debug info for /lib/x86_64-linux-gnu/libuuid.so.1                                                                                        
Downloading 0.08 MB separate debug info for /lib/x86_64-linux-gnu/libbrotlidec.so.1
Downloading 0.00 MB separate debug info for /home/ivan/.cache/debuginfod_client/4b1f390dd6e24d49684db8b2443d082379e8e977/debuginfo                                    
Downloading 0.02 MB separate debug info for /lib/x86_64-linux-gnu/libXdmcp.so.6
Downloading 0.00 MB separate debug info for /lib/x86_64-linux-gnu/libicudata.so.70                                                                                    
Downloading 1.10 MB separate debug info for /lib/x86_64-linux-gnu/libkrb5.so.3
Downloading 0.22 MB separate debug info for /lib/x86_64-linux-gnu/libk5crypto.so.3                                                                                    
Downloading 0.02 MB separate debug info for /lib/x86_64-linux-gnu/libcom_err.so.2                                                                                     
Downloading 0.08 MB separate debug info for /lib/x86_64-linux-gnu/libkrb5support.so.0
Downloading 0.04 MB separate debug info for /lib/x86_64-linux-gnu/libmd.so.0                                                                                          
Downloading 0.41 MB separate debug info for /lib/x86_64-linux-gnu/libblkid.so.1                                                                                       
Downloading 0.46 MB separate debug info for /lib/x86_64-linux-gnu/libgraphite2.so.3                                                                                   
Downloading 0.05 MB separate debug info for /lib/x86_64-linux-gnu/libdatrie.so.1                                                                                      
Downloading 0.01 MB separate debug info for /lib/x86_64-linux-gnu/libbrotlicommon.so.1                                                                                
Downloading 0.02 MB separate debug info for /lib/x86_64-linux-gnu/libkeyutils.so.1

And here’s ldd output to prove that program is really linked to ffmpeg:

$ ldd ../build/bin/genvideo
        linux-vdso.so.1 (0x00007ffcf5acb000)
        libavcodec.so.58 => /lib/x86_64-linux-gnu/libavcodec.so.58 (0x00007f75b7bb0000)
        libavformat.so.58 => /lib/x86_64-linux-gnu/libavformat.so.58 (0x00007f75b7917000)
        libavutil.so.56 => /lib/x86_64-linux-gnu/libavutil.so.56 (0x00007f75b765e000)
        libswscale.so.5 => /lib/x86_64-linux-gnu/libswscale.so.5 (0x00007f75b75c0000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f75b74d9000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f75b72ae000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f75b9000000)
        libswresample.so.3 => /lib/x86_64-linux-gnu/libswresample.so.3 (0x00007f75b728c000)
        libvpx.so.7 => /lib/x86_64-linux-gnu/libvpx.so.7 (0x00007f75b6f7c000)
        libwebpmux.so.3 => /lib/x86_64-linux-gnu/libwebpmux.so.3 (0x00007f75b6f6f000)
        libwebp.so.7 => /lib/x86_64-linux-gnu/libwebp.so.7 (0x00007f75b6f02000)
        liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007f75b6ed7000)
        libdav1d.so.5 => /lib/x86_64-linux-gnu/libdav1d.so.5 (0x00007f75b6d4f000)
        librsvg-2.so.2 => /lib/x86_64-linux-gnu/librsvg-2.so.2 (0x00007f75b62e7000)
        libgobject-2.0.so.0 => /lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007f75b6287000)
        libglib-2.0.so.0 => /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007f75b614d000)
        libcairo.so.2 => /lib/x86_64-linux-gnu/libcairo.so.2 (0x00007f75b6025000)
        libzvbi.so.0 => /lib/x86_64-linux-gnu/libzvbi.so.0 (0x00007f75b5f96000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f75b5f78000)
        libsnappy.so.1 => /lib/x86_64-linux-gnu/libsnappy.so.1 (0x00007f75b5f6e000)
        libaom.so.3 => /lib/x86_64-linux-gnu/libaom.so.3 (0x00007f75b59fd000)
        libcodec2.so.1.0 => /lib/x86_64-linux-gnu/libcodec2.so.1.0 (0x00007f75b4b56000)
        libgsm.so.1 => /lib/x86_64-linux-gnu/libgsm.so.1 (0x00007f75b4b47000)
        libmp3lame.so.0 => /lib/x86_64-linux-gnu/libmp3lame.so.0 (0x00007f75b4ad2000)
        libopenjp2.so.7 => /lib/x86_64-linux-gnu/libopenjp2.so.7 (0x00007f75b4a78000)
        libopus.so.0 => /lib/x86_64-linux-gnu/libopus.so.0 (0x00007f75b4a1a000)
        libshine.so.3 => /lib/x86_64-linux-gnu/libshine.so.3 (0x00007f75b4800000)
        libspeex.so.1 => /lib/x86_64-linux-gnu/libspeex.so.1 (0x00007f75b47e2000)
        libtheoraenc.so.1 => /lib/x86_64-linux-gnu/libtheoraenc.so.1 (0x00007f75b47aa000)
        libtheoradec.so.1 => /lib/x86_64-linux-gnu/libtheoradec.so.1 (0x00007f75b478c000)
        libtwolame.so.0 => /lib/x86_64-linux-gnu/libtwolame.so.0 (0x00007f75b4767000)
        libvorbis.so.0 => /lib/x86_64-linux-gnu/libvorbis.so.0 (0x00007f75b473a000)
        libvorbisenc.so.2 => /lib/x86_64-linux-gnu/libvorbisenc.so.2 (0x00007f75b468f000)
        libx264.so.163 => /lib/x86_64-linux-gnu/libx264.so.163 (0x00007f75b43ce000)
        libx265.so.199 => /lib/x86_64-linux-gnu/libx265.so.199 (0x00007f75b3469000)
        libxvidcore.so.4 => /lib/x86_64-linux-gnu/libxvidcore.so.4 (0x00007f75b3356000)
        libva.so.2 => /lib/x86_64-linux-gnu/libva.so.2 (0x00007f75b3325000)
        libmfx.so.1 => /lib/x86_64-linux-gnu/libmfx.so.1 (0x00007f75b3317000)
        libxml2.so.2 => /lib/x86_64-linux-gnu/libxml2.so.2 (0x00007f75b3135000)
        libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007f75b3122000)
        libgme.so.0 => /lib/x86_64-linux-gnu/libgme.so.0 (0x00007f75b30d2000)
        libopenmpt.so.0 => /lib/x86_64-linux-gnu/libopenmpt.so.0 (0x00007f75b2f11000)
        libchromaprint.so.1 => /lib/x86_64-linux-gnu/libchromaprint.so.1 (0x00007f75b2f02000)
        libbluray.so.2 => /lib/x86_64-linux-gnu/libbluray.so.2 (0x00007f75b2eab000)
        libgnutls.so.30 => /lib/x86_64-linux-gnu/libgnutls.so.30 (0x00007f75b2cc0000)
        librabbitmq.so.4 => /lib/x86_64-linux-gnu/librabbitmq.so.4 (0x00007f75b2ca8000)
        libsrt-gnutls.so.1.4 => /lib/x86_64-linux-gnu/libsrt-gnutls.so.1.4 (0x00007f75b2be9000)
        libssh-gcrypt.so.4 => /lib/x86_64-linux-gnu/libssh-gcrypt.so.4 (0x00007f75b2b5e000)
        libzmq.so.5 => /lib/x86_64-linux-gnu/libzmq.so.5 (0x00007f75b2ac2000)
        libva-drm.so.2 => /lib/x86_64-linux-gnu/libva-drm.so.2 (0x00007f75b4a0d000)
        libva-x11.so.2 => /lib/x86_64-linux-gnu/libva-x11.so.2 (0x00007f75b2aba000)
        libvdpau.so.1 => /lib/x86_64-linux-gnu/libvdpau.so.1 (0x00007f75b2ab4000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f75b2974000)
        libdrm.so.2 => /lib/x86_64-linux-gnu/libdrm.so.2 (0x00007f75b295e000)
        libOpenCL.so.1 => /lib/x86_64-linux-gnu/libOpenCL.so.1 (0x00007f75b294c000)
        libsoxr.so.0 => /lib/x86_64-linux-gnu/libsoxr.so.0 (0x00007f75b28e5000)
        libcairo-gobject.so.2 => /lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007f75b28d9000)
        libgdk_pixbuf-2.0.so.0 => /lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007f75b28a9000)
        libgio-2.0.so.0 => /lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007f75b26cd000)
        libpangocairo-1.0.so.0 => /lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007f75b26bb000)
        libpango-1.0.so.0 => /lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007f75b2654000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f75b2634000)
        libffi.so.8 => /lib/x86_64-linux-gnu/libffi.so.8 (0x00007f75b2627000)
        libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f75b25b1000)
        libpixman-1.so.0 => /lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007f75b2504000)
        libfontconfig.so.1 => /lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007f75b24ba000)
        libfreetype.so.6 => /lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007f75b23f2000)
        libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f75b23b7000)
        libxcb-shm.so.0 => /lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007f75b23b2000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f75b2388000)
        libxcb-render.so.0 => /lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007f75b2377000)
        libXrender.so.1 => /lib/x86_64-linux-gnu/libXrender.so.1 (0x00007f75b236a000)
        libXext.so.6 => /lib/x86_64-linux-gnu/libXext.so.6 (0x00007f75b2355000)
        libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f75b2129000)
        libogg.so.0 => /lib/x86_64-linux-gnu/libogg.so.0 (0x00007f75b211e000)
        libnuma.so.1 => /lib/x86_64-linux-gnu/libnuma.so.1 (0x00007f75b210f000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f75b210a000)
        libicuuc.so.70 => /lib/x86_64-linux-gnu/libicuuc.so.70 (0x00007f75b1f0f000)
        libmpg123.so.0 => /lib/x86_64-linux-gnu/libmpg123.so.0 (0x00007f75b1eb3000)
        libvorbisfile.so.3 => /lib/x86_64-linux-gnu/libvorbisfile.so.3 (0x00007f75b1ea8000)
        libudfread.so.0 => /lib/x86_64-linux-gnu/libudfread.so.0 (0x00007f75b1e9b000)
        libp11-kit.so.0 => /lib/x86_64-linux-gnu/libp11-kit.so.0 (0x00007f75b1d60000)
        libidn2.so.0 => /lib/x86_64-linux-gnu/libidn2.so.0 (0x00007f75b1d3f000)
        libunistring.so.2 => /lib/x86_64-linux-gnu/libunistring.so.2 (0x00007f75b1b95000)
        libtasn1.so.6 => /lib/x86_64-linux-gnu/libtasn1.so.6 (0x00007f75b1b7d000)
        libnettle.so.8 => /lib/x86_64-linux-gnu/libnettle.so.8 (0x00007f75b1b37000)
        libhogweed.so.6 => /lib/x86_64-linux-gnu/libhogweed.so.6 (0x00007f75b1aed000)
        libgmp.so.10 => /lib/x86_64-linux-gnu/libgmp.so.10 (0x00007f75b1a6b000)
        libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f75b19c7000)
        libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f75b1583000)
        libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007f75b1445000)
        libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007f75b141d000)
        libgssapi_krb5.so.2 => /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 (0x00007f75b13c9000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f75b13b1000)
        libsodium.so.23 => /lib/x86_64-linux-gnu/libsodium.so.23 (0x00007f75b1359000)
        libpgm-5.3.so.0 => /lib/x86_64-linux-gnu/libpgm-5.3.so.0 (0x00007f75b1308000)
        libnorm.so.1 => /lib/x86_64-linux-gnu/libnorm.so.1 (0x00007f75b11dd000)
        libXfixes.so.3 => /lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007f75b11d3000)
        libgomp.so.1 => /lib/x86_64-linux-gnu/libgomp.so.1 (0x00007f75b1189000)
        libgmodule-2.0.so.0 => /lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007f75b1182000)
        libjpeg.so.8 => /lib/x86_64-linux-gnu/libjpeg.so.8 (0x00007f75b1101000)
        libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007f75b10bd000)
        libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007f75b108f000)
        libpangoft2-1.0.so.0 => /lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007f75b1074000)
        libharfbuzz.so.0 => /lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007f75b0fa5000)
        libfribidi.so.0 => /lib/x86_64-linux-gnu/libfribidi.so.0 (0x00007f75b0f89000)
        libthai.so.0 => /lib/x86_64-linux-gnu/libthai.so.0 (0x00007f75b0f7e000)
        libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007f75b0f4b000)
        libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007f75b0f42000)
        libbrotlidec.so.1 => /lib/x86_64-linux-gnu/libbrotlidec.so.1 (0x00007f75b0f34000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f75b0f2e000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f75b0f26000)
        libicudata.so.70 => /lib/x86_64-linux-gnu/libicudata.so.70 (0x00007f75af306000)
        libkrb5.so.3 => /lib/x86_64-linux-gnu/libkrb5.so.3 (0x00007f75af23b000)
        libk5crypto.so.3 => /lib/x86_64-linux-gnu/libk5crypto.so.3 (0x00007f75af20c000)
        libcom_err.so.2 => /lib/x86_64-linux-gnu/libcom_err.so.2 (0x00007f75af206000)
        libkrb5support.so.0 => /lib/x86_64-linux-gnu/libkrb5support.so.0 (0x00007f75af1f8000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f75af1e9000)
        libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007f75af1b2000)
        libpcre2-8.so.0 => /lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x00007f75af11b000)
        libgraphite2.so.3 => /lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007f75af0f4000)
        libdatrie.so.1 => /lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007f75af0eb000)
        libbrotlicommon.so.1 => /lib/x86_64-linux-gnu/libbrotlicommon.so.1 (0x00007f75af0c6000)
        libkeyutils.so.1 => /lib/x86_64-linux-gnu/libkeyutils.so.1 (0x00007f75af0bf000)
        libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007f75af0ab000)

@popey, @ogra - so, what should I do now?..

Someone, please tell responsible people at Canonical about this matter.
They should publish those debug symbols at least somewhere…

Hi Ivan,

Debug symbols are gcc territory. To get them you need to go to packages.ubuntu.com
and download the sources for the tools you need debugged. Then you need to compile
them with gcc -g3 -ggdb3 (no optimization flags -Ox) and install them.
You can then use gdb to debug them:)

HTH
Nikos

@nibal No, it’s not like that. Production packages available in the repositories are built with debug symbols generation turned on, then symbols are separated and packaged into separate packages which are also published. Also, recently, if you read previous messages, there’s new technology appeared and acts similar to Microsoft Symbol Server, but for gdb/Linux.
Btw, having code optimization ON does not affect ability of compiler to generate debug information, however, from my practice, having code optimization makes it harder for gdb then. The only debugger I’ve seen that handled correctly matching point in the optimized code to source (having a debug symbols, of couse) ALWAYS was the Microsoft debugger from Visual Studio. Not gdb, definitely. At least those older versions available on RHEL7/CentOS 7, where I used to had to need to investigate crashes before. Not sure about newest ones on Ubuntu. But anyway, that’s a bit off-topic historical discourse. The one more thing thing - debug symbols should be tied to a CONCRETE binary (however, not sure on Linux, but this, for example, true for binaries and debug symbols produced on Windows with MSFT toolchains), so your rebuild manual may not match the library installed in the system and used actually by the application. So, the point is, debug symbols for the published package must be already available. I’m just trying to understand, where from and in what way I can download/install them.

Hi Ivan,
So, you are not shy to use gdb. I don’t know about the “external debug symbols” and how gdb can handle them, since the main gdb problem in optimized compilations, is that it’s missing the file name and line number. I don’t know how external debug symbols can tell anyone the line number that the crash happened, especially if the same symbol is involved in many places.
Anyway, that’s what I would do. Work with the sources, locate the issue with gdb, fix it, and then put back the production version.

HTH
Nikos

Hmm… do I have any other choice on Linux? lldb? Maybe, but never used it.
Toolchain comes with debugger. lldb may mean I need to switch to clang, but I don’t want to bother myself with it.
I wish I could have Microsoft’s debugger here, but we have only gdb…

Well there are other options in Linux…
strace doesn’t need any symbols and will print all system calls…

Well, that is true but… in this case I don’t need to debug system calls. I need to debug my code that uses ffmpeg’s libavformat, libavcode, libswscale, etc. and causes some trouble to them so they crash. Not about system calls at all…

Well, when you are talking to these libraries, you really are talking to the system,
and the system contacts these libraries… Often you are sending
the wrong arguments to a read or write to cause a crash.
It is free and it is fast. You can always post results here if you find something interesting…

@nibal Then I just wonder, how would you be debugging buffer overruns and memory corruption with strace? … But anyway, I think we’ve went out of subject. The subject is - where to get those debug symbols? (without getting into recompiling ffmpeg myself from sources)