Skip to content

Commit bb37bc1

Browse files
committed
Auto merge of #45523 - alexcrichton:improve-libbacktrace, r=sfackler
std: Disable usage of mmap allocator in libbacktrace This is sort of a long overdue change from the investigation in #29293 and #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.
2 parents 847f4fc + 2f3c412 commit bb37bc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)