Closed
Description
Problem description
Running the tests for a program I’ve written leads to a segfault when compiled by Rust 1.27.0 or 1.27.1:
$ cargo test
Finished dev [unoptimized + debuginfo] target(s) in 0.09s
Running target/debug/deps/diceware-c7f6b180dd3b52c6
running 3 tests
error: process didn't exit successfully: `/***/diceware/target/debug/deps/diceware-c7f6b180dd3b52c6` (signal: 11, SIGSEGV: invalid memory reference)
The tests work well on Rust 1.26.2
, 1.28-beta.10
and today’s nightly. Only the 1.27.x
releases seem impacted by this bug.
Meta
- The crate on which I found the bug: https://github.com/ejpcmac/diceware
$ rustc --version --verbose
rustc 1.27.1 (5f2b325f6 2018-07-07)
binary: rustc
commit-hash: 5f2b325f64ed6caa7179f3e04913db437656ec7e
commit-date: 2018-07-07
host: x86_64-apple-darwin
release: 1.27.1
LLVM version: 6.0
Note that the debug and release binaries seem to work properly. Only the test runner seem to be impacted.