rocksdb/table
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
..
adaptive
block_based Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
cuckoo Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
plain Fix platform 10 build with folly (#10708) 2022-09-21 14:43:44 -07:00
block_fetcher.cc Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
block_fetcher.h Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
block_fetcher_test.cc
cleanable_test.cc
format.cc Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
format.h Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
get_context.cc User-defined timestamp support for DeleteRange() (#10661) 2022-09-30 16:13:03 -07:00
get_context.h User-defined timestamp support for DeleteRange() (#10661) 2022-09-30 16:13:03 -07:00
internal_iterator.h Skip swaths of range tombstone covered keys in merging iterator (2022 edition) (#10449) 2022-09-02 09:51:19 -07:00
iter_heap.h
iterator.cc
iterator_wrapper.h Skip swaths of range tombstone covered keys in merging iterator (2022 edition) (#10449) 2022-09-02 09:51:19 -07:00
merger_test.cc Print stack traces on frozen tests in CI (#10828) 2022-10-18 00:35:35 -07:00
merging_iterator.cc User-defined timestamp support for DeleteRange() (#10661) 2022-09-30 16:13:03 -07:00
merging_iterator.h Fix memtable-only iterator regression (#10705) 2022-09-21 09:49:31 -07:00
meta_blocks.cc Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
meta_blocks.h Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
mock_table.cc Align compaction output file boundaries to the next level ones (#10655) 2022-09-29 19:43:55 -07:00
mock_table.h Align compaction output file boundaries to the next level ones (#10655) 2022-09-29 19:43:55 -07:00
multiget_context.h MultiGet async IO across multiple levels (#10535) 2022-08-19 16:52:52 -07:00
persistent_cache_helper.cc Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
persistent_cache_helper.h Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
persistent_cache_options.h
scoped_arena_iterator.h
sst_file_dumper.cc
sst_file_dumper.h
sst_file_reader.cc User-defined timestamp support for DeleteRange() (#10661) 2022-09-30 16:13:03 -07:00
sst_file_reader_test.cc User-defined timestamp support for DeleteRange() (#10661) 2022-09-30 16:13:03 -07:00
sst_file_writer.cc User-defined timestamp support for DeleteRange() (#10661) 2022-09-30 16:13:03 -07:00
sst_file_writer_collectors.h Refactor to avoid confusing "raw block" (#10408) 2022-09-22 11:25:32 -07:00
table_builder.h Always verify SST unique IDs on SST file open (#10532) 2022-09-07 22:52:42 -07:00
table_factory.cc
table_properties.cc
table_properties_internal.h
table_reader.h
table_reader_bench.cc
table_reader_caller.h
table_test.cc Always verify SST unique IDs on SST file open (#10532) 2022-09-07 22:52:42 -07:00
two_level_iterator.cc
two_level_iterator.h
unique_id.cc
unique_id_impl.h