public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - fix segfault when building more than one package at a time (#675565)
@ 2026-11-23  9:26 Panu Matilainen
  0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23  9:26 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/rpm
Branch : pmatilai-v6
Commit : 05eaef6e8070c79904ac50ef7a815d433e9eaf2a
Author : Panu Matilainen <pmatilai@redhat.com>
Date   : 2011-02-07T09:21:01+02:00
Stats  : +24/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/rpm/c/05eaef6e8070c79904ac50ef7a815d433e9eaf2a?branch=pmatilai-v6

Log:
- fix segfault when building more than one package at a time (#675565)

---
diff --git a/rpm-4.9.0-beta1-rpmugfree.patch b/rpm-4.9.0-beta1-rpmugfree.patch
new file mode 100644
index 0000000..916db53
--- /dev/null
+++ b/rpm-4.9.0-beta1-rpmugfree.patch
@@ -0,0 +1,18 @@
+commit ec031020eb7ed9a0cc3d086bcd7ae7611eb308fc
+Author: Panu Matilainen <pmatilai@redhat.com>
+Date:   Mon Feb 7 09:15:29 2011 +0200
+
+    Fix segfault when building more than one rpm (RhBug:675565)
+    - Remember to set the static string cache pointer to NULL on free, duh
+
+diff --git a/lib/rpmug.c b/lib/rpmug.c
+index 2bb18e5..b365e4a 100644
+--- a/lib/rpmug.c
++++ b/lib/rpmug.c
+@@ -198,5 +198,5 @@ void rpmugFree(void)
+     rpmugGid(NULL, NULL);
+     rpmugUname(-1);
+     rpmugGname(-1);
+-    strCacheFree(strStash);
++    strStash = strCacheFree(strStash);
+ }

diff --git a/rpm.spec b/rpm.spec
index d54048c..137f647 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -22,7 +22,7 @@
 Summary: The RPM package management system
 Name: rpm
 Version: %{rpmver}
-Release: %{?snapver:0.%{snapver}.}6%{?dist}
+Release: %{?snapver:0.%{snapver}.}7%{?dist}
 Group: System Environment/Base
 Url: http://www.rpm.org/
 Source0: http://rpm.org/releases/rpm-4.8.x/%{name}-%{srcver}.tar.bz2
@@ -50,6 +50,7 @@ Patch105: rpm-4.9.0-beta1-env-noremove.patch
 Patch106: rpm-4.9.0-beta1-open-cwd.patch
 Patch107: rpm-4.9.0-beta1-monodeps.patch
 Patch108: rpm-4.9.0-beta1-ocaml-magic.patch
+Patch109: rpm-4.9.0-beta1-rpmugfree.patch
 
 # These are not yet upstream
 Patch301: rpm-4.6.0-niagara.patch
@@ -223,6 +224,7 @@ packages on a system.
 %patch106 -p1 -b .open-cwd
 %patch107 -p1 -b .monodeps
 %patch108 -p1 -b .ocaml-magic
+%patch109 -p1 -b .rpmugfree
 
 %patch301 -p1 -b .niagara
 %patch302 -p1 -b .geode
@@ -433,6 +435,9 @@ exit 0
 %doc COPYING doc/librpm/html/*
 
 %changelog
+* Mon Feb 07 2011 Panu Matilainen <pmatilai@redhat.com> - 4.9.0-0.beta1.7
+- fix segfault when building more than one package at a time (#675565)
+
 * Sun Feb 06 2011 Panu Matilainen <pmatilai@redhat.com> - 4.9.0-0.beta1.6
 - adjust ocaml rule for libmagic string change
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-23  9:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23  9:26 [rpms/rpm] pmatilai-v6: - fix segfault when building more than one package at a time (#675565) Panu Matilainen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox