rocksdb/build_tools
Peter Dillinger e466173d5c Print stack traces on frozen tests in CI (#10828)
Summary:
Instead of existing calls to ps from gnu_parallel, call a new wrapper that does ps, looks for unit test like processes, and uses pstack or gdb to print thread stack traces. Also, using `ps -wwf` instead of `ps -wf` ensures output is not cut off.

For security, CircleCI runs with security restrictions on ptrace (/proc/sys/kernel/yama/ptrace_scope = 1), and this change adds a work-around to `InstallStackTraceHandler()` (only used by testing tools) to allow any process from the same user to debug it. (I've also touched >100 files to ensure all the unit tests call this function.)

Pull Request resolved: https://github.com/facebook/rocksdb/pull/10828

Test Plan: local manual + temporary infinite loop in a unit test to observe in CircleCI

Reviewed By: hx235

Differential Revision: D40447634

Pulled By: pdillinger

fbshipit-source-id: 718a4c4a5b54fa0f9af2d01a446162b45e5e84e1
2022-10-18 00:35:35 -07:00
..
ubuntu20_image Add OpenSSL to docker image (#10741) 2022-09-26 17:36:57 -07:00
amalgamate.py Enable BLACK for internal_repo_rocksdb (#10710) 2022-09-20 17:47:52 -07:00
benchmark_log_tool.py Fix lint issues after enable BLACK (#10717) 2022-09-21 13:37:51 -07:00
build_detect_platform Build and link libfolly with RocksDB (#10103) 2022-09-11 21:40:11 -07:00
check-sources.sh Fix bad include (#10213) 2022-06-20 17:42:01 -07:00
dependencies_platform009.sh Build and link libfolly with RocksDB (#10103) 2022-09-11 21:40:11 -07:00
dependencies_platform010.sh Upgrade development environment. (#9843) 2022-04-15 16:05:38 -07:00
dockerbuild.sh Add copyright headers per FB open-source checkup tool. (#5199) 2019-04-18 10:55:01 -07:00
error_filter.py Enable BLACK for internal_repo_rocksdb (#10710) 2022-09-20 17:47:52 -07:00
fb_compile_mongo.sh Add copyright headers per FB open-source checkup tool. (#5199) 2019-04-18 10:55:01 -07:00
fbcode_config.sh Remove ROCKSDB_SUPPORT_THREAD_LOCAL define because it's a part of C++11 (#10015) 2022-05-18 15:25:19 -07:00
fbcode_config_platform009.sh Build and link libfolly with RocksDB (#10103) 2022-09-11 21:40:11 -07:00
fbcode_config_platform010.sh Remove ROCKSDB_SUPPORT_THREAD_LOCAL define because it's a part of C++11 (#10015) 2022-05-18 15:25:19 -07:00
format-diff.sh Remove Travis CI (#10407) 2022-07-22 20:16:45 -07:00
gnu_parallel Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
make_package.sh Use standard variables for installing/uninstalling with make (#7187) 2020-08-28 14:47:31 -07:00
ps_with_stack Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
regression_build_test.sh Remove deprecated API AdvancedColumnFamilyOptions::soft_rate_limit/hard_rate_limit (#9452) 2022-01-27 13:01:09 -08:00
run_ci_db_test.ps1 Fix remaining uses of "backupable" (#9792) 2022-04-05 09:52:33 -07:00
setup_centos7.sh Adding new build script for CentOS 7 (#6617) 2020-04-06 16:20:27 -07:00
update_dependencies.sh Upgrade development environment. (#9843) 2022-04-15 16:05:38 -07:00
version.sh Add copyright headers per FB open-source checkup tool. (#5199) 2019-04-18 10:55:01 -07:00