setup 2.920 release candidate - please test
Sun Aug 14 19:00:58 GMT 2022
On 14/08/2022 17:47, Achim Gratz wrote:
> Christian Franke writes:
>> This version aborts if "Sync" setting is reverted to "Best".
> If the abort goes away when building setup with the previous version of
> libsolv then you might have found an easier reproducer for a bug I'm
> chasing… Running it in gdb should get you a SIGSEGV in
> solver_addduprules in this case.
After some staring at this crash and the code involved, I think the
attached is the fix for this.
I think this crash would only occur if the solver was used with at least
one package marked for distupgrade, then reused without any.
-------------- next part --------------
From 480123038537b89bcfca4a8ac9b40271eb7f5d5b Mon Sep 17 00:00:00 2001
From: Jon Turney <firstname.lastname@example.org>
Date: Sun, 14 Aug 2022 18:45:20 +0100
Subject: [PATCH] Ensure duplinvolvedmap_all is reset when a solver is reused
Otherwise this can cause solver_addduprules() to be called even though
needduprules is 0, which will crash because solver_createdupmaps()
hasn't been called.
src/solver.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/solver.c b/src/solver.c
index 28341d6d..e3779e23 100644
@@ -3533,6 +3533,7 @@ solver_solve(Solver *solv, Queue *job)
solv->fixmap_all = 0;
+ solv->dupinvolvedmap_all = 0;
solv->process_orphans = 0;
More information about the Cygwin