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

rustrt: Fix invalid reads caught by valgrind #14787

Merged
merged 1 commit into from
Jun 11, 2014

Conversation

alexcrichton
Copy link
Member

This is another case of #13246. The RAII lock wasn't being destroyed until after
the allocation was free'd due to destructor scheduling.

Closes #14784

This is another case of rust-lang#13246. The RAII lock wasn't being destroyed until after
the allocation was free'd due to destructor scheduling.

Closes rust-lang#14784
bors added a commit that referenced this pull request Jun 11, 2014
This is another case of #13246. The RAII lock wasn't being destroyed until after
the allocation was free'd due to destructor scheduling.

Closes #14784
@bors bors closed this Jun 11, 2014
@bors bors merged commit 4fecc50 into rust-lang:master Jun 11, 2014
@alexcrichton alexcrichton deleted the issue-14784 branch June 11, 2014 23:32
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
MIR episode 5

This PR inits drop support (it is very broken at this stage, some things are dropped multiple time, drop scopes are wrong, ...) and adds stdout support (`println!` doesn't work since its expansion is dummy, but `stdout().write(b"hello world\n")` works if you use `RA_SYSROOT_HACK`) for interpreting. There is no useful unit test that it can interpret yet, but it is a good sign that it didn't hit a major road block yet.

In MIR lowering, it adds support for slice pattern and anonymous const blocks, and some fixes so that we can evaluate `SmolStr::new_inline` in const eval. With these changes, 57 failed mir body remains.
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.

Valgrind: Invalid reads on empty program.
3 participants