Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
The short version is that https://bugzilla.redhat.com/show_bug.cgi?id=1705320 also applies to up-to-date-as-of-today CentOS Stream 8
For those who don't like clicking links - rpmbuild as root of OpenZFS 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 change.
Version-Release number of selected component (if applicable):
file-5.33-20.el8.x86_64
How reproducible:
It's memory corruption, so not necessarily 100% of the time, but it happened on the first attempt when I tried it.
Steps to Reproduce:
1. Don't have ncompress installed
2. Build OpenZFS RPMs as root (I've been using the "rpm-utils" target)
Actual results:
[...]
Executing(%clean): /bin/sh -e /tmp/zfs-build-root-OKflIeor/TMP/rpm-tmp.o3vTwK
+ umask 022
+ cd /tmp/zfs-build-root-OKflIeor/BUILD
+ cd zfs-2.1.99
+ /usr/bin/rm -rf /tmp/zfs-build-root-OKflIeor/BUILDROOT/zfs-2.1.99-247_g8d5f211fc.el8.x86_64
+ exit 0
Executing(--clean): /bin/sh -e /tmp/zfs-build-root-OKflIeor/TMP/rpm-tmp.OUG5uI
+ umask 022
+ cd /tmp/zfs-build-root-OKflIeor/BUILD
+ rm -rf zfs-2.1.99
+ exit 0
/bin/sh: line 13: 264001 Segmentation fault (core dumped) LANG=C rpmbuild --define "_tmppath $rpmbuild/TMP" --define "_topdir $rpmbuild" --define "_without_debug 1" --define "_without_debuginfo 1" --define "_without_debug_kmem 1" --define "_without_debug_kmem_tracking 1" --define "_without_asan 1" --define "_initconfdir /etc/sysconfig" --define "_dracutdir /usr/lib/dracut" --define "_udevdir /lib/udev" --define "_udevruledir /lib/udev/rules.d" --with systemd --define "_unitdir /usr/lib/systemd/system" --define "_presetdir /usr/lib/systemd/system-preset" --define "_generatordir /usr/lib/systemd/system-generators" --with pyzfs --rebuild $rpmpkg
make[1]: *** [Makefile:1669: rpm-common] Error 1
make[1]: Leaving directory '/root/zfs_vanilla'
make: *** [Makefile:1624: rpm-utils] Error 2
# rpm -q file
error: rpmdb: BDB0113 Thread/process 264001/140218703545152 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
error: rpmdb: BDB0113 Thread/process 264001/140218703545152 failed: BDB1507 Thread died in Berkeley DB library
error: db5 error(-30973) from dbenv->failchk: BDB0087 DB_RUNRECOVERY: Fatal error, run database recovery
error: cannot open Packages index using db5 - (-30973)
error: cannot open Packages database in /var/lib/rpm
package file is not installed
Expected results:
RPMs generated, no crashing, no rpmdb corruption
Additional info:
Comment 3RHEL Program Management
2022-12-04 07:27:44 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.