Skip to content

Commit 2f3c412

Browse files
committed
std: Disable usage of mmap allocator in libbacktrace
This is sort of a long overdue change from the investigation in rust-lang#29293 and rust-lang#37477. The released binaries of rustc don't have debug information and so don't actively suffer this problem but this can hit local development of rustc and also larger programs compiled against libstd generating backtraces. The main purpose of the mmap allocator in libacktrace is to be usable from a signal handler, but we don't do that, so the normal allocator using malloc/free should work well for us.
1 parent b247805 commit 2f3c412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbacktrace/configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -12338,7 +12338,7 @@ else
1233812338
1233912339
_ACEOF
1234012340
if ac_fn_c_try_cpp "$LINENO"; then :
12341-
ALLOC_FILE=mmap.lo
12341+
ALLOC_FILE=alloc.lo
1234212342
else
1234312343
ALLOC_FILE=alloc.lo
1234412344
fi

0 commit comments

Comments
 (0)