Skip to content
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

dnf history rollback cmd causes core dump #1652

Closed
chenhaixing123 opened this issue Apr 17, 2024 · 1 comment · Fixed by #1658
Closed

dnf history rollback cmd causes core dump #1652

chenhaixing123 opened this issue Apr 17, 2024 · 1 comment · Fixed by #1658
Assignees
Labels
Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take

Comments

@chenhaixing123
Copy link

chenhaixing123 commented Apr 17, 2024

dnf history rollback cmd causes codedump

here are the steps to reproduce the issue
1.dnf remove -y samba samba-common
2.dnf install -y samba samba-common
3.dnf history rollback -y 1

expected result:
no core dumped

actual results:
Aborted (core dumped)

related:#1644

GDB information:

itemPairMap.erase(getItemIdentifier(firstItem));

resolveRPMDifference(itemPairMap, previousItemPair, mTransItem);

resolveErase(itemPairMap, previousItemPair, mTransItem);

@jan-kolarik jan-kolarik self-assigned this Apr 23, 2024
@jan-kolarik jan-kolarik changed the title dnf history rollback cmd causes codedump dnf history rollback cmd causes core dump Apr 23, 2024
@jan-kolarik jan-kolarik added the Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take label Apr 23, 2024
@jan-kolarik
Copy link
Member

Thanks for the report. I've replicated the described behavior and prepared the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triaged Someone on the DNF 5 team has read the issue and determined the next steps to take
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants