mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
ed5a3772a2
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
24 lines
952 B
Bash
Executable File
24 lines
952 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Tags: long
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
# Avoid failures due to "Number of CPUs is not deterministic" error from jemalloc.
|
|
export MALLOC_CONF=abort_conf:false,abort:false
|
|
|
|
# Regression for UAF in ThreadPool.
|
|
# (Triggered under TSAN)
|
|
for _ in {1..10}; do
|
|
${CLICKHOUSE_LOCAL} -q 'select * from numbers_mt(100000000) settings max_threads=100 FORMAT Null'
|
|
# Binding to specific CPU is not required, but this makes the test more reliable.
|
|
taskset --cpu-list 0 ${CLICKHOUSE_LOCAL} -q 'select * from numbers_mt(100000000) settings max_threads=100 FORMAT Null' 2>&1 | {
|
|
# build with santiziers does not have jemalloc
|
|
# and for jemalloc we have separate test
|
|
# 01502_jemalloc_percpu_arena
|
|
grep -v '<jemalloc>: Number of CPUs detected is not deterministic. Per-CPU arena disabled.'
|
|
}
|
|
done
|
|
exit 0
|