-
Notifications
You must be signed in to change notification settings - Fork 2
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
cmake: fix searching Clang RT #9
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
8 times, most recently
from
August 20, 2023 16:33
ac6a16c
to
84eecd9
Compare
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
5 times, most recently
from
August 20, 2023 19:41
ad3dd70
to
fdb538f
Compare
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
2 times, most recently
from
December 29, 2023 14:48
e788079
to
ec04ad7
Compare
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
from
January 17, 2024 12:25
3aaa27c
to
233ef6c
Compare
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
3 times, most recently
from
February 9, 2024 11:26
77cd96f
to
e33bc5f
Compare
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
2 times, most recently
from
July 9, 2024 16:05
34efe29
to
62d8fab
Compare
luzer module requires linking with a library `clang_rt.fuzzer_no_main-x86_64` that is a part of a Clang runtime. Without linking with it Lua runtime will report an error right on loading `luzer.so`: lua5.1: error loading module 'luzer' from file './luzer.so': ./luzer.so: undefined symbol: __sanitizer_cov_8bit_counters_init The patch adds a module that composes a path to Clang runtime libraries and adds this path to a library search paths. I suppose in some cases introduced CMake function may fail. One can pass a path to a directory with Clang RT manually using environment variable CLANG_RT_LIB_DIR. In a usual case symbol __sanitizer_cov_8bit_counters_init is added by compiler on instrumentation when compiler option -fsanitize-coverage=inline-8bit-counters is specified [1]. 1. https://clang.llvm.org/docs/SanitizerCoverage.html
Lua 5.1 has no support of `luaL_traceback` function. Previously, it was implemented using Lua function `debug.traceback` and this leads to recursive calls and finished with stack overflow. The patch backports implementation of `luaL_traceback` from a late Lua versions.
We cannot use `luaL_error` if Lua state is not initialized.
Enable Lua debug hook right before calling `TestOneInput` function and disable it right after returning from `TestOneInput`.
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
2 times, most recently
from
July 10, 2024 14:01
5b7db14
to
af0152a
Compare
Related to #18
ligurio
force-pushed
the
ligurio/fix-clang_rt
branch
2 times, most recently
from
July 10, 2024 15:06
03612dd
to
1346334
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.