Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upReinitialize the dropflag hint in bindings #27413
Conversation
pnkfelix
added some commits
Jul 31, 2015
rust-highfive
assigned
nikomatsakis
Jul 31, 2015
This comment has been minimized.
This comment has been minimized.
|
(rust_highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
|
hat-tip to @alexcrichton for narrowing down the crates.io unit test failures that exposed this bug! |
This comment has been minimized.
This comment has been minimized.
|
r+ --- seems good, the only nit is that there could be a test for the dummy local case |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Jul 31, 2015
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
@bors: retry On Fri, Jul 31, 2015 at 1:13 AM, bors notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
|
@bors p=1 |
This comment has been minimized.
This comment has been minimized.
|
(i upp'ed priority because I want to get quicker feedback about problems in landing this PR, since I want to ensure it gets into beta but I may be traveling during the time that beta is cut.) |
bors
added a commit
that referenced
this pull request
Jul 31, 2015
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
An update: this PR appears to either inject a double-free, or somehow expose a latent one. My suspicion is that the double-free is being "injected", though the real bug is probably somewhere deeper in the non-zeroing moves implementation. Still looking. |
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
closing for now; I'll revive this later, but for the short-term we're just disabling NZM; see #27582 |
pnkfelix commentedJul 31, 2015
Reinitialize the dropflag hint in occurrences of variable bindings.
Such bindings can occur in loops, and thus the binding can be executed after a previous move cleared the flag, thus necessitating the flag be reset to
DTOR_NEEDED_HINT.Fix #27401.