Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Segfault on ButReader::new #137

Open
@aleksander

Description

This code:

fn main() {
    use std::io::{BufRead, BufReader};
    let buf = vec![0u8; 10];
    let reader = BufReader::new(&buf[..]);
}

segfaults at:

0x0000000000204763 in core::ptr::write<u8> (dst=0x215000 <error: Cannot access memory at address 0x215000>, src=0) at /home/usov/.rustup/toolchains/nightly-2017-04-15-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/libcore/ptr.rs:246
246	    intrinsics::move_val_init(&mut *dst, src)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions