-
Notifications
You must be signed in to change notification settings - Fork 363
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
Fix segfault in add_pin/all_problems_structured #2428
Conversation
This assumes that a pin is installed though, right? |
If the pin is not installed, then it will get installed with this new version. Do we want to have pins that are not installed? Something like install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I'm not expert in libsolv so I recommend getting another review from someone who is.
75caca0
to
e8d6b3d
Compare
This fixes a segfault that appears in using a combinaison of
Msolver::add_pin
andMSolver::all_problems_structured
(called on solving error).The problem is similar than the one fixed in #2277.
The new implementation aliasesMSolver::add_job
(see comment for explanation).