forked from LuaJIT/LuaJIT
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asan: instrumented LuaJIT memory allocator
This patch adds instrumentation of the internal LuaJIT memory allocator. It now enables the detection of memory-related errors when using FFI and within LuaJIT itself. This enhancement improves reliability and debugging capabilities. This patch introduces two scenarios for using ASAN with LuaJIT: - LuaJIT using sysmalloc: `-DLUAJIT_USE_ASAN=ON` - LuaJIT using internal memory allocator: `-DLUAJIT_USE_ASAN_HARDENING=ON` If you want to skip tests when LuaJIT uses the internal memory allocator, you can check the `LJ_ASAN_HARDENING` environment variable. The test `test/tarantool-tests/lj-1034-tabov-error-frame.test.lua` has been disabled under ASAN & LuaJIT's internal allocator due to consistently failing with a timeout. Part of #10231
- Loading branch information
Showing
13 changed files
with
669 additions
and
18 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.