0018209: rpmbuild of openzfs sometimes crashes rpmbuild, corrupts rpmdb

0018209: rpmbuild of openzfs sometimes crashes rpmbuild, corrupts rpmdb

The short version is that <a href="https://bugzilla.redhat.com/show_bug.cgi?id=1705320">https://bugzilla.redhat.com/show_bug.cgi?id=1705320</a> also applies to up-to-date-as-of-today CentOS 8 (and presumably all its el8 cousins).<br />
<br />
For those who don’t like clicking links – rpmbuild as root of the openzfs specfiles can result in crashes in strange places and sometimes corruption of the rpmdb, owing to file incorrectly using exit() instead of _exit() in an error handling codepath. The fix is a one-character diff.<br />
<br />
[<a href="mailto:rich@centosbox">rich@centosbox</a> ~]$ rpm -q file rpm-build<br />
file-5.33-16.el8_3.1.x86_64<br />
rpm-build-4.14.3-4.el8.x86_64<br />
[<a href="mailto:rich@centosbox">rich@centosbox</a> ~]$ uname -a<br />
Linux centosbox 4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux<br />
[<a href="mailto:rich@centosbox">rich@centosbox</a> ~]$ sudo coredumpctl list<br />
TIME PID UID GID SIG COREFILE EXE<br />
Mon 2021-05-31 22:40:51 EDT 2430478 0 0 7 present /usr/bin/rpmbuild<br />
Tue 2021-06-01 01:35:29 EDT 2805076 0 0 7 present /usr/bin/rpmbuild

* This article was originally published here

Leave a Reply

Your email address will not be published. Required fields are marked *