Skip to content

issue-5917 test fails with "dangling pointer was dereferenced" #326

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

Closed
dwrensha opened this issue Sep 2, 2017 · 2 comments
Closed

issue-5917 test fails with "dangling pointer was dereferenced" #326

dwrensha opened this issue Sep 2, 2017 · 2 comments

Comments

@dwrensha
Copy link
Contributor

dwrensha commented Sep 2, 2017

$ rustc --version
rustc 1.22.0-nightly (f861b6ee4 2017-09-01)
$ cargo run --bin miri ~/src/seer/tests/run-pass/issue-5917.rs 
    Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/miri /home/dwrensha/src/seer/tests/run-pass/issue-5917.rs`
error: dangling pointer was dereferenced
  --> /home/dwrensha/src/seer/tests/run-pass/issue-5917.rs:16:5
   |
16 |     assert_eq!(v[0], 5);
   |     ^^^^^^^^^^^^^^^^^^^^
   |
note: inside call to main
  --> /home/dwrensha/src/seer/tests/run-pass/issue-5917.rs:14:1
   |
14 | / pub fn main () {
15 | |     let T(ref v) = STATIC;
16 | |     assert_eq!(v[0], 5);
17 | | }
   | |_^
   = note: this error originates in a macro outside of the current crate

error: aborting due to previous error

thread 'main' panicked at 'Box<Any>', /checkout/src/librustc_errors/lib.rs:525:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.
@oli-obk
Copy link
Contributor

oli-obk commented Sep 2, 2017

Will be fixed by rust-lang/rust#44252

@dwrensha
Copy link
Contributor Author

dwrensha commented Sep 4, 2017

Fixed on the latest nightly.

@dwrensha dwrensha closed this as completed Sep 4, 2017
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

No branches or pull requests

2 participants