1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/test
Fangrui Song d531bf5b5c PrintStackTrace: don't symbolize if LLVM_DISABLE_SYMBOLIZATION is set
See http://lists.llvm.org/pipermail/llvm-dev/2017-June/113975.html for a related previous discussion.
Many tools install signal handlers to print stack traces and optionally
symbolize the addresses with an external program 'llvm-symbolizer' (when
searching for 'llvm-symbolizer', the directory containg the executable
is preferred over PATH).

'llvm-symbolizer' can be slow if the executable is large and/or if
llvm-symbolizer' itself is under-optimized. For example, my 'llvm-lto2' from a
-DCMAKE_BUILD_TYPE=Debug build is 443MiB. The 'llvm-symbolizer' from the same
build takes ~2s to symbolize it. (An optimized 'llvm-symbolizer' takes 0.34s).
A crashed clang may take more than 5s to symbolize a stack trace.

If a test file has several `not --crash` RUN lines. It can be very slow in a Debug build.
This patch makes `not --crash` set an environment variable to suppress symbolization.
This is similar to D33804 which uses a command line option.
I pick 'symbolization' instead of 'symbolication' because the former is
used much more commonly and its stem matches 'llvm-symbolizer'.

Also set LLVM_DISABLE_CRASH_REPORT=1, which is currently only applicable on
`__APPLE__`.

Reviewed By: dblaikie, aganea

Differential Revision: https://reviews.llvm.org/D86170
2020-08-21 11:27:13 -07:00
..
Analysis [ARM][CostModel] Select instruction costs. 2020-08-21 08:49:56 +01:00
Assembler
Bindings
Bitcode [NFC][StackSafety] Move out sort from the loop 2020-08-17 03:30:14 -07:00
BugPoint
CodeGen [PowerPC] Support constrained scalar sitofp/uitofp 2020-08-22 02:10:29 +08:00
DebugInfo Re-apply "[DebugInfo] Emit DW_OP_implicit_value for Floating point constants" 2020-08-20 01:39:42 +05:30
Demangle
Examples
ExecutionEngine [JITLink][MachO] Use correct symbol scope when N_PEXT is set and N_EXT unset. 2020-08-15 15:53:33 -07:00
Feature [NewPM][optnone] Mark various passes as required 2020-08-14 15:51:59 -07:00
FileCheck
Instrumentation [MSAN] Avoid dangling ActualFnStart when replacing instruction 2020-08-14 23:50:38 +00:00
Integer
JitListener
Linker [test] XFAIL two tests with inlining debug info issues on Sparc 2020-08-13 11:12:52 +02:00
LTO
MachineVerifier
MC [PowerPC][PCRelative] Thread Local Storage Support for Initial Exec 2020-08-21 10:13:11 -05:00
Object [llvm-readobj/elf] - Refine the warning about the broken PT_DYNAMIC segment. 2020-08-17 14:57:19 +03:00
ObjectYAML Recommit: [DWARFYAML] Add support for referencing different abbrev tables. 2020-08-21 19:02:10 +08:00
Other [NewPM] Pin various tests under Other/ to legacy PM 2020-08-17 18:58:08 -07:00
Reduce [Reduce] Rewrite function body delta pass again 2020-08-08 23:48:44 +03:00
SafepointIRVerifier
Support
SymbolRewriter
TableGen Revert "[IR] Intrinsics default attributes and opt-out flag" 2020-08-20 00:25:32 -05:00
ThinLTO/X86 [ThinLTO] Import globals recursively 2020-08-20 12:13:43 +03:00
tools PrintStackTrace: don't symbolize if LLVM_DISABLE_SYMBOLIZATION is set 2020-08-21 11:27:13 -07:00
Transforms [LoopIdiom,LSR] Add additional tests for SCEVExpander cleanups. 2020-08-21 13:48:31 +01:00
Unit
Verifier [Statepoint] Remove code related to inline operand bundles 2020-08-14 20:29:41 -07:00
YAMLParser
.clang-format
CMakeLists.txt [CMake] Simplify CMake handling for zlib 2020-08-11 20:22:11 -07:00
lit.cfg.py
lit.site.cfg.py.in [CMake] Simplify CMake handling for zlib 2020-08-11 20:22:11 -07:00
TestRunner.sh