Skip to content

Commit

Permalink
Auto merge of #45523 - alexcrichton:improve-libbacktrace, r=sfackler
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Oct 26, 2017
2 parents 847f4fc + 2f3c412 commit bb37bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libbacktrace/configure
Original file line number Diff line number Diff line change
Expand Up @@ -12338,7 +12338,7 @@ else
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
ALLOC_FILE=mmap.lo
ALLOC_FILE=alloc.lo
else
ALLOC_FILE=alloc.lo
fi
Expand Down

0 comments on commit bb37bc1

Please sign in to comment.