mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Updated instructions
This commit is contained in:
parent
c9b81fd917
commit
c1a8659000
@ -1,25 +1,27 @@
|
||||
# How to use Address Sanitizer
|
||||
|
||||
# Note: We use Address Sanitizer to run functional tests for every commit automatically.
|
||||
Note: We use Address Sanitizer to run functional tests for every commit automatically.
|
||||
|
||||
```
|
||||
mkdir build && cd build
|
||||
```
|
||||
|
||||
# Note:
|
||||
# ENABLE_TCMALLOC=0 is optional.
|
||||
# CC=clang CXX=clang++ is strongly recommended.
|
||||
Note:
|
||||
ENABLE_TCMALLOC=0 is optional.
|
||||
CC=clang CXX=clang++ is strongly recommended.
|
||||
|
||||
```
|
||||
CC=clang CXX=clang++ cmake -D CMAKE_BUILD_TYPE=ASan -D ENABLE_TCMALLOC=0 ..
|
||||
make -j24
|
||||
```
|
||||
|
||||
# Copy binary to your server
|
||||
## Copy binary to your server
|
||||
|
||||
```
|
||||
scp ./dbms/src/Server/clickhouse yourserver:~/clickhouse-asan
|
||||
```
|
||||
|
||||
# Start ClickHouse and run tests
|
||||
## Start ClickHouse and run tests
|
||||
|
||||
```
|
||||
sudo -u clickhouse ./clickhouse-asan server --config /etc/clickhouse-server/config.xml
|
||||
@ -32,20 +34,20 @@ sudo -u clickhouse ./clickhouse-asan server --config /etc/clickhouse-server/conf
|
||||
mkdir build && cd build
|
||||
```
|
||||
|
||||
# Note: All parameters are mandatory.
|
||||
## Note: All parameters are mandatory.
|
||||
|
||||
```
|
||||
CC=clang CXX=clang++ cmake -D CMAKE_BUILD_TYPE=TSan -D ENABLE_TCMALLOC=0 ..
|
||||
make -j24
|
||||
```
|
||||
|
||||
# Copy binary to your server
|
||||
## Copy binary to your server
|
||||
|
||||
```
|
||||
scp ./dbms/src/Server/clickhouse yourserver:~/clickhouse-tsan
|
||||
```
|
||||
|
||||
# Start ClickHouse and run tests
|
||||
## Start ClickHouse and run tests
|
||||
|
||||
```
|
||||
sudo -u clickhouse TSAN_OPTIONS='halt_on_error=1 suppressions=tsan_suppressions' ./clickhouse-tsan server --config /etc/clickhouse-server/config.xml
|
Loading…
Reference in New Issue
Block a user