-
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.
[#17875] Do not collect stack traces of threads doing memory allocation
Summary: When trying to capture a stack trace with a signal handler, if a memory allocation/deallocation is happening in the thread receiving the signal, the process could crash. Google TCMalloc issue: google/tcmalloc#189. In this diff, we are using the IsCurThreadInAllocDealloc malloc extension API we added in yugabyte/tcmalloc@677ba2d to skip capturing the stack trace in case the signal interrupted a thread that is currently allocating or deallocating memory. In such cases, we produce an empty stack trace which is later omitted from the overall threads dump. #17889 is a follow-up issue for retrying obtaining stack traces in such cases. Another change contained in the TCMalloc version that we are upgrading to is yugabyte/tcmalloc@d1b0e69 (adding an option to not seed lifetime profiler with live allocations). We are now setting seed_with_live_allocs to false when capturing an allocation profile. Test Plan: Jenkins Reviewers: asrivastava Reviewed By: asrivastava Subscribers: ybase, bogdan Differential Revision: https://phorge.dev.yugabyte.com/D26349
- Loading branch information
Showing
6 changed files
with
165 additions
and
47 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 |
---|---|---|
@@ -1,149 +1,149 @@ | ||
sha_for_local_checkout: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha_for_local_checkout: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
archives: | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215502-04b5c61ec3-almalinux8-x86_64-clang15 | ||
tag: v20230621185546-6777477baa-almalinux8-x86_64-clang15 | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: true | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215522-04b5c61ec3-almalinux8-x86_64-clang15-linuxbrew | ||
tag: v20230621185609-6777477baa-almalinux8-x86_64-clang15-linuxbrew | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: true | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: full | ||
tag: v20230519215509-04b5c61ec3-almalinux8-x86_64-clang15-linuxbrew-full-lto | ||
tag: v20230621185521-6777477baa-almalinux8-x86_64-clang15-linuxbrew-full-lto | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang16 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215509-04b5c61ec3-almalinux8-x86_64-clang16 | ||
tag: v20230621185529-6777477baa-almalinux8-x86_64-clang16 | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang16 | ||
is_linuxbrew: true | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215503-04b5c61ec3-almalinux8-x86_64-clang16-linuxbrew | ||
tag: v20230621185625-6777477baa-almalinux8-x86_64-clang16-linuxbrew | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: clang16 | ||
is_linuxbrew: true | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: full | ||
tag: v20230519215507-04b5c61ec3-almalinux8-x86_64-clang16-linuxbrew-full-lto | ||
tag: v20230621185605-6777477baa-almalinux8-x86_64-clang16-linuxbrew-full-lto | ||
- os_type: almalinux8 | ||
architecture: x86_64 | ||
compiler_type: gcc11 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215506-04b5c61ec3-almalinux8-x86_64-gcc11 | ||
tag: v20230621185524-6777477baa-almalinux8-x86_64-gcc11 | ||
- os_type: centos7 | ||
architecture: aarch64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215639-04b5c61ec3-centos7-aarch64-clang15 | ||
tag: v20230621185659-6777477baa-centos7-aarch64-clang15 | ||
- os_type: centos7 | ||
architecture: aarch64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: full | ||
tag: v20230519215621-04b5c61ec3-centos7-aarch64-clang15-full-lto | ||
tag: v20230621185620-6777477baa-centos7-aarch64-clang15-full-lto | ||
- os_type: centos7 | ||
architecture: aarch64 | ||
compiler_type: clang16 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215641-04b5c61ec3-centos7-aarch64-clang16 | ||
tag: v20230621185700-6777477baa-centos7-aarch64-clang16 | ||
- os_type: centos7 | ||
architecture: aarch64 | ||
compiler_type: clang16 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: full | ||
tag: v20230519215609-04b5c61ec3-centos7-aarch64-clang16-full-lto | ||
tag: v20230621185616-6777477baa-centos7-aarch64-clang16-full-lto | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215552-04b5c61ec3-centos7-x86_64-clang15 | ||
tag: v20230621185651-6777477baa-centos7-x86_64-clang15 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: full | ||
tag: v20230519215632-04b5c61ec3-centos7-x86_64-clang15-full-lto | ||
tag: v20230621185543-6777477baa-centos7-x86_64-clang15-full-lto | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang16 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215625-04b5c61ec3-centos7-x86_64-clang16 | ||
tag: v20230621185537-6777477baa-centos7-x86_64-clang16 | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: clang16 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: full | ||
tag: v20230519215522-04b5c61ec3-centos7-x86_64-clang16-full-lto | ||
tag: v20230622043321-6777477baa-centos7-x86_64-clang16-full-lto | ||
- os_type: centos7 | ||
architecture: x86_64 | ||
compiler_type: gcc11 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215529-04b5c61ec3-centos7-x86_64-gcc11 | ||
tag: v20230621185536-6777477baa-centos7-x86_64-gcc11 | ||
- os_type: macos | ||
architecture: arm64 | ||
compiler_type: clang | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230523091634-04b5c61ec3-macos-arm64 | ||
tag: v20230621193812-6777477baa-macos-arm64 | ||
- os_type: macos | ||
architecture: x86_64 | ||
compiler_type: clang | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215557-04b5c61ec3-macos-x86_64 | ||
tag: v20230621185613-6777477baa-macos-x86_64 | ||
- os_type: ubuntu20.04 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215505-04b5c61ec3-ubuntu2004-x86_64-clang15 | ||
tag: v20230621185516-6777477baa-ubuntu2004-x86_64-clang15 | ||
- os_type: ubuntu22.04 | ||
architecture: x86_64 | ||
compiler_type: clang15 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215507-04b5c61ec3-ubuntu2204-x86_64-clang15 | ||
tag: v20230621185524-6777477baa-ubuntu2204-x86_64-clang15 | ||
- os_type: ubuntu22.04 | ||
architecture: x86_64 | ||
compiler_type: gcc11 | ||
is_linuxbrew: false | ||
sha: 04b5c61ec3a73ffabdd2faa1f44bebda25193963 | ||
sha: 6777477baaa5727cb3eb0d1b8256c1bb9ab4f33e | ||
lto_type: | ||
tag: v20230519215510-04b5c61ec3-ubuntu2204-x86_64-gcc11 | ||
tag: v20230621185622-6777477baa-ubuntu2204-x86_64-gcc11 |
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