From 114298f96a06c571ca7ee421e5949420c6267b00 Mon Sep 17 00:00:00 2001 From: Sidharth Ghoshal Date: Fri, 7 Apr 2023 14:42:00 -0400 Subject: [PATCH] commented out segfault causingcode --- qsopt_ex/exact.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qsopt_ex/exact.c b/qsopt_ex/exact.c index 4b2bc88..6d91624 100644 --- a/qsopt_ex/exact.c +++ b/qsopt_ex/exact.c @@ -718,11 +718,14 @@ int QSexact_optimal_test (mpq_QSdata * p, rval = 0; if(!msg_lvl) { + /* removing this stops a segmentation fault that occurs on Mac OS. Needs further debugging to diagnose why this happens + MESSAGE(0, "upper bound (%lg) variable (%lg) and dual variable" " (%lg) don't satisfy complementary slacknes for variable " "(%s,%d) %s", mpq_get_d(arr4[col]), mpq_get_d(p_sol[i+qslp->nstruct]), mpq_get_d(dz[col]), qslp->colnames[col], i, "(real)"); + */ } goto CLEANUP; }