Hide Forgot
Description of problem: Whenever attempting to undo or redo a specific transaction by ID number, DNF crashes with a segmentation fault. Listing transactions or getting info on a transaction does not cause a segfault. Name-Version-Release of components (if applicable): dnf-2.0.0-0.0.1.rc1.mga6 (= dnf-2.0.0-0.rc1.4.fc26) libdnf-0.7.0-0.0.1.20161010.git.817d2a1.mga6 libdnf-0.7.0-0.0.2.20161108.git.f102fd3.mga6 How reproducible: Always Steps to Reproduce: 1. Install something with DNF 2. Get the transaction ID of the transaction with "dnf history list" 3. Use "dnf history undo <ID>" or "dnf history redo <ID>" Actual results: Crashes with "Segmentation fault" Expected results: Does the redo/undo operation with the transaction Additional info: This issue was discovered on Mageia Cauldron using the DNF 2.0 Copr for Cauldron[1]. The "last" keyword wasn't used because of bug 1393594. [1]: https://copr.fedorainfracloud.org/coprs/ngompa/dnf2-mga/
Please provide backtrace.
Created attachment 1219368 [details] Backtrace of dnf history undo 81 Backtrace generated from running: "sudo gdb -ex r --args python3 /usr/bin/dnf history undo 81 | tee dnfhistoryundo.txt"
*** Bug 1393594 has been marked as a duplicate of this bug. ***
Take a look at https://github.com/rpm-software-management/libhif/pull/213
I locally applied the patch and attempted the test case again, and I was able to undo and redo transactions.
Fixed in dnf 2.0 rc2.