-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dnf5 builddep crashes in Fedora 41 container #1864
Comments
Reproducer:
At the point when almost everything is installed, dnf crashes. |
FreeIPA spec has '%autopatch -p1` but no patches in this scenario which causes a warning to be issued when parsing the spec file. However, unlike DNF4, DNF5 crashes when printing this warning. |
See rpm-software-management/dnf5#1864 Avoid warning in autopatch by using -q option to suppress warnings. Signed-off-by: Alexander Bokovoy <[email protected]>
Using
|
See rpm-software-management/dnf5#1864 Avoid warning in autopatch by using -q option to suppress warnings. Signed-off-by: Alexander Bokovoy <[email protected]>
See rpm-software-management/dnf5#1864 Avoid warning in autopatch by using -q option to suppress warnings. Signed-off-by: Alexander Bokovoy <[email protected]>
See rpm-software-management/dnf5#1864 Avoid warning in autopatch by using -q option to suppress warnings. Signed-off-by: Alexander Bokovoy <[email protected]>
Hi there... Before opening a new issue here... could this be related? |
I think it might be a similar cause but there is no detail there. Two examples in the bug use |
This patch addresses undefined behavior that occurs when the RPM log callback function is invoked after the RpmLogGuard object has been destroyed. The issue arises because rpmlogCallbackData retains a reference to the destroyed object. The problem manifests during the execution of the builddep plugin command: 1. During Vars::detect_release, the RPM log callback is set via RpmLogGuard. 2. After the release version is detected, the RpmLogGuard object is destroyed. 3. A subsequent call to rpmSpecParse() by the builddep command may trigger the previously set log callback. 4. This results in undefined behavior because the callback data still points to the destroyed RpmLogGuard. By resetting the RPM log callback upon RpmLogGuard destruction, this patch ensures safe and predictable behavior. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2326535 Resolves: #1864
This patch addresses undefined behavior that occurs when the RPM log callback function is invoked after the RpmLogGuard object has been destroyed. The issue arises because rpmlogCallbackData retains a reference to the destroyed object. The problem manifests during the execution of the builddep plugin command: 1. During Vars::detect_release, the RPM log callback is set via RpmLogGuard. 2. After the release version is detected, the RpmLogGuard object is destroyed. 3. A subsequent call to rpmSpecParse() by the builddep command may trigger the previously set log callback. 4. This results in undefined behavior because the callback data still points to the destroyed RpmLogGuard. By resetting the RPM log callback upon RpmLogGuard destruction, this patch ensures safe and predictable behavior. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2326535 Resolves: #1864
DNF5 builddep crashes in Fedora 41 container. We use fedora-toolbox container in FreeIPA CI and part of the process we run is a rebuild of FreeIPA package. For that we need to install build dependencies with
dnf builddep
. This works well for Fedora 40 and prior versions but since this morning we've got reliable crashes indnf builddep
.It is reproducible outside of a cloud environment as well. Below is the stacktrace we get:
The text was updated successfully, but these errors were encountered: