dash/qa/rpc-tests/test_framework
Alexander Block 48d92f116e Implement optional pretty printed stacktraces (#2420)
* Add libbacktrace to depends

This is currently only useful to extract symbols. It fails to gather
stacktraces when compiled with MinGW, so we can only use it to get symbol
information from a stack trace which we gathered outside of libbacktrace.

* Add -mbig-obj to CXXFLAGS for MinGW builds

* Implement stacktraces for C++ exceptions

This is a hack and should only be used for debugging. It works by wrapping
the C++ ABI __wrap___cxa_allocate_exception. The wrapper records a backtrace
and stores it in a global map. Later the stacktrace can be retrieved with
GetExceptionStacktraceStr.

This commit also adds handlers to pretty print uncaught exceptions and
signals.

* Use GetPrettyExceptionStr for all unhandled exceptions

* Use --enable-stacktraces in CI for linux32/linux64

* Register exception translators to pretty print exceptions in unit tests

* Catch and print python exceptions when stopping nodes

Otherwise the code at the bottom is never executed when nodes crash,
leading to no output of debug.log files on Travis.

* Remove now unneeded/unused TestCrash methods
2019-02-21 21:37:15 +03:00
..
__init__.py
authproxy.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
bignum.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
blockstore.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
blocktools.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
comptool.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
coverage.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
key.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
mininode.py Drop no longer used code and bump min protos (#2697) 2019-02-12 22:51:21 +03:00
netutil.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
script.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
siphash.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
socks5.py Backports 0.15 pr2 (#2597) 2019-01-07 12:55:35 +03:00
test_framework.py Implement optional pretty printed stacktraces (#2420) 2019-02-21 21:37:15 +03:00
util.py Merge #9929: tests: Delete unused function _rpchost_to_args 2019-02-04 19:58:09 -06:00