Retrieving debug symbols for CachyOS binaries

I’ve been using CachyOS for a couple of years. Every time I’ve tried to query its debuginfod server, I’ve always received a 502 response.

Ultimately, my goal is to get debug symbols for proton-mail (provided by cachyos/proton-mail 1.6.0-2), as that’s segfaulting on my system. There is no proton-mail-debug package (as far as I’ve found). I’ll start with a more common binary, zstd, for testing debuginfod in this post.

I tried a simple test to manually retrieve debug symbols for zstd (provided by cachyos-v3/zstd 1.5.7-2), which failed:

$ debuginfod-find debuginfo /usr/bin/zstd
Server query failed: No such file or directory

This is similar for proton-mail:

$ debuginfod-find debuginfo /usr/bin/proton-mail
Server query failed: No such file or directory

On the other hand, this works for cat (provided by core/coreutils 9.6-2):

$ debuginfod-find debuginfo /usr/bin/cat      
/home/nisavid/.cache/debuginfod_client/2a384d466b1e0da14aa577d2df7a7cea395609bd/debuginfo

I have my DEBUGINFOD_URLS set up with both the Arch and the CachyOS servers:

$ print $DEBUGINFOD_URLS                                                            
https://debuginfod.archlinux.org https://debuginfod.cachyos.org

I also tried with the federated elfutils debuginfod server:

$ DEBUGINFOD_URLS='https://debuginfod.elfutils.org' debuginfod-find debuginfo /usr/bin/zstd
Server query failed: No such file or directory

$ DEBUGINFOD_URLS='https://debuginfod.elfutils.org' debuginfod-find debuginfo /usr/bin/proton-mail
Server query failed: No such file or directory

$ DEBUGINFOD_URLS='https://debuginfod.elfutils.org' debuginfod-find debuginfo /usr/bin/cat
/home/nisavid/.cache/debuginfod_client/2a384d466b1e0da14aa577d2df7a7cea395609bd/debuginfo

For zstd, I can get the debug symbols by installing cachyos-v3/zstd-debug 1.5.7-2. However, for proton-mail, there appears to be no proton-mail-debug package.

I’m relatively new to Arch/CachyOS and debuginfod. Am I doing something wrong, or is it a persistent issue with the CachyOS debuginfod server? Can I retrieve the proton-mail debug symbols from somewhere, or is it necessary to build them myself?

You need to build it yourself. Sources are from AUR (en) - proton-mail.