public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: rochaporto <rocha.porto@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gridsite] epel10: added patch for segfault under high load
Date: Thu, 19 Nov 2026 09:01:49 GMT [thread overview]
Message-ID: <179507890943.1.1553401437719843232.rpms-gridsite-959dffae7360@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gridsite
Branch : epel10
Commit : 959dffae7360ea46a3fb7bf3a79c3f70076fecc7
Author : rochaporto <rocha.porto@gmail.com>
Date : 2012-09-13T18:37:21+02:00
Stats : +33/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/gridsite/c/959dffae7360ea46a3fb7bf3a79c3f70076fecc7?branch=epel10
Log:
added patch for segfault under high load
---
diff --git a/gridsite-cred-segfault.patch b/gridsite-cred-segfault.patch
new file mode 100644
index 0000000..14973b0
--- /dev/null
+++ b/gridsite-cred-segfault.patch
@@ -0,0 +1,24 @@
+diff -rupN org.gridsite.core.ORIG/src/mod_gridsite.c org.gridsite.core/src/mod_gridsite.c
+--- org.gridsite.core.ORIG/src/mod_gridsite.c 2012-09-13 18:21:12.000000000 +0200
++++ org.gridsite.core/src/mod_gridsite.c 2012-09-13 18:21:24.000000000 +0200
+@@ -3237,12 +3237,14 @@ static int mod_gridsite_perm_handler(req
+
+ apr_table_setn(r->notes, "GRST_PERM", apr_psprintf(r->pool, "%d", perm));
+
+- cred = user->firstcred;
+- if ((cred != NULL) && (strncmp(cred->auri, "dn:", 3) == 0))
+- {
+- apr_table_setn(r->notes, "GRST_CRED_AURI_0",
+- apr_psprintf(r->pool, "%s", cred->auri));
+- }
++ if (user != NULL) {
++ cred = user->firstcred;
++ if ((cred != NULL) && (strncmp(cred->auri, "dn:", 3) == 0))
++ {
++ apr_table_setn(r->notes, "GRST_CRED_AURI_0",
++ apr_psprintf(r->pool, "%s", cred->auri));
++ }
++ }
+
+
+ if (((mod_gridsite_dir_cfg *) cfg)->envs)
diff --git a/gridsite.spec b/gridsite.spec
index ff0a7c1..3b8d02d 100644
--- a/gridsite.spec
+++ b/gridsite.spec
@@ -4,7 +4,7 @@
Name: gridsite
Version: 1.7.21
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Grid Security for the Web, Web platforms for Grids
Group: System Environment/Daemons
@@ -28,6 +28,9 @@ Patch1: cgi-bin-location-1.7.21.patch
# httpd 2.4 support.
# https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind1204&L=GRIDSITE-DISCUSS&F=&S=&P=59
Patch2: gridsite-httpd24.patch
+# mod_gridsite segfaults randomly under high load
+# https://ggus.eu/tech/ticket_show.php?ticket=86044
+Patch3: gridsite-cred-segfault.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -142,6 +145,8 @@ cp -p %{SOURCE5} .
%patch2 -p1
%endif
+%patch3 -p1
+
%build
(cd src && MYCFLAGS="%{optflags} -DLINUX=2 -D_REENTRANT -D_LARGEFILE64_SOURCE -I../interface -I%{_includedir}/httpd -I%{_includedir}/apr-%{aprversion} -fPIC " make )
@@ -278,6 +283,9 @@ rm -rf $RPM_BUILD_ROOT
%doc src/doxygen LICENSE
%changelog
+* Thu Sep 13 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-3
+- Added patch for segfault under high load
+
* Mon Jul 16 2012 Ricardo Rocha <ricardo.rocha@cern.ch> - 1.7.21-2
- Rebuild with proper tarballs
reply other threads:[~2026-11-19 9:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179507890943.1.1553401437719843232.rpms-gridsite-959dffae7360@fedoraproject.org \
--to=rocha.porto@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox