llvm-mirror/test/Object
Yuanfang Chen 725cd0da61 [Support] make report_fatal_error abort instead of exit
Summary:
This patch could be treated as a rebase of D33960. It also fixes PR35547.
A fix for `llvm/test/Other/close-stderr.ll` is proposed in D68164. Seems
the consensus is that the test is passing by chance and I'm not
sure how important it is for us. So it is removed like in D33960 for now.
The rest of the test fixes are just adding `--crash` flag to `not` tool.

** The reason it fixes PR35547 is

`exit` does cleanup including calling class destructor whereas `abort`
does not do any cleanup. In multithreading environment such as ThinLTO or JIT,
threads may share states which mostly are ManagedStatic<>. If faulting thread
tearing down a class when another thread is using it, there are chances of
memory corruption. This is bad 1. It will stop error reporting like pretty
stack printer; 2. The memory corruption is distracting and nondeterministic in
terms of error message, and corruption type (depending one the timing, it
could be double free, heap free after use, etc.).

Reviewers: rnk, chandlerc, zturner, sepavloff, MaskRay, espindola

Reviewed By: rnk, MaskRay

Subscribers: wuzish, jholewinski, qcolombet, dschuff, jyknight, emaste, sdardis, nemanjai, jvesely, nhaehnle, sbc100, arichardson, jgravelle-google, aheejin, kbarton, fedor.sergeev, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, PkmX, jocewei, jsji, lenary, s.egerton, pzheng, cfe-commits, MaskRay, filcab, davide, MatzeB, mehdi_amini, hiraditya, steven_wu, dexonsmith, rupprecht, seiya, llvm-commits

Tags: #llvm, #clang

Differential Revision: https://reviews.llvm.org/D67847
2020-01-15 17:05:13 -08:00
..
AArch64 AArch64: support binutils-like things on arm64_32. 2019-05-14 11:25:44 +00:00
AMDGPU [AMDGPU] gfx908 target 2019-07-09 18:10:06 +00:00
ARM [llvm-readobj] Change -t to --symbols in tests. NFC 2019-05-01 09:28:24 +00:00
Inputs [Object][MachO] Rewrite macho-invalid-fat-arch-size into YAML 2019-11-06 11:26:25 -08:00
Lanai
Mips [mips] Use llvm-readobj -A flag in test cases. NFC 2019-10-03 12:08:04 +00:00
RISCV [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
X86 [llvm-objdump] Print relocation addends in hexadecimal 2019-11-19 12:27:18 +00:00
ar-create.test
ar-error.test
archive-darwin-duplicates.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-delete.test
archive-error-tmp.txt
archive-extract-dir.test
archive-extract.test [llvm-ar] Uncapitalize error messages and delete full stop 2019-09-14 01:18:47 +00:00
archive-format.test [llvm-ar] Uncapitalize error messages and delete full stop 2019-09-14 01:18:47 +00:00
archive-long-filenames-no-null-terminator.test
archive-long-index.test
archive-move.test
archive-pad.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
archive-replace-pos.test
archive-symtab.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
archive-thin-create.test [llvm-ar] Implement the O modifier: display member offsets inside the archive 2019-10-17 11:34:29 +00:00
archive-thin-paths.test
archive-thin-read.test
archive-toc.test [llvm-ar] Implement the O modifier: display member offsets inside the archive 2019-10-17 11:34:29 +00:00
archive-update.test [llvm-ar] Uncapitalize error messages and delete full stop 2019-09-14 01:18:47 +00:00
check_binary_output.ll
coff-archive-short.test
coff-archive.test
coff-empty-drectve.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
coff-invalid.test [Support] make report_fatal_error abort instead of exit 2020-01-15 17:05:13 -08:00
coff-weak-externals.test
directory.ll
dllimport-globalref.ll
dllimport.ll
dyn-rel-relocation.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
dynamic-reloc.test
elf-invalid-phdr.test [Support] make report_fatal_error abort instead of exit 2020-01-15 17:05:13 -08:00
elf-unknown-type.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
invalid-alignment.test
invalid.test [Support] make report_fatal_error abort instead of exit 2020-01-15 17:05:13 -08:00
kext.test
lit.local.cfg
macho-invalid.test [Object][MachO] Rewrite macho-invalid-fat-arch-size into YAML 2019-11-06 11:26:25 -08:00
mangle-ir.ll
multi-module.ll
multiple-sections.yaml [llvm-readobj][llvm-readelf] - Refactor parsing of the SHT_GNU_versym section. 2019-12-06 15:35:05 +03:00
nm-archive.test Attempt to fix nm-archive.test after r362798 2019-06-07 16:06:27 +00:00
nm-bitcode.test
nm-darwin-m.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
nm-error.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
nm-irix6.test
nm-pe-image.test
nm-shared-object.test [test][tools] Add missing and improve testing 2019-12-09 12:24:23 +00:00
nm-trivial-object.test Fix test case of llvm-nm using implicit a.out 2019-07-12 10:44:06 +00:00
nm-universal-binary.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
nm-weak-global-macho.test
no-section-header-string-table.test
no-section-table.test
obj2yaml.test [test/Object] - Cleanup the Object\obj2yaml.test a bit. 2019-08-06 14:34:39 +00:00
objc-imageinfo-coff.ll
objc-imageinfo-elf.ll
objc-imageinfo-macho.ll
objdump-export-list.test
objdump-no-sectionheaders.test
objdump-private-headers.test
objdump-relocations.test [llvm-objdump] Print relocation addends in hexadecimal 2019-11-19 12:27:18 +00:00
objdump-section-content.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
objdump-sectionheaders.test [yaml2obj] - Make .symtab to be not mandatory section for SHT_REL[A] section. 2019-10-29 11:43:12 +03:00
objdump-symbol-table.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
pr25877.test
readobj-absent.test [llvm\test\Object] - An initial step to cleanup the test cases. 2019-07-08 16:53:39 +00:00
readobj-elf-versioning.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
readobj-shared-object.test [Object/llvm-readobj] - Cleanup testing of the dynamic objects. 2019-07-24 12:20:42 +00:00
relocation-executable.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
simple-archive.test
size-trivial-macho.test [llvm-ar][llvm-nm][llvm-size] Change -long-option to --long-option in tests. NFC 2019-05-01 15:31:15 +00:00
stackmap-dump.test [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
wasm-bad-metadata-version.yaml
wasm-duplicate-name.test [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
wasm-invalid-file.yaml [Support] make report_fatal_error abort instead of exit 2020-01-15 17:05:13 -08:00
wasm-invalid-section-order.test
wasm-invalid-start.test
wasm-missing-version.test
wasm-relocs-and-producers.yaml [WebAssembly] Allow multivalue signatures in object files 2019-10-18 20:27:30 +00:00
wasm-string-outside-section.test [Support] make report_fatal_error abort instead of exit 2020-01-15 17:05:13 -08:00
yaml2obj-elf-rel-noref.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-elf-rel.yaml [llvm-readobj] Change -long-option to --long-option in tests. NFC 2019-05-01 05:27:20 +00:00
yaml2obj-readobj.test [llvm/test/Object] - Cleanup and move out the yaml2obj tests. 2019-08-06 08:02:25 +00:00