Yuanfang Chen
647c3f4e47
[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
..
2020-01-15 17:05:13 -08:00
2019-07-11 21:19:33 +00:00
2019-12-17 18:54:27 +00:00
2019-07-28 06:09:56 +00:00
2019-10-02 00:26:58 +00:00
2019-11-15 13:43:47 +05:30
2019-07-17 11:22:19 +00:00
2019-10-14 15:35:01 +00:00
2019-08-24 22:14:41 +00:00
2019-11-19 16:33:16 +03:00
2019-12-16 10:25:57 +00:00
2019-11-21 09:47:28 +00:00
2019-11-13 07:11:02 +05:30
2019-09-05 02:20:39 +00:00
2019-11-13 07:11:02 +05:30
2020-01-15 17:05:13 -08:00
2019-08-23 10:07:43 +00:00
2019-08-23 10:07:43 +00:00
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2019-08-23 10:07:43 +00:00
2019-08-23 10:07:43 +00:00
2019-10-14 12:01:10 +00:00
2019-11-13 06:34:28 +05:30
2019-11-13 06:34:28 +05:30
2019-10-18 21:48:22 +00:00
2019-10-18 21:48:22 +00:00
2020-01-14 19:19:02 +00:00
2019-09-30 15:31:17 +00:00
2020-01-15 15:18:16 +05:30
2020-01-15 17:05:13 -08:00
2020-01-15 15:18:16 +05:30
2019-10-14 12:01:10 +00:00
2019-10-02 17:22:36 +00:00
2020-01-14 19:26:15 -05:00
2020-01-08 20:03:29 -08:00
2020-01-14 01:18:59 -08:00
2020-01-14 19:19:02 +00:00
2020-01-14 19:19:02 +00:00
2019-10-20 07:46:04 +00:00
2019-11-06 15:47:32 -08:00
2019-07-09 16:48:42 +00:00
2020-01-15 15:18:16 +05:30
2020-01-15 17:05:13 -08:00
2020-01-15 17:05:13 -08:00
2019-07-08 19:03:38 +00:00
2019-10-28 10:02:22 -07:00
2019-07-09 16:48:42 +00:00
2019-07-09 16:48:42 +00:00
2019-09-05 23:54:35 +00:00
2019-07-25 13:55:07 +00:00
2019-08-28 15:00:45 +00:00
2020-01-15 17:05:13 -08:00
2019-10-20 17:34:44 +00:00
2020-01-14 19:19:02 +00:00
2019-10-02 17:22:36 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-02 17:22:36 +00:00
2020-01-15 15:18:16 +05:30
2019-10-02 17:22:36 +00:00
2019-12-13 12:49:06 +00:00
2019-10-14 12:01:10 +00:00
2019-12-17 16:48:02 +00:00
2019-10-10 07:11:33 +00:00
2020-01-15 15:18:16 +05:30
2019-08-06 14:30:19 +00:00
2020-01-15 15:18:16 +05:30
2020-01-14 19:26:15 -05:00
2019-10-10 07:11:33 +00:00
2019-08-27 17:51:56 +00:00
2020-01-15 15:18:16 +05:30
2019-12-17 18:54:27 +00:00
2019-12-17 18:54:27 +00:00
2020-01-14 19:19:02 +00:00
2019-08-23 17:58:49 +00:00
2019-10-10 07:11:33 +00:00
2020-01-14 19:26:15 -05:00
2019-07-19 13:57:44 +00:00
2019-07-12 20:12:17 +00:00
2019-10-10 07:11:33 +00:00
2020-01-15 17:05:13 -08:00
2019-07-29 11:48:17 +00:00
2020-01-15 15:18:16 +05:30
2019-10-14 15:35:01 +00:00
2019-10-11 22:03:36 +00:00
2019-10-25 21:30:37 +03:00
2020-01-14 19:19:02 +00:00
2019-10-20 17:44:17 +00:00
2019-12-27 14:06:31 -05:00
2019-07-09 18:10:06 +00:00
2019-07-09 18:10:06 +00:00
2020-01-15 15:18:16 +05:30
2019-07-31 21:57:28 +00:00
2020-01-08 20:03:29 -08:00
2019-11-15 13:43:47 +05:30
2019-10-19 01:34:59 +00:00
2020-01-14 17:03:05 -05:00
2019-10-14 12:01:10 +00:00
2019-12-23 09:37:58 +09:00
2019-12-17 18:54:27 +00:00
2019-10-14 12:01:10 +00:00
2019-09-12 07:51:24 +00:00
2019-10-20 17:44:17 +00:00
2019-10-24 17:35:33 -04:00
2019-07-31 21:57:28 +00:00
2019-10-15 19:59:45 +00:00
2019-09-11 11:16:48 +00:00
2019-10-20 17:34:44 +00:00
2020-01-15 17:05:13 -08:00
2019-09-11 11:16:48 +00:00
2019-09-25 18:50:34 +00:00
2019-07-29 08:15:10 +00:00
2019-07-11 14:45:03 +00:00
2019-07-11 14:45:03 +00:00
2019-10-14 12:01:10 +00:00
2019-10-14 12:01:10 +00:00
2019-10-07 10:57:41 +00:00
2019-09-10 17:19:46 +00:00
2019-10-14 12:01:10 +00:00
2019-12-31 22:49:51 -05:00
2019-10-14 12:01:10 +00:00
2019-10-02 23:23:46 +00:00
2019-10-02 17:22:36 +00:00
2019-10-24 11:30:22 -04:00
2019-10-10 07:11:33 +00:00
2019-10-02 17:22:36 +00:00
2019-10-10 07:11:33 +00:00
2019-10-21 19:53:46 +00:00
2019-09-30 15:31:17 +00:00
2019-08-13 18:57:55 +00:00
2019-10-30 14:56:33 -07:00
2019-10-25 15:08:30 -07:00
2019-12-04 10:25:34 +00:00
2019-10-23 18:42:48 -07:00
2020-01-06 17:21:51 -05:00
2019-10-30 15:18:21 +00:00
2020-01-14 19:19:02 +00:00
2019-07-11 23:53:30 +00:00
2019-12-24 15:57:33 -08:00
2019-10-14 12:01:10 +00:00
2019-07-19 16:45:48 +00:00
2019-10-20 17:34:44 +00:00
2019-10-20 17:34:44 +00:00
2019-08-29 19:03:58 +00:00
2019-12-17 18:54:27 +00:00
2019-11-06 16:06:38 -08:00
2019-09-02 14:40:57 +00:00
2019-10-10 07:11:33 +00:00
2019-10-20 17:34:44 +00:00
2019-10-02 17:22:36 +00:00
2019-10-02 17:22:36 +00:00
2019-09-11 11:16:48 +00:00
2020-01-15 15:18:16 +05:30
2019-11-20 15:53:55 +05:30
2019-11-20 15:53:55 +05:30
2019-11-20 15:53:55 +05:30
2019-11-20 15:53:55 +05:30
2019-11-20 15:53:55 +05:30
2019-11-20 15:53:55 +05:30
2019-11-13 07:11:02 +05:30
2019-11-13 07:11:02 +05:30
2019-07-09 18:10:06 +00:00
2019-10-26 14:37:45 +05:30
2019-11-26 18:59:37 +03:00
2019-10-14 12:01:10 +00:00
2019-08-27 00:08:31 +00:00
2019-12-17 18:54:27 +00:00
2019-12-17 18:54:27 +00:00
2019-12-17 18:54:27 +00:00
2019-12-17 18:54:27 +00:00
2020-01-14 19:26:15 -05:00
2019-10-02 23:23:46 +00:00
2019-10-14 12:01:10 +00:00
2019-10-25 19:27:26 -04:00
2019-08-29 19:03:58 +00:00
2019-10-21 19:42:29 +00:00
2019-10-28 20:51:51 -07:00
2019-07-08 15:57:56 +00:00
2019-10-18 18:26:37 +00:00
2020-01-14 20:08:39 -05:00
2019-07-29 09:47:07 +00:00
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2020-01-14 19:19:02 +00:00
2019-10-02 17:22:36 +00:00
2019-10-16 14:37:39 +00:00
2019-10-02 17:22:36 +00:00
2019-07-09 19:41:51 +00:00
2019-07-08 19:03:38 +00:00
2020-01-14 19:19:02 +00:00
2020-01-14 19:19:02 +00:00
2019-11-13 06:34:28 +05:30
2019-07-25 14:50:18 +00:00
2019-10-02 17:22:36 +00:00
2020-01-15 17:05:13 -08:00
2020-01-15 17:05:13 -08:00
2019-09-11 11:16:48 +00:00
2019-07-11 00:10:17 +00:00
2019-07-08 19:03:38 +00:00
2019-07-19 15:43:56 +00:00
2019-10-14 12:01:10 +00:00
2020-01-09 15:56:36 -08:00
2020-01-09 15:56:36 -08:00
2019-07-19 20:01:24 +00:00
2019-07-19 20:01:24 +00:00
2020-01-15 17:05:13 -08:00
2019-07-19 20:01:24 +00:00
2020-01-14 19:26:15 -05:00
2019-10-14 12:01:10 +00:00
2019-07-08 19:03:38 +00:00
2019-10-01 02:07:25 +00:00
2019-10-01 02:07:25 +00:00
2019-10-21 19:53:49 +00:00
2019-07-12 20:12:17 +00:00
2019-09-05 02:20:39 +00:00
2019-09-05 02:20:39 +00:00
2019-11-28 10:01:06 +00:00
2019-11-13 16:38:54 -08:00
2019-10-14 12:01:10 +00:00
2019-07-15 17:50:31 +00:00
2019-07-15 17:50:31 +00:00
2019-10-14 12:01:10 +00:00
2019-08-05 09:36:06 +00:00
2019-10-02 17:22:36 +00:00
2019-10-02 17:22:36 +00:00
2019-10-18 18:26:37 +00:00
2019-10-18 18:26:37 +00:00
2019-09-06 10:07:28 +00:00
2019-11-15 15:01:15 +01:00
2019-07-11 23:42:57 +00:00
2019-07-11 00:00:27 +00:00
2019-07-11 00:00:27 +00:00
2019-07-26 09:54:12 +00:00
2019-08-05 09:36:06 +00:00
2019-08-05 15:59:07 +00:00
2019-08-05 14:57:59 +00:00
2019-10-15 16:41:15 +00:00
2020-01-07 10:15:29 -05:00
2019-10-18 18:26:37 +00:00
2019-07-29 08:15:10 +00:00
2019-07-09 16:48:42 +00:00
2019-07-09 16:48:42 +00:00
2019-12-17 18:54:27 +00:00
2019-12-17 18:54:27 +00:00
2020-01-14 19:26:15 -05:00
2019-07-11 21:19:33 +00:00
2019-07-11 21:19:33 +00:00
2019-10-24 17:35:33 -04:00
2019-07-11 21:19:33 +00:00
2019-09-06 10:07:28 +00:00
2020-01-14 19:26:15 -05:00
2019-08-29 19:03:58 +00:00
2019-12-06 09:53:53 -08:00
2019-11-13 07:11:02 +05:30
2020-01-13 11:08:12 +00:00
2019-07-08 19:03:38 +00:00
2019-08-27 00:18:09 +00:00
2019-07-15 17:50:31 +00:00
2019-12-17 18:54:27 +00:00
2019-07-11 21:30:34 +00:00
2019-07-11 21:19:33 +00:00
2020-01-14 19:19:02 +00:00
2019-09-19 16:44:38 +00:00
2019-11-12 08:18:11 +00:00
2019-08-23 17:58:49 +00:00
2019-10-10 07:11:33 +00:00
2020-01-07 10:10:25 -05:00
2019-10-02 17:22:36 +00:00
2019-10-02 17:22:36 +00:00
2019-10-02 17:22:36 +00:00
2019-10-16 10:17:02 +00:00
2019-10-16 10:17:02 +00:00
2019-10-14 18:30:29 +00:00
2019-10-10 07:11:33 +00:00
2019-09-11 21:28:41 +00:00
2019-11-20 22:59:30 +01:00
2019-11-13 16:03:54 -08:00
2020-01-09 15:56:36 -08:00
2020-01-09 15:56:36 -08:00
2020-01-03 15:25:50 -05:00
2020-01-15 15:18:16 +05:30
2019-10-10 07:11:33 +00:00
2019-07-12 20:12:17 +00:00
2020-01-15 15:18:16 +05:30
2020-01-09 15:56:36 -08:00
2019-07-15 17:50:31 +00:00
2019-11-26 18:59:37 +03:00
2019-07-09 16:48:42 +00:00
2019-09-05 00:34:01 +00:00
2019-10-30 14:40:56 -07:00
2019-07-31 01:07:10 +00:00
2019-10-02 17:22:36 +00:00
2019-11-13 07:11:02 +05:30
2019-10-20 17:34:44 +00:00
2019-10-20 17:34:44 +00:00
2019-11-19 19:55:43 +05:30
2019-11-20 15:53:55 +05:30
2019-08-12 17:12:29 +00:00
2019-10-24 11:30:22 -04:00
2019-10-02 17:22:36 +00:00
2019-10-08 12:46:32 +00:00
2019-10-02 17:22:36 +00:00
2019-10-10 07:11:33 +00:00
2019-08-29 19:03:58 +00:00
2020-01-09 15:56:36 -08:00
2019-10-02 17:22:36 +00:00
2019-11-28 10:13:48 -08:00
2019-09-12 23:46:46 +00:00
2019-08-29 01:13:47 +00:00
2019-09-17 09:08:58 +00:00
2019-10-10 07:11:33 +00:00
2019-12-17 15:20:43 +03:00
2019-10-02 17:22:36 +00:00
2019-10-08 17:36:38 +00:00
2019-11-13 07:11:02 +05:30
2019-11-13 07:11:02 +05:30
2019-11-13 07:11:02 +05:30
2019-11-13 07:11:02 +05:30
2019-11-13 07:11:02 +05:30
2019-11-20 15:08:17 -05:00
2020-01-14 19:19:02 +00:00
2019-10-10 07:11:33 +00:00
2019-08-20 20:58:02 +00:00
2019-08-20 20:58:02 +00:00
2019-08-20 20:58:02 +00:00
2019-09-02 14:40:57 +00:00
2019-08-23 17:58:49 +00:00
2019-12-27 19:37:39 -05:00
2020-01-15 17:05:13 -08:00
2020-01-15 17:05:13 -08:00
2020-01-15 17:05:13 -08:00
2019-07-09 03:10:18 +00:00
2019-07-19 13:57:44 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-10 07:11:33 +00:00
2019-10-02 17:22:36 +00:00
2019-10-10 07:11:33 +00:00
2019-10-02 17:22:36 +00:00
2019-10-10 07:11:33 +00:00
2020-01-15 15:18:16 +05:30
2019-07-26 02:36:05 +00:00
2019-08-03 14:28:34 +00:00
2019-08-03 14:28:34 +00:00
2019-09-12 07:51:24 +00:00
2019-07-24 19:40:13 +00:00
2019-10-23 18:42:48 -07:00
2019-07-27 14:32:23 +00:00
2019-10-02 17:22:36 +00:00
2019-10-02 17:22:36 +00:00
2019-10-18 23:24:25 +00:00
2019-10-02 17:22:36 +00:00
2019-10-10 07:11:33 +00:00
2020-01-14 01:08:30 -08:00
2020-01-09 15:56:36 -08:00
2019-07-23 12:39:08 +00:00
2020-01-07 15:10:07 -05:00
2019-09-11 11:16:48 +00:00
2019-07-10 14:53:47 +00:00
2019-10-14 12:01:10 +00:00
2020-01-14 19:26:15 -05:00
2020-01-09 15:56:36 -08:00
2020-01-09 15:56:36 -08:00
2019-10-14 12:01:10 +00:00
2019-10-14 12:01:10 +00:00
2020-01-14 19:19:02 +00:00
2019-12-17 18:54:27 +00:00
2020-01-13 11:08:12 +00:00
2020-01-13 11:08:12 +00:00
2020-01-07 16:36:31 -05:00
2019-10-02 17:22:36 +00:00
2020-01-15 15:18:16 +05:30
2019-11-26 18:59:37 +03:00
2019-10-14 12:01:10 +00:00
2019-10-08 12:46:20 +00:00
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2019-07-19 18:50:53 +00:00
2019-07-19 13:57:44 +00:00
2019-07-12 20:12:17 +00:00
2019-10-18 21:48:22 +00:00
2019-07-08 19:03:38 +00:00
2019-11-26 20:28:52 -08:00
2020-01-06 21:38:50 -05:00
2019-07-10 14:53:47 +00:00
2020-01-09 15:56:36 -08:00
2020-01-07 15:10:07 -05:00
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2019-09-11 11:16:48 +00:00
2019-10-18 18:20:30 +00:00
2019-09-19 16:44:38 +00:00
2019-09-19 16:44:38 +00:00
2020-01-15 15:18:16 +05:30
2019-10-30 17:09:07 +00:00
2019-10-14 12:01:10 +00:00
2019-07-12 22:42:01 +00:00
2019-10-10 07:11:33 +00:00
2019-07-08 19:03:38 +00:00
2019-10-18 21:48:22 +00:00
2019-07-08 19:03:38 +00:00
2020-01-14 19:26:15 -05:00
2019-10-18 21:48:22 +00:00
2019-10-25 11:47:33 -04:00
2019-07-12 20:12:17 +00:00
2019-10-10 07:11:33 +00:00
2020-01-15 15:18:16 +05:30
2019-10-24 17:35:33 -04:00
2019-07-08 19:03:38 +00:00
2019-10-21 19:42:29 +00:00
2019-10-20 17:34:44 +00:00
2019-12-13 12:49:06 +00:00
2020-01-09 15:56:36 -08:00
2020-01-07 16:36:31 -05:00
2019-10-10 07:11:33 +00:00
2020-01-15 15:18:16 +05:30
2019-10-10 07:11:33 +00:00
2019-09-20 00:09:15 +00:00
2019-10-10 07:11:33 +00:00
2020-01-15 15:46:57 -08:00
2019-12-17 18:54:27 +00:00
2019-09-18 09:32:06 +00:00
2019-09-18 09:32:06 +00:00
2020-01-07 15:10:07 -05:00
2020-01-09 15:56:36 -08:00
2020-01-07 15:10:07 -05:00
2019-09-11 11:16:48 +00:00
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2019-07-12 20:12:17 +00:00
2019-10-20 07:46:04 +00:00
2019-10-14 12:01:10 +00:00
2019-07-16 20:06:00 +00:00
2019-07-12 15:02:59 +00:00
2019-09-06 10:07:28 +00:00
2020-01-15 15:18:16 +05:30
2019-10-02 17:22:36 +00:00
2019-12-17 18:54:27 +00:00
2020-01-15 17:05:13 -08:00
2020-01-14 19:19:02 +00:00
2019-10-14 12:01:10 +00:00
2019-07-12 20:12:17 +00:00
2019-10-02 17:22:36 +00:00
2019-10-02 17:22:36 +00:00
2019-12-17 18:54:27 +00:00
2019-10-02 17:22:36 +00:00
2019-11-23 09:34:23 -08:00
2019-09-06 10:07:28 +00:00
2019-12-31 14:20:30 -05:00
2020-01-15 15:18:16 +05:30
2020-01-15 15:18:16 +05:30
2020-01-10 23:01:19 -05:00
2020-01-12 22:44:51 -05:00
2019-07-19 13:57:44 +00:00
2020-01-09 15:56:36 -08:00