From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E0E6622333 for ; Thu, 20 Dec 2018 07:49:51 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sElGtoYj-liF for ; Thu, 20 Dec 2018 07:49:51 -0500 (EST) Received: from smtp29.i.mail.ru (smtp29.i.mail.ru [94.100.177.89]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 287AA2232F for ; Thu, 20 Dec 2018 07:49:51 -0500 (EST) From: Alexander Turenko Subject: [tarantool-patches] [PATCH] Fix build with ENABLE_ASAN=ON Date: Thu, 20 Dec 2018 15:49:48 +0300 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: tarantool-patches-bounce@freelists.org Errors-to: tarantool-patches-bounce@freelists.org Reply-To: tarantool-patches@freelists.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: tarantool-patches List-subscribe: List-owner: List-post: List-archive: To: Kirill Yukhin Cc: Alexander Turenko , tarantool-patches@freelists.org It still supports only clang, so use CC=clang CXX=clang++ cmake -DENABLE_ASAN on systems where gcc is default compiler. Fixes #3070. --- https://github.com/tarantool/tarantool/issues/3070 https://github.com/tarantool/tarantool/tree/Totktonada/gh-3070-fix-asan src/fiber.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fiber.c b/src/fiber.c index 7658a2294..743ceff7a 100644 --- a/src/fiber.c +++ b/src/fiber.c @@ -54,7 +54,7 @@ static int (*fiber_invoke)(fiber_func f, va_list ap); __sanitizer_start_switch_fiber((will_switch_back) ? &var_name : NULL, \ (bottom), (size)) #define ASAN_FINISH_SWITCH_FIBER(var_name) \ - __sanitizer_finish_switch_fiber(var_name); + __sanitizer_finish_switch_fiber(var_name, 0, 0); #else #define ASAN_START_SWITCH_FIBER(var_name, will_switch_back, bottom, size) -- 2.20.0