Hangs when `collect`ing a `Vec<OsString>` (+allocator -tls)
Created by: japaric
extern crate ralloc;
use std::ffi::OsString;
use std::os::unix::ffi::OsStringExt;
fn main() {
let bytes = vec![b"Hello\0".to_vec(),
b"world\0".to_vec()];
let v: Vec<OsString> = bytes.into_iter()
.map(|v| OsStringExt::from_vec(v))
.collect();
}
With
[dependencies.ralloc]
default-features = false
features = [
"allocator",
]
git = "https://github.com/redox-os/ralloc"
$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.0 secs
Running `target/debug/hello`
# hangs here
$ rustc -Vv
rustc 1.16.0-nightly (a52da95ce 2017-01-20)
binary: rustc
commit-hash: a52da95ced667fe8ff490f73c0b041a4f926c041
commit-date: 2017-01-20
host: x86_64-unknown-linux-gnu
release: 1.16.0-nightly
LLVM version: 3.9