rocksdb/test_util
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
..
mock_time_env.cc Add a SystemClock class to capture the time functions of an Env (#7858) 2021-01-25 22:09:11 -08:00
mock_time_env.h Add seqno to time mapping (#10338) 2022-07-14 21:49:34 -07:00
sync_point.cc SyncPoint::Process thrashes heap ... fix it (#9023) 2021-10-15 13:30:29 -07:00
sync_point.h SyncPoint::Process thrashes heap ... fix it (#9023) 2021-10-15 13:30:29 -07:00
sync_point_impl.cc SyncPoint::Process thrashes heap ... fix it (#9023) 2021-10-15 13:30:29 -07:00
sync_point_impl.h SyncPoint::Process thrashes heap ... fix it (#9023) 2021-10-15 13:30:29 -07:00
testharness.cc Remove deprecated ObjectLibrary::Register() (and Regex public API) (#9439) 2022-01-26 16:22:44 -08:00
testharness.h Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
testutil.cc Fix a bug of not setting enforce_single_del_contracts (#10027) 2022-05-20 16:48:50 -07:00
testutil.h Added GetFactoryCount/Names/Types to ObjectRegistry (#9358) 2022-05-16 09:44:43 -07:00
testutil_test.cc More Makefile Cleanup (#7097) 2020-07-09 14:35:17 -07:00
transaction_test_util.cc Remove own ToString() (#9955) 2022-05-06 13:03:58 -07:00
transaction_test_util.h Enforce the contract of SingleDelete (#9888) 2022-04-28 14:48:27 -07:00