Bug 2273740 - jemalloc-debuginfo rpm is corrupted
Summary: jemalloc-debuginfo rpm is corrupted
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: jemalloc
Version: epel8
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Ingvar Hagelund
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-06 00:07 UTC by Haihua Yang
Modified: 2024-04-26 00:35 UTC (History)
7 users (show)

Fixed In Version: jemalloc-5.2.1-3.el8
Clone Of:
Environment:
Last Closed: 2024-04-26 00:35:08 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Haihua Yang 2024-04-06 00:07:35 UTC
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:

Comment 1 Haihua Yang 2024-04-06 00:12:45 UTC
I suspect there was something wrong in packaging jemalloc, because I rebuild jemalloc, it works fine.

Comment 2 Mark Wielaard 2024-04-06 10:31:32 UTC
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.

Comment 3 Panu Matilainen 2024-04-17 07:51:06 UTC
So jemalloc needs a rebuild...

Comment 4 Fedora Update System 2024-04-17 12:59:37 UTC
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

Comment 5 Fedora Update System 2024-04-18 01:37:08 UTC
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.

Comment 6 Fedora Update System 2024-04-26 00:35:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.