breakpad/src/common
Mark Mentovai 8c70c504b2 Make breakpad_unittests work with Chrome's test runner instead of gtest's
Chrome's test runner on Linux installs its own StackDumpSignalHandler
which swallows signals and doesn't re-raise them. This is sloppy, but
apparently there are reasons (https://crbug.com/551681). For
breakpad_unittests, it causes problems where a test process expects (via
waitpid()) to observe a child crash.  Deal with those cases by
explicitly restoring the default signal handler.

In another case, Chrome's test runner seems to have been arriving at the
conclusion that it was to expect output from a child. Transitioning from
exit() to _exit() fixes this problem, and it's not necessarily a bad
idea to do this in post-fork() children without an execve() anyway.

Bug: chromium:949098
Change-Id: I5a6af0c2a09cd8eac9998358f6d5ea665288236f
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/1575670
Reviewed-by: Mark Mentovai <mark@chromium.org>
2019-04-19 21:42:27 +00:00
..
android Add asm and machine headers 2018-01-03 21:22:16 +00:00
dwarf Fixed a typo introduced in revision 16e08520e6 2018-08-14 14:12:51 +00:00
linux Make breakpad_unittests work with Chrome's test runner instead of gtest's 2019-04-19 21:42:27 +00:00
mac mac dump_syms: remove unused vars to fix -Werror build failures 2019-04-05 00:25:48 +00:00
solaris solaris: fix spurious ; 2015-09-11 12:59:53 -04:00
testdata Breakpad Linux dumper: Make StabsReader independent of endianness and word size. 2010-05-05 17:09:20 +00:00
tests Add missing #include of eintr_wrapper.h to auto_testfile.h. Since it's 2013-12-03 19:01:17 +00:00
windows Write field indicating multiple symbols at an address in dump_syms 2017-12-11 22:36:40 +00:00
basictypes.h Use a proper ignore_result() to fix a ftruncate warn_unused_result warning with GCC 4.8. 2013-12-18 19:52:36 +00:00
byte_cursor.h This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00
byte_cursor_unittest.cc This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00
common.gyp android: drop sgidefs.h hack for LSS 2017-12-23 13:21:00 +00:00
convert_UTF.c Update license on convert_UTF.* to the standard Unicode license. 2015-02-25 21:16:43 +00:00
convert_UTF.h Update license on convert_UTF.* to the standard Unicode license. 2015-02-25 21:16:43 +00:00
dwarf_cfi_to_module.cc Allow compiling the google-breakpad code using a global ::string class instead of std::string. 2016-11-08 01:29:06 +00:00
dwarf_cfi_to_module.h Allow compiling the google-breakpad code using a global ::string class instead of std::string. 2016-11-08 01:29:06 +00:00
dwarf_cfi_to_module_unittest.cc Add some more DWARF ARM register numbers to the DWARF CFI register maps 2012-07-18 18:13:29 +00:00
dwarf_cu_to_module.cc Skip empty DWARF code range when mapping lines 2018-11-21 15:38:37 +00:00
dwarf_cu_to_module.h Fix debug build after 16e0852 2018-08-18 01:46:46 +00:00
dwarf_cu_to_module_unittest.cc Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
dwarf_line_to_module.cc Include the compilation directory for FILE entries, making them absolute instead of relative 2013-01-23 18:01:28 +00:00
dwarf_line_to_module.h Include the compilation directory for FILE entries, making them absolute instead of relative 2013-01-23 18:01:28 +00:00
dwarf_line_to_module_unittest.cc Include the compilation directory for FILE entries, making them absolute instead of relative 2013-01-23 18:01:28 +00:00
dwarf_range_list_handler.cc Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
dwarf_range_list_handler.h Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
language.cc Use string instead of std::string 2017-03-22 23:22:40 +00:00
language.h Allow compiling the google-breakpad code using a global ::string class instead of std::string. 2016-11-08 01:29:06 +00:00
long_string_dictionary.cc Create LongStringDictionary and replace SimpleStringDictionary on iOS 2017-11-03 17:06:05 +00:00
long_string_dictionary.h Create LongStringDictionary and replace SimpleStringDictionary on iOS 2017-11-03 17:06:05 +00:00
long_string_dictionary_unittest.cc Create LongStringDictionary and replace SimpleStringDictionary on iOS 2017-11-03 17:06:05 +00:00
md5.cc md5: fix strict aliasing warnings 2017-02-07 01:10:12 +00:00
md5.h Fix up ~14 warnings about 'Implicit conversion loses integer precision' on iOS. 2014-02-18 22:52:02 +00:00
memory_allocator.h Rename src/common/memory.h to memory_allocator.h. 2017-10-17 14:02:43 +00:00
memory_allocator_unittest.cc Rename src/common/memory.h to memory_allocator.h. 2017-10-17 14:02:43 +00:00
memory_range.h Use stdint types everywhere 2013-03-06 14:04:42 +00:00
memory_range_unittest.cc Use stdint types everywhere 2013-03-06 14:04:42 +00:00
minidump_type_helper.h Remove pointers from serialized file format 2014-12-11 01:17:43 +00:00
module.cc Fix debug build after 16e0852 2018-08-18 01:46:46 +00:00
module.h Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
module_unittest.cc Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
path_helper.cc Add missing header for free function 2018-03-27 14:57:55 +00:00
path_helper.h Provide helper wrappers for basename(3) and dirname(3) 2017-10-18 15:44:59 +00:00
scoped_ptr.h Switch scoped_ptr.h to a compatible google3 implementation. 2013-12-18 19:49:55 +00:00
simple_string_dictionary.cc Rewrite SimpleStringDictionary with NonAllocatingMap. 2013-04-24 18:15:48 +00:00
simple_string_dictionary.h Add index-based set functionality to NonAllocatingMap. 2017-11-07 23:24:48 +00:00
simple_string_dictionary_unittest.cc Add index-based set functionality to NonAllocatingMap. 2017-11-07 23:24:48 +00:00
stabs_reader.cc This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00
stabs_reader.h Fix Mac Breakpad host tools to build in Linux cross-compile 2015-09-16 06:46:55 -04:00
stabs_reader_unittest.cc Use stdint types everywhere 2013-03-06 14:04:42 +00:00
stabs_to_module.cc Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
stabs_to_module.h This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00
stabs_to_module_unittest.cc Add support for parsing the DW_AT_ranges attributes 2018-08-13 19:12:00 +00:00
stdio_wrapper.h Rename stdio.h wrapper file to stdio_wrapper.h. 2016-04-05 15:45:30 -04:00
string_conversion.cc Fix pointer arithmetic in UTF8ToUTF16Char 2016-10-27 23:27:56 +00:00
string_conversion.h Use stdint types everywhere 2013-03-06 14:04:42 +00:00
symbol_data.h Allow reading just CFI data when reading symbols 2013-03-06 15:32:53 +00:00
test_assembler.cc Use stdint types everywhere 2013-03-06 14:04:42 +00:00
test_assembler.h Use stdint types everywhere 2013-03-06 14:04:42 +00:00
test_assembler_unittest.cc Use stdint types everywhere 2013-03-06 14:04:42 +00:00
unordered.h Use hash_map and hash_set from __gnu_cxx 2018-07-09 19:25:18 +00:00
using_std_string.h This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00