From: Willy Tarreau Date: Sun, 5 Nov 2017 10:50:18 +0000 (+0100) Subject: BUG/MEDIUM: threads: don't try to free build option message on exit X-Git-Tag: v1.8-rc3~58 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6dbd3e963bc4f7c3fae545b623989afe5d68c198;p=thirdparty%2Fhaproxy.git BUG/MEDIUM: threads: don't try to free build option message on exit Commit 0493149 ("MINOR: thread: report multi-thread support in haproxy -vv") added information about thread support in haproxy -vv output but accidently marked the message as "must_free" while it's a constant. This causes a segv on the old process on clean exit if threads are enabled. It doesn't affect the stability during operations however. --- diff --git a/src/hathreads.c b/src/hathreads.c index 0db48c9a36..36bdca210a 100644 --- a/src/hathreads.c +++ b/src/hathreads.c @@ -155,7 +155,7 @@ static void __hathreads_init(void) #if defined(DEBUG_THREAD) || defined(DEBUG_FULL) memset(lock_stats, 0, sizeof(lock_stats)); #endif - hap_register_build_opts("Built with multi-threading support.", 1); + hap_register_build_opts("Built with multi-threading support.", 0); } #endif