public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Growl <uwsy1059@qq.com>
To: git-commits@fedoraproject.org
Subject: [rpms/coin-or-Ipopt] rawhide: Add a patch to fix SIGSEGV with newer MPICH versions
Date: Sun, 02 Aug 2026 16:41:00 GMT [thread overview]
Message-ID: <178568886035.1.1423489963158165795.rpms-coin-or-Ipopt-5ce6ab34cc7c@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/coin-or-Ipopt
Branch : rawhide
Commit : 5ce6ab34cc7cbfa8a7dc725e2258f5d47cc38a0e
Author : Growl <uwsy1059@qq.com>
Date : 2026-07-29T17:40:38+08:00
Stats : +29/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/coin-or-Ipopt/c/5ce6ab34cc7cbfa8a7dc725e2258f5d47cc38a0e?branch=rawhide
Log:
Add a patch to fix SIGSEGV with newer MPICH versions
---
diff --git a/coin-or-Ipopt.spec b/coin-or-Ipopt.spec
index e821916..cf045d5 100644
--- a/coin-or-Ipopt.spec
+++ b/coin-or-Ipopt.spec
@@ -31,6 +31,7 @@ Release: %autorelease
License: EPL-2.0
URL: https://coin-or.github.io/%{module}/
Source0: https://github.com/coin-or/Ipopt/archive/releases/%{version}/Ipopt-releases-%{version}.tar.gz
+Patch: fix-sigsegv-mpich.patch
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -139,6 +140,7 @@ use %{name}-mpich.
%setup -qc
pushd Ipopt-releases-%{version}
+%autopatch -p1
# Generate a doxygen tag file, disabled upstream in the 3.13.0 release
sed -i 's/#\(GENERATE_TAGFILE\)/\1/' doc/Doxyfile.in
diff --git a/fix-sigsegv-mpich.patch b/fix-sigsegv-mpich.patch
new file mode 100644
index 0000000..d5ab41e
--- /dev/null
+++ b/fix-sigsegv-mpich.patch
@@ -0,0 +1,27 @@
+Upstream PR: https://github.com/coin-or/Ipopt/pull/846
+
+From f4e0dd1f4ba389367629debfaf69bdec4987555f Mon Sep 17 00:00:00 2001
+From: Shengqi Chen <harry-chen@outlook.com>
+Date: Thu, 11 Sep 2025 22:43:09 +0800
+Subject: [PATCH] Fix MPI_Init arguments in LpMumpsSolverInterface to fix SIGSEGV with MPICH >= 4.3.1
+
+MPICH (>= 4.3.1) will dereference `argv` when `argc` is larger than 0.
+The previous way of passing arguments will cause a SIGSEGV since `argv` is NULL.
+
+See: https://github.com/pmodels/mpich/commit/e9560dde891ab1414b9aec02a2e8acc4622d5e1b
+
+diff --git a/src/Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp b/src/Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp
+index 14c475ddd..88599dd6e 100644
+--- a/src/Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp
++++ b/src/Algorithm/LinearSolvers/IpMumpsSolverInterface.cpp
+@@ -63,9 +63,7 @@ static void MPIinit(void)
+ MPI_Initialized(&mpi_initialized);
+ if( !mpi_initialized )
+ {
+- int argc = 1;
+- char** argv = NULL;
+- MPI_Init(&argc, &argv);
++ MPI_Init(NULL, NULL);
+ }
+ }
+
reply other threads:[~2026-08-02 16:41 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=178568886035.1.1423489963158165795.rpms-coin-or-Ipopt-5ce6ab34cc7c@fedoraproject.org \
--to=uwsy1059@qq.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