Tarantool development patches archive
 help / color / mirror / Atom feed
* [tarantool-patches] [PATCH] Fix build with ENABLE_ASAN=ON
@ 2018-12-20 12:49 Alexander Turenko
  2018-12-20 13:19 ` Vladimir Davydov
  2018-12-21  7:37 ` [tarantool-patches] " Kirill Yukhin
  0 siblings, 2 replies; 4+ messages in thread
From: Alexander Turenko @ 2018-12-20 12:49 UTC (permalink / raw)
  To: Kirill Yukhin; +Cc: Alexander Turenko, tarantool-patches

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-12-21  7:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-20 12:49 [tarantool-patches] [PATCH] Fix build with ENABLE_ASAN=ON Alexander Turenko
2018-12-20 13:19 ` Vladimir Davydov
2018-12-20 18:24   ` Alexander Turenko
2018-12-21  7:37 ` [tarantool-patches] " Kirill Yukhin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox