]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: threads: don't try to free build option message on exit
authorWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 10:50:18 +0000 (11:50 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 5 Nov 2017 10:51:48 +0000 (11:51 +0100)
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.

src/hathreads.c

index 0db48c9a36ca6e35b00bd23ecc91304b98b3c5f9..36bdca210a54e7c97ed272a86e2258c57b64e907 100644 (file)
@@ -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