Description of problem: while using gdb to debug program linked with jemalloc, gdb report (gdb) p je_arenas DW_FORM_strp pointing outside of .debug_str section [in module /usr/lib/debug/usr/lib64/libjemalloc.so.2-5.2.1-2.el8.x86_64.debug] Version-Release number of selected component (if applicable): linux el8 How reproducible: Steps to Reproduce: 1. on el8, install jemalloc and its debuginfo from https://dl.fedoraproject.org/pub/epel/8/Everything/x86_64/ 2. create a simple c program linked with -ljemalloc 3. gdb the program, try print any symbol of jemalloc Actual results: gdb report error DW_FORM_strp pointing outside of .debug_str section [in module /usr/lib/debug/usr/lib64/libjemalloc.so.2-5.2.1-2.el8.x86_64.debug] Expected results: it should report the value of the symbol Additional info:
I suspect there was something wrong in packaging jemalloc, because I rebuild jemalloc, it works fine.
jemalloc-5.2.1-2.el8 was build back in 2019 against rpm-build-4.14.2-11.el8_0. Looking in the build.log: https://kojipkgs.fedoraproject.org//packages/jemalloc/5.2.1/2.el8/data/logs/x86_64/build.log CONFIGURE_CFLAGS : -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O3 -funroll-loops CONFIGURE_CXXFLAGS : -Wall -Wextra -g3 -fvisibility=hidden -O3 Note the -g3, there was some bug in rpm-build that didn't handle that correctly till: * Tue Nov 12 2019 Panu Matilainen <pmatilai> - 4.14.2-30 - Handle gcc -g3 debug level output in debuginfo (#1630926) Which explains why rebuilding jemalloc fixes the issue.
So jemalloc needs a rebuild...
FEDORA-EPEL-2024-1c8794a8c4 (jemalloc-5.2.1-3.el8) has been submitted as an update to Fedora EPEL 8. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-1c8794a8c4
FEDORA-EPEL-2024-1c8794a8c4 has been pushed to the Fedora EPEL 8 testing repository. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2024-1c8794a8c4 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-EPEL-2024-1c8794a8c4 (jemalloc-5.2.1-3.el8) has been pushed to the Fedora EPEL 8 stable repository. If problem still persists, please make note of it in this bug report.