rustc(4556,0x7fffcca583c0) malloc: *** malloc_zone_unregister() failed for 0x7fffcca4f548 on OSX 10.12 beta 2 #34674

Closed
glandium opened this Issue Jul 5, 2016 · 11 comments

Projects

None yet

8 participants

@glandium
Contributor
glandium commented Jul 5, 2016

Heads up: Running the rust compiler on OSX 10.12 beta 2 leads to the following error message:

rustc(4556,0x7fffcca583c0) malloc: *** malloc_zone_unregister() failed for 0x7fffcca4f548

Then the process gets stuck.

This roots from the malloc zone registration code in jemalloc 3, which is shared with Firefox's replace-malloc and causes the same issue on Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1284677)

Filed jemalloc issue: jemalloc/jemalloc#420

@brson
Contributor
brson commented Jul 5, 2016

Thanks for the report! This is scheduled for release Thursday. @glandium is 10.12 beta 2 compatible with stable and/or nightly?

@brson
Contributor
brson commented Jul 5, 2016

Since this is an unreleased version of OS X, and the final release isn't scheduled until fall, I think it's not a pressing issue, but we should solve it for 1.11.

@brson
Contributor
brson commented Jul 5, 2016

Nominating because this is a high priority issue someone should investigate.

@glandium glandium added a commit to glandium/rust that referenced this issue Jul 8, 2016
@glandium glandium Update jemalloc to include the fix startup issues on OSX 10.12
This fixes jemalloc/jemalloc#140 in the version used by the rust compiler.

Fixes #34674
1611dac
@glandium glandium added a commit to glandium/rust that referenced this issue Jul 8, 2016
@glandium glandium Update jemalloc to include a fix for startup issues on OSX 10.12
This fixes jemalloc/jemalloc#140 in the version used by the rust compiler.

Fixes #34674
3fd0387
@bors bors added a commit that referenced this issue Jul 9, 2016
@bors bors Auto merge of #34719 - glandium:issue34674, r=alexcrichton
Update jemalloc to include a fix for startup issues on OSX 10.12

This fixes jemalloc/jemalloc#140 in the version used by the rust compiler.

Fixes #34674
24d51f9
@bors bors closed this in #34719 Jul 9, 2016
@jansegre

As a data point, I don't experience this issue on nightly (9f1ffdd 2016-07-11), but I do on stable. I'm on macOS 10.12 Beta (16A238m).

@alexcrichton alexcrichton added a commit to alexcrichton/rust that referenced this issue Jul 19, 2016
@glandium @alexcrichton glandium + alexcrichton Update jemalloc to include a fix for startup issues on OSX 10.12
This fixes jemalloc/jemalloc#140 in the version used by the rust compiler.

Fixes #34674
69a6230
@tzakharko

I am still experiencing this issue when trying to build rust on OS X. Rustc just enters a (seemingly) infinite loop with a comparable error message. Note: this also happens if I disable jemalloc via the --disable-jemalloc option to configure. This is under Sierra Dev build 6 (16A294a), Rust 413ada3

@e-oz
e-oz commented Aug 20, 2016

@tzakharko can't reproduce.
Beta 12 installed successfully and working fine on Sierra 10.12 Beta (16A294a).

@tzakharko

@e-oz True, Beta 12 is building and working correctly. However, the current master does not. I do not know whether its a regression or not, as I have no idea about how Rust repo is organised.

@eshansingh

Hey, just wanted to know what's the status on this? jemalloc has fixed this on their end, by PR jemalloc/jemalloc#427. Is there an update yet for this?

@zeusdeux

This is still broken on macOS Sierra version 10.12 (16A323).

I tried to upgrade my local rust installation using homebrew (brew update && brew upgrade rust) and that lead to the build hanging on make

Output reported by homebrew:

==> ./configure --prefix=/usr/local/Cellar/rust/1.11.0 --enable-clang --release-channel=stable
==> make
@tzakharko

@zeusdeux Installing with --HEAD works

@cielavenir

However currently we have to kill docdir stuff from install.mk.
https://raw.githubusercontent.com/cielavenir/homebrew-ciel/master/patch/rust.patch

@pmatos pmatos pushed a commit to LinkiTools/rust that referenced this issue Sep 27, 2016
@glandium @alexcrichton glandium + alexcrichton Update jemalloc to include a fix for startup issues on OSX 10.12
This fixes jemalloc/jemalloc#140 in the version used by the rust compiler.

Fixes #34674
83e128d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment