Skip to content

Race condition causes segfault in librustuv when using libgreen with stream reading #15231

Closed
@retep998

Description

@retep998

When using libgreen on Windows (verified not to occur with libnative) when I'm reading from a TcpStream and the remote host closes the stream (specifically I'm closing the client by pressing ctrl + c), the server silently terminates with no error messages. It appears SIGSEGV is being called.

The code I was writing which caused this issue can be found here: https://github.com/NoLifeDev/NoLifePony/tree/c26be99492403c734718d37ed91d0546ec190785

Using Windows 8.1 x64 with latest Rust nightly.

Attempts to backtrace using gdb have failed: https://gist.github.com/retep998/e820aea8f019b29660fe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions