mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
e466173d5c
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 |
||
---|---|---|
.. | ||
ubuntu20_image | ||
amalgamate.py | ||
benchmark_log_tool.py | ||
build_detect_platform | ||
check-sources.sh | ||
dependencies_platform009.sh | ||
dependencies_platform010.sh | ||
dockerbuild.sh | ||
error_filter.py | ||
fb_compile_mongo.sh | ||
fbcode_config.sh | ||
fbcode_config_platform009.sh | ||
fbcode_config_platform010.sh | ||
format-diff.sh | ||
gnu_parallel | ||
make_package.sh | ||
ps_with_stack | ||
regression_build_test.sh | ||
run_ci_db_test.ps1 | ||
setup_centos7.sh | ||
update_dependencies.sh | ||
version.sh |