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

Fix segfault in add_pin/all_problems_structured #2428

Merged
merged 5 commits into from
Apr 4, 2023

Conversation

AntoinePrv
Copy link
Member

@AntoinePrv AntoinePrv commented Mar 30, 2023

This fixes a segfault that appears in using a combinaison of Msolver::add_pin and MSolver::all_problems_structured (called on solving error).
The problem is similar than the one fixed in #2277.
The new implementation aliases MSolver::add_job (see comment for explanation).

@wolfv
Copy link
Member

wolfv commented Mar 30, 2023

This assumes that a pin is installed though, right?

@AntoinePrv
Copy link
Member Author

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 foo but if you need python it has to be 3.8? I did not think of that use case...

@AntoinePrv AntoinePrv marked this pull request as draft March 30, 2023 11:55
Copy link
Member

@Klaim Klaim left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::bug Something isn't working where::libsolv
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Non-deterministic behavior and segmentation fault when environment cannot be solved
4 participants