Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Disable usage of mmap allocator in libbacktrace #45523

Merged
merged 1 commit into from
Oct 27, 2017

Conversation

alexcrichton
Copy link
Member

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.

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.
@alexcrichton
Copy link
Member Author

I landed this upstream in the backtrace crate awhile ago and it seems to be working well, so I figured backporting to libstd would be great!

@alexcrichton
Copy link
Member Author

r? @sfackler

@sfackler
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Oct 25, 2017

📌 Commit 2f3c412 has been approved by sfackler

@kennytm kennytm added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 25, 2017
@bors
Copy link
Contributor

bors commented Oct 26, 2017

⌛ Testing commit 2f3c412 with merge bb37bc1...

bors added a commit that referenced this pull request Oct 26, 2017
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.
@bors
Copy link
Contributor

bors commented Oct 27, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: sfackler
Pushing bb37bc1 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants