bors 57786678d4 Auto merge of #1975 - DrMeepster:backtrace_fix, r=RalfJung
Make backtraces work with #[global_allocator]

Currently, backtraces break when the global allocator is overridden because the allocator will attempt to deallocate memory allocated directly by Miri.

~~This PR fixes that by using a new memory kind and providing a function to deallocate it. We can't call the custom allocator to allocate because it's not possible to call a function in the middle of a shim.~~

This PR fixes that by adding a new version of the backtrace API accessible by setting `flags` to 1. Existing code still functions.

backtrace-rs PR: rust-lang/backtrace-rs#462

Fixes https://github.com/rust-lang/miri/issues/1996
2022-03-20 02:37:09 +00:00
..
2021-07-07 09:33:01 +02:00
2021-12-05 20:33:20 -05:00
2020-03-30 10:23:16 +02:00
2021-03-02 20:17:05 +05:30
2022-03-05 17:26:32 -05:00
2020-11-19 09:21:11 +01:00
2021-06-20 15:12:11 +08:00
2020-09-10 08:44:27 +02:00
2020-10-29 20:57:38 +01:00
2020-10-27 17:26:36 +01:00
2021-05-11 15:32:05 +02:00
2019-11-25 15:08:47 +01:00
2020-10-29 20:57:38 +01:00
2019-09-20 08:53:35 +02:00
2020-03-27 08:43:08 -04:00
2020-03-06 08:21:53 -05:00
2019-11-25 15:08:47 +01:00
2021-04-25 16:57:48 +02:00
2020-10-04 12:06:51 -04:00
2020-10-04 12:06:51 -04:00
2022-02-25 12:06:10 -05:00
2020-09-10 08:44:27 +02:00
2020-05-20 00:00:35 +02:00
2020-01-19 10:03:18 -06:00
2020-01-19 10:03:18 -06:00
2021-01-31 13:12:25 +01:00
2021-12-15 19:11:08 +01:00
2022-02-27 15:27:34 -05:00
2019-11-08 12:43:26 +01:00
2020-09-02 20:57:20 -05:00
2020-09-10 08:44:27 +02:00
2019-08-04 16:44:32 -04:00
2021-04-30 19:35:59 +08:00
2021-01-31 13:12:25 +01:00
2020-03-22 08:55:39 +01:00
2021-01-31 13:12:25 +01:00
2020-06-20 11:48:42 +02:00
2021-09-02 15:41:10 -07:00
2021-09-02 15:41:10 -07:00
2020-01-19 10:03:18 -06:00
2020-09-07 15:05:26 -05:00
2021-10-12 11:39:06 -04:00
2021-04-25 16:57:48 +02:00
2020-06-01 01:12:31 +02:00