-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zeek ASAN build with builtin-spicy/stack-use-after-scope: __fiber_switch_trampoline #1310
Comments
The fiber code in Spicy seemed to trip ASAN up in the past so we use a different implementation if running under a ASAN: spicy/hilti/runtime/src/fiber.cc Lines 31 to 40 in 9dfc953
All this code should only be active if we run with ASAN, see its detection and us setting spicy/hilti/runtime/include/config.h.in Lines 14 to 23 in 9dfc953
Something seems to go wrong here. |
Ran into this again while trying to actually run the test cases added in zeek/zeek#2651. @rsmmr - any chance you were using ASAN for prepping that branch and this is something else on my end? Ah, seems the ASAN builds of that branch aren't happy, so probably not just me. |
Doing some tests on macOS and Linux, I think this is a GCC issue: I'm getting no errors with clang on either macOS nor Linux; but I do indeed see this with GCC on Linux. Not sure yet what's going on there, I thought the ASAN libraries were compatible between the two. Will explore some more. |
* origin/topic/robin/gh-1310-asan-fixes: Fix ASAN false positive with GCC. Skip clang-specific ASAN flags with other compilers.
Hey - running an ASAN build of latest Zeek with builtin spicy, I'm running into stack-user-after-scope splashes..
I've double checked the environment and it should be clean, so I'm a bit at loss what's going on here.
Distro:
Zeek compile:
The text was updated successfully, but these errors were encountered: