public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/coin-or-Ipopt] rawhide: Add a patch to fix SIGSEGV with newer MPICH versions
@ 2026-08-02 16:41 Growl
0 siblings, 0 replies; only message in thread
From: Growl @ 2026-08-02 16:41 UTC (permalink / raw)
To: git-commits
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);
+ }
+ }
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-02 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-02 16:41 [rpms/coin-or-Ipopt] rawhide: Add a patch to fix SIGSEGV with newer MPICH versions Growl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox