Azat Khuzhin
a4f9e1da5b
Fix getauxval() by using procfs with fallback to environ
...
getauxval() from glibc-compatibility did not work always correctly:
- It does not work after setenv(), and this breaks vsyscalls,
like sched_getcpu() [1] (and BaseDaemon.cpp always set TZ if timezone
is defined, which is true for CI [2]).
Also note, that fixing setenv() will not fix LSan,
since the culprit is getauxval()
[1]: https://bugzilla.redhat.com/show_bug.cgi?id=1163404
[2]: ClickHouse#32928 (comment)
- Another think that is definitely broken is LSan (Leak Sanitizer), it
relies on worked getauxval() but it does not work if __environ is not
initialized yet (there is even a commit about this).
And because of, at least, one leak had been introduced [3]:
[3]: ClickHouse#33840
Fix this by using /proc/self/auxv with fallback to environ solution to
make it compatible with environment that does not allow reading from
auxv (or no procfs).
v2: add fallback to environ solution
v3: fix return value for __auxv_init_procfs()
(cherry picked from commit f187c3499a
)
v4: more verbose message on errors, CI founds [1]:
AUXV already has value (529267711)
[1]: https://s3.amazonaws.com/clickhouse-test-reports/39103/2325f7e8442d1672ce5fb43b11039b6a8937e298/stress_test__memory__actions_.html
v5: break at AT_NULL
v6: ignore AT_IGNORE
v7: suppress TSan and remove superior check to avoid abort() in case of race
v8: proper suppressions (not inner function but itself)
Refs: #33957
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-07-25 01:22:04 +03:00
Azat Khuzhin
93f876b58a
Add a test for LSan
...
(cherry picked from commit 51e7c41883
)
v2: fix type check
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-07-25 01:21:40 +03:00
Alexey Milovidov
0492f23d07
Add the docs
2022-07-24 23:11:54 +02:00
Alexey Milovidov
668f632d78
Merge pull request #39523 from loskutov/patch-1
...
LZ4_decompress_faster.cpp: remove endianness-dependent code
2022-07-25 00:06:58 +03:00
Alexey Milovidov
df84fa988a
Merge pull request #39532 from tylerhannan/add_equinix_n3.xlarge
...
add Equinix metal N3 Xlarge
2022-07-25 00:06:05 +03:00
Denny Crane
a862e08fc4
Update star-schema.md
2022-07-24 17:10:36 -03:00
Denny Crane
b6121a1bf1
Update star-schema.md
2022-07-24 17:07:47 -03:00
Robert Schulze
68f0dcc206
Remove mention of C++03 exception specifiers
...
... such exception specifiers trigger a compiler warning these days
anyways (i.e. are treated as error)
2022-07-24 18:41:43 +00:00
Robert Schulze
f3a60991f4
Smallish compiler warnings update
2022-07-24 18:41:43 +00:00
Robert Schulze
a9fb677084
Bump Clang version to current minimum
2022-07-24 18:41:43 +00:00
Robert Schulze
2ded3da887
Bump Clang version to current minimum
2022-07-24 18:41:43 +00:00
Robert Schulze
cec8458429
Remove Mac instructions
...
... they are given at length on the dedicated setup page for Mac
2022-07-24 18:41:43 +00:00
Robert Schulze
b09121df11
Remove comment to check for CMake version
...
a) the build script aborts anyways if CMake is too old
b) our minimally required version is >3 years old, so the chance of an
abort due to outdated CMake is fairly low
c) removing the hint to check the version removes the need to constantly
update the version in the docs
2022-07-24 18:41:43 +00:00
Robert Schulze
a2d1738150
Add a sentence on writing perf tests for SQL functions
2022-07-24 18:41:07 +00:00
Robert Schulze
4333750985
Less usage of StringRef
...
... replaced by std::string_view, see #39262
2022-07-24 18:33:52 +00:00
Alexey Milovidov
dfbfc12a10
More tests
2022-07-24 20:07:14 +02:00
Alexey Milovidov
c604df7b53
Add smoke test for timezone
2022-07-24 20:05:31 +02:00
Alexey Milovidov
cff712970e
Add function nowInBlock
2022-07-24 19:58:48 +02:00
Tyler Hannan
93348b920e
Merge branch 'master' into add_equinix_n3.xlarge
2022-07-24 19:21:05 +02:00
Tyler Hannan
82f2557386
add Equinix metal N3 Xlarge
2022-07-24 19:17:02 +02:00
Robert Schulze
73c04b64e3
Merge pull request #39493 from nicelulu/fix_build_osx
...
Fix build on mac osx
2022-07-24 18:11:34 +02:00
Robert Schulze
c788e05c77
Merge pull request #39292 from zvonand/zvonand-b58-datatype
...
Simplify Base58 encoding/decoding
2022-07-24 18:09:40 +02:00
Alexey Milovidov
0209012e5e
Merge pull request #39517 from pkit/pkit/fix_examples
...
fix `-DENABLE_EXAMPLES=1` in master
2022-07-24 17:41:23 +03:00
Alexey Milovidov
5867762258
Merge pull request #39454 from ClickHouse/status-names
...
Commit status names: remove "actions"
2022-07-24 17:39:16 +03:00
Ignat Loskutov
c2954b23cb
LZ4_decompress_faster.cpp: remove endianness-dependent code
...
Little-endian is little-endian no matter what the native endianness is.
2022-07-24 20:55:17 +08:00
Andrey Zvonov
032fcab70e
set char to be explicitely signed
2022-07-24 14:23:22 +02:00
Kseniia Sumarokova
04944ff6f5
Merge pull request #39509 from monadbobo/remove_duplicate_code
...
Removed some duplicate code.
2022-07-24 14:24:40 +03:00
Alexey Milovidov
c489ad7d71
Merge pull request #25333 from MaxWk/exact-rows-before-limit
...
add setting exact_rows_before_limit
2022-07-24 02:30:31 +03:00
Mikhail f. Shiryaev
4302f583d8
Merge pull request #39467 from ClickHouse/ci-enforce-checks-2
...
Add Build Check and Special Build Check to SimpleCheck
2022-07-24 00:24:55 +02:00
Alexey Milovidov
b6b217d2a3
Merge branch 'master' into status-names
2022-07-24 00:34:00 +03:00
Alexey Milovidov
972f386343
Merge pull request #39519 from ClickHouse/alexey-milovidov-patch-4
...
Update CHANGELOG.md
2022-07-24 00:29:46 +03:00
Alexey Milovidov
2d12180f9e
Merge pull request #39195 from HarryLeeIBM/hlee-s390x-LZ4
...
Fix LZ4 decompression issue for s390x
2022-07-23 22:31:42 +03:00
Alexey Milovidov
02a0b60e24
Update CHANGELOG.md
2022-07-23 22:20:37 +03:00
Kseniia Sumarokova
f146183400
Merge pull request #39491 from ClickHouse/remove_unused_constructor
...
Remove unused constructor
2022-07-23 21:16:39 +02:00
mergify[bot]
c01ff2d38a
Merge branch 'master' into improve_replicated_merge_logging
2022-07-23 19:10:10 +00:00
Constantine Peresypkin
d645d03e89
fix -DENABLE_EXAMPLES=1
in master
2022-07-23 19:00:52 +02:00
Kseniia Sumarokova
77ddb8eda0
Merge pull request #39506 from CurtizJ/fix-direct-io
...
Fix reading from async read buffer with direct io
2022-07-23 06:08:48 +02:00
Yakov Olkhovskiy
c559cac085
add to SimpleCheck
2022-07-22 18:01:57 -04:00
Simon Liu
2305f282dc
Removed some duplicate code.
2022-07-23 02:27:17 +08:00
avogar
8283cc9e2c
Fix possible heap-buffer-overflow in Avro
2022-07-22 17:59:43 +00:00
Anton Popov
c1a5514e46
fix reading from async read buffer with direct io
2022-07-22 16:58:30 +00:00
Kruglov Pavel
d23da91fe7
Add tag
2022-07-22 18:41:31 +02:00
Dan Roscigno
30a32371eb
Remove experimental status from projections
2022-07-22 11:50:59 -04:00
Dan Roscigno
e016f73b31
update Grafana plugin
2022-07-22 11:42:14 -04:00
Mikhail f. Shiryaev
3e0db34ed9
Merge pull request #39390 from ClickHouse/paint-it-black
...
Automatic fixes for black formatting for domestic repo PRs
2022-07-22 17:19:00 +02:00
avogar
c6d0ca2940
Fix data race in Avro format
2022-07-22 14:23:05 +00:00
Robert Schulze
05d6408f87
Merge pull request #39494 from ClickHouse/iaa
...
Add Intel®-IAA/QPL-based DEFLATE_QPL Codec
2022-07-22 13:40:04 +02:00
Robert Schulze
654047dfbf
Fix compiler warning
2022-07-22 11:28:05 +00:00
Alexander Tokmakov
0cbbe7ac76
Update SSDCacheDictionaryStorage.h
2022-07-22 11:17:58 +00:00
Alexander Tokmakov
9d7a72c8bc
remove some dead and commented code
2022-07-22 11:17:58 +00:00