-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…Clang 12 ASAN build on AlmaLinux 8 and fix relevant bugs Summary: Updating third-party dependencies from 44ba3719652858e1f7816df87b25101e09527c88 to 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd (updating the LLVM toolchain with a bug fix, and also picking up the program_options Boost library addition by @mikhpolitov, commit yugabyte/yugabyte-db-thirdparty@2d282c3). yugabyte-db-thirdparty diff link: https://github.com/yugabyte/yugabyte-db-thirdparty/compare/44ba3719652858e1f7816df87b25101e09527c88..2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd Enabling the Clang 12 ASAN build on AlmaLinux 8 and fixing these bugs from that build: - #7092 - pick up an updated version of LLVM where libunwind has been patched to work around crashing with an unknown x86_64 register error. - #10046 - suppress harmless undefined behavior in gflags.cc. - #10222 - increase the timeout for waiting for tablet server registration in mini cluster. - #10224 - when looping to wait for leader/follower of a tablet in TestUpdateLagMetrics, reset tablet server pointers to nullptr at every iteration. - #10230, #10251 - use posix_spawn on Linux to create subprocesses to avoid getting stuck in the child process when allocating memory when setting environment variables because some memory allocation lock is already held by the parent process. On macOS, we still use fork+exec because posix_spawnp throws errors related to closing file descriptors. Making sure all files in our code are opened with FD_CLOEXEC is out of scope of this revision, and will be addressed by #10321. - #10295 - fix undefined behavior (adding to a null pointer) in a Postgres sorting function. - Fix HostPort& field type in ysql_upgrade.h (make it HostPort). Otherwise there is an ASAN issue accessing a deallocated stack value. (No separate GitHub issue for this bug.) Also consolidating Status generation from a C standard library error number in errno.h and errno.c, and adding a few utility macros for convenient invocation of C functions that either return an errno as the return value, or return zero vs. non zero depending on whether there is an error, and set errno as a side effect. As part of this diff, we are removing Clang 7 ASAN build on CentOS 7 from Jenkins (we don't need two different ASAN builds). Test Plan: Jenkins Reviewers: bogdan, steve.varnau, sergei Reviewed By: sergei Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D13301
- Loading branch information
Showing
31 changed files
with
806 additions
and
310 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,6 +183,8 @@ readonly -a VALID_COMPILER_TYPES=( | |
gcc8 | ||
gcc9 | ||
gcc10 | ||
gcc11 | ||
gcc12 | ||
clang | ||
clang7 | ||
clang8 | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,97 +1,92 @@ | ||
sha_for_local_checkout: 44ba3719652858e1f7816df87b25101e09527c88 | ||
sha_for_local_checkout: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
archives: | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang11 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160342-44ba371965-almalinux8-x86_64-clang11 | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang12 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160348-44ba371965-almalinux8-x86_64-clang12 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027161918-2d282c38cf-almalinux8-x86_64-clang12 | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: gcc8 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160322-44ba371965-almalinux8-x86_64-gcc8 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082115-2d282c38cf-almalinux8-x86_64-gcc8 | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: gcc9 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160339-44ba371965-almalinux8-x86_64-gcc9 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082136-2d282c38cf-almalinux8-x86_64-gcc9 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang11 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160331-44ba371965-centos7-x86_64-clang11 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082159-2d282c38cf-centos7-x86_64-clang11 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang12 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160400-44ba371965-centos7-x86_64-clang12 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082141-2d282c38cf-centos7-x86_64-clang12 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang7 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160346-44ba371965-centos7-x86_64-clang7 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027161952-2d282c38cf-centos7-x86_64-clang7 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: gcc5 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160412-44ba371965-centos7-x86_64-linuxbrew-gcc5 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027161950-2d282c38cf-centos7-x86_64-linuxbrew-gcc5 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: gcc8 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160355-44ba371965-centos7-x86_64-gcc8 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082135-2d282c38cf-centos7-x86_64-gcc8 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: gcc9 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160541-44ba371965-centos7-x86_64-gcc9 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082130-2d282c38cf-centos7-x86_64-gcc9 | ||
- os_type: centos8 | ||
architecture: x86_64 | ||
compiler_type: gcc8 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160428-44ba371965-centos8-x86_64-gcc8 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027161938-2d282c38cf-centos8-x86_64-gcc8 | ||
- os_type: centos8 | ||
architecture: x86_64 | ||
compiler_type: gcc9 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160344-44ba371965-centos8-x86_64-gcc9 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027161916-2d282c38cf-centos8-x86_64-gcc9 | ||
- os_type: macos | ||
architecture: x86_64 | ||
compiler_type: clang | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160324-44ba371965-macos-x86_64 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027161854-2d282c38cf-macos-x86_64 | ||
- os_type: ubuntu18.04 | ||
architecture: x86_64 | ||
compiler_type: clang10 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160408-44ba371965-ubuntu1804-x86_64-clang10 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027162018-2d282c38cf-ubuntu1804-x86_64-clang10 | ||
- os_type: ubuntu18.04 | ||
architecture: x86_64 | ||
compiler_type: clang11 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160408-44ba371965-ubuntu1804-x86_64-clang11 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027162001-2d282c38cf-ubuntu1804-x86_64-clang11 | ||
- os_type: ubuntu18.04 | ||
architecture: x86_64 | ||
compiler_type: gcc7 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160407-44ba371965-ubuntu1804-x86_64-gcc7 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027162012-2d282c38cf-ubuntu1804-x86_64-gcc7 | ||
- os_type: ubuntu18.04 | ||
architecture: x86_64 | ||
compiler_type: gcc8 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160407-44ba371965-ubuntu1804-x86_64-gcc8 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027162015-2d282c38cf-ubuntu1804-x86_64-gcc8 | ||
- os_type: ubuntu20.04 | ||
architecture: x86_64 | ||
compiler_type: clang11 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160341-44ba371965-ubuntu2004-x86_64-clang11 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211019082206-2d282c38cf-ubuntu2004-x86_64-clang11 | ||
- os_type: ubuntu20.04 | ||
architecture: x86_64 | ||
compiler_type: gcc9 | ||
sha: 44ba3719652858e1f7816df87b25101e09527c88 | ||
tag: v20210916160342-44ba371965-ubuntu2004-x86_64-gcc9 | ||
sha: 2d282c38cfcbc10af7bdc1c86bf1e8af88f36efd | ||
tag: v20211027162001-2d282c38cf-ubuntu2004-x86_64-gcc9 |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,5 @@ semantic-version | |
six | ||
sys_detection | ||
wheel | ||
yugabyte_pycommon | ||
yugabyte_pycommon | ||
compiler-identification |
Oops, something went wrong.