[bitnami/mariadb] debug symbols availability on components
Name and Version
bitnami/mariadb-galera:10.5.9-debian-10-r57
What is the problem this feature will solve?
Resolving stack traces for core dumps/segfaults (like MDEV-29444) without a debug symbols is at least hard, verging on impossible.
podman run -ti --user root bitnami/mariadb-galera:10.5.9-debian-10-r57 bash # apt-get update && apt-get install -y gdb # gdb /opt/bitnami/mariadb/sbin/mariadbd .. Reading symbols from /opt/bitnami/mariadb/sbin/mariadbd...(no debugging symbols found)...done. (gdb) list *fb7d2e No symbol table is loaded. Use the "file" command.
Without an address to symbol resolution an upstream resolution of the user's issue is unlikely. Only some of the symbols generated by the mariadbd have any accuracy (not a bitnami problem).
What is the feature you are proposing to solve the problem?
Save the debug symbols during the build process and make a documented way of retrieving them.
A really ideal way would be to provide a debuginfod service and expose DEBUGINFOD_URLS as the URL in the container so (newer) gdbs can automaticity retrieve these.
What alternatives have you considered?
Building an new image based on the bitnami image with the executables replaces with ones with debug symbols and get the user to get a new crash that which I'll then be able to resolve.