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

Reinitialize the dropflag hint in bindings #27413

Closed
wants to merge 3 commits into from

Conversation

pnkfelix
Copy link
Member

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.

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 rust-lang#27401.
@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@pnkfelix
Copy link
Member Author

hat-tip to @alexcrichton for narrowing down the crates.io unit test failures that exposed this bug!

@nikomatsakis
Copy link
Contributor

r+ --- seems good, the only nit is that there could be a test for the dummy local case

@pnkfelix
Copy link
Member Author

@bors r=nikomatsakis c681d30

@bors
Copy link
Contributor

bors commented Jul 31, 2015

⌛ Testing commit c681d30 with merge eb16343...

@bors
Copy link
Contributor

bors commented Jul 31, 2015

💔 Test failed - auto-mac-64-opt

@alexcrichton
Copy link
Member

@bors: retry

On Fri, Jul 31, 2015 at 1:13 AM, bors notifications@github.com wrote:

[image: 💔] Test failed - auto-mac-64-opt
http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/5919


Reply to this email directly or view it on GitHub
#27413 (comment).

@pnkfelix
Copy link
Member Author

@bors p=1

@pnkfelix
Copy link
Member Author

(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
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.
@bors
Copy link
Contributor

bors commented Jul 31, 2015

⌛ Testing commit c681d30 with merge 8344236...

@bors
Copy link
Contributor

bors commented Jul 31, 2015

💔 Test failed - auto-mac-32-opt

@pnkfelix
Copy link
Member Author

pnkfelix commented Aug 5, 2015

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.

@bors
Copy link
Contributor

bors commented Aug 5, 2015

☔ The latest upstream changes (presumably #27529) made this pull request unmergeable. Please resolve the merge conflicts.

@pnkfelix
Copy link
Member Author

pnkfelix commented Aug 7, 2015

closing for now; I'll revive this later, but for the short-term we're just disabling NZM; see #27582

@pnkfelix pnkfelix closed this Aug 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants