RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1949185 - dwz: dwz.c:1984: checksum_die: Assertion (core dumped)
Summary: dwz: dwz.c:1984: checksum_die: Assertion (core dumped)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dwz
Version: 8.4
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: beta
: ---
Assignee: Marek Polacek
QA Contact: Michal Kolar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-13 16:24 UTC by Tomáš Hozza
Modified: 2023-07-18 14:19 UTC (History)
5 users (show)

Fixed In Version: dwz-0.12-10.el8
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-09 18:40:47 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
rh1949185.tar.xz (5.99 MB, application/octet-stream)
2021-04-30 15:19 UTC, Jakub Jelinek
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:4244 0 None None None 2021-11-09 18:40:49 UTC
Sourceware 24170 0 P2 RESOLVED dwz: dwz.c:1985: checksum_die: Assertion `((!op_multifile && !rd_multifile && !fi_multifile) || cu != die_cu (ref)) && (... 2021-04-30 15:35:08 UTC

Description Tomáš Hozza 2021-04-13 16:24:05 UTC
Description of problem:
DWZ component crashes during build of osbuild-composer RPM. The build log contains the following error:

dwz: dwz.c:1984: checksum_die: Assertion `((!op_multifile && !rd_multifile && !fi_multifile) || cu != die_cu (ref)) && (!op_multifile || cu->cu_chunk == die_cu (ref)->cu_chunk)' failed.
/usr/lib/rpm/find-debuginfo.sh: line 549: 2974151 Aborted                 (core dumped) dwz $dwz_opts ${dwz_files[@]}

This can be seen e.g. in the RHEL-8.4.0 osbuild-composer build log from Brew: http://download.eng.bos.redhat.com/brewroot/vol/rhel-8/packages/osbuild-composer/28.4/1.el8/data/logs/x86_64/build.log

Version-Release number of selected component (if applicable):
dwz-0.12-9.el8

How reproducible:
Always

Steps to Reproduce:
1. Either rebuild the osbuild-composer RHEL-8 SRPM in Brew or build the latest upstream version (https://github.com/osbuild/osbuild-composer) on RHEL-8 using `make rpm`

Actual results:
DWZ produces core dump during the osbuild-composer RPM build

Expected results:
DWZ does not produce core dump

Additional info:

Comment 1 Jakub Jelinek 2021-04-30 15:19:57 UTC
Created attachment 1777834 [details]
rh1949185.tar.xz

Reproducer:
tar xif rh1949185.tar.xz
dwz -h -q -r -m osbuild-composer-28.4-1.el8.x86_64 -l 10000000 -L 110000000 osbuild-composer-28.4-1.el8.x86_64.debug osbuild-worker-28.4-1.el8.x86_64.debug

Comment 2 Jakub Jelinek 2021-04-30 15:35:11 UTC
In dwz 0.13 (or 0.14) it is fixed with sw#24170 fix
https://sourceware.org/git/?p=dwz.git;a=commit;h=4a89e2c78e57b1b05ff71a8e32b2219e02d30425
goland emits inefficient but not wrong DWARF which dwz didn't expect - other compilers normally don't emit that.

Comment 3 Jakub Jelinek 2021-04-30 15:38:35 UTC
dwz 0.12 didn't have testsuite, so the whole git diff doesn't apply as is, but the dwz.c chunk does and fixes the testcase.

Comment 6 Michal Kolar 2021-05-05 08:29:02 UTC
I mistakenly reset DTM. I am sorry.

Comment 7 Michal Kolar 2021-05-16 20:45:56 UTC
Reproduced against dwz-0.12-9.el8 and verified against dwz-0.12-10.el8

Comment 14 errata-xmlrpc 2021-11-09 18:40:47 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (dwz bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:4244


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