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:
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
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.
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.
In particular, https://sourceware.org/git/?p=dwz.git;a=blobdiff;f=dwz.c;h=9e39824d0f1fec950c811357c62e6a0caa1880d7;hp=6f34a0c7f84d00aa74750ea7d60c882967d252c0;hb=4a89e2c78e57b1b05ff71a8e32b2219e02d30425;hpb=815ac613209fa8cbcdda57302a0a1ab0366923ad applies cleanly and fixes the bug (and can be tested by QA using the #c1 reproducer).
I mistakenly reset DTM. I am sorry.
Reproduced against dwz-0.12-9.el8 and verified against dwz-0.12-10.el8
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