Skip to content
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

ASan/TSan does not work well with JeMalloc #1254

Closed
1 of 2 tasks
xiaobiaozhao opened this issue Feb 10, 2023 · 4 comments
Closed
1 of 2 tasks

ASan/TSan does not work well with JeMalloc #1254

xiaobiaozhao opened this issue Feb 10, 2023 · 4 comments
Labels
bug type bug

Comments

@xiaobiaozhao
Copy link
Contributor

Search before asking

  • I had searched in the issues and found no similar issues.

Version

Mac & Ubuntu all versions

Minimal reproduce step

./x.py build --unittest --compiler gcc -DDISABLE_JEMALLOC=ON -DENABLE_TSAN=ON
./x.py build --unittest --compiler gcc -DDISABLE_JEMALLOC=ON -DENABLE_ASAN=ON

What did you expect to see?

build succeed

What did you see instead?

./x.py build --unittest --compiler gcc -DDISABLE_JEMALLOC=ON -DENABLE_TSAN=ON
$ /usr/bin/cmake /root/work/incubator-kvrocks -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DENABLE_TSAN=ON
-- The CXX compiler identification is GNU 11.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:67 (message):
### ASan/TSan does not work well with JeMalloc

-- Configuring incomplete, errors occurred!
See also "/root/work/incubator-kvrocks/build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/root/work/incubator-kvrocks/./x.py", line 397, in
args.func(**arg_dict)
File "/root/work/incubator-kvrocks/./x.py", line 122, in build
run(cmake, str(basedir), *cmake_options, verbose=True, cwd=dir)
File "/root/work/incubator-kvrocks/./x.py", line 68, in run
raise RuntimeError(err)
RuntimeError:
failed to run: ('/usr/bin/cmake', '/root/work/incubator-kvrocks', '-DCMAKE_BUILD_TYPE=RelWithDebInfo', '-DCMAKE_C_COMPILER=gcc', '-DCMAKE_CXX_COMPILER=g++', '-DENABLE_TSAN=ON')
exit with code: 1

Anything Else?

I also test ./x.py build --unittest --compiler gcc -DDISABLE_JEMALLOC=ON -DENABLE_TSAN=ON -DENABLE_OPENSSL=ON build is OK.

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@xiaobiaozhao xiaobiaozhao added the bug type bug label Feb 10, 2023
@xiaobiaozhao
Copy link
Contributor Author

Will this be a feature? @PragmaTwice

@git-hulk git-hulk changed the title build failed ASan/TSan does not work well with JeMalloc Feb 10, 2023
@git-hulk
Copy link
Member

git-hulk commented Feb 10, 2023

It's expected behavior, you can have a look at the CMakeList.txt.

@xiaobiaozhao
Copy link
Contributor Author

OK, Thx

@xiaobiaozhao
Copy link
Contributor Author

reopen the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug type bug
Projects
None yet
Development

No branches or pull requests

3 participants