Skip to content
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

Intermittent deadlock in readbytes(open(echo $text)) on Linux ? #14747

Closed
samoconnor opened this issue Jan 20, 2016 · 2 comments
Closed

Intermittent deadlock in readbytes(open(echo $text)) on Linux ? #14747

samoconnor opened this issue Jan 20, 2016 · 2 comments
Labels
io Involving the I/O subsystem: libuv, read, write, etc.

Comments

@samoconnor
Copy link
Contributor

This test from #14699 runs ok on OSX but sometimes passes and sometimes fails on Linux/Travis.

The test case covers a number of combinations of ::IO subtypes and data sizes.

In this test run the test seems to hang in readbytes in the following case...

io = (text) -> open(`echo -n $text`)[1]
...
text = UTF8String(['A' + i % 52 for i in 1:Base.SZ_UNBUFFERED_IO])
...
@test readbytes(io(text)) == Vector{UInt8}(text)

Has anyone else experianced hangs around PipeEndpoint or open(::Command) ?

@JeffBezanson JeffBezanson added the io Involving the I/O subsystem: libuv, read, write, etc. label Jan 20, 2016
samoconnor added a commit to samoconnor/julia that referenced this issue Jan 21, 2016
samoconnor added a commit to samoconnor/julia that referenced this issue Jan 22, 2016
JuliaLang#14747

clean up (hopefully) redundant celanup() calls in test/read.jl (left over from debugging hanging CI)
samoconnor added a commit to samoconnor/julia that referenced this issue Jan 22, 2016
JuliaLang#14747

clean up (hopefully) redundant celanup() calls in test/read.jl (left over from debugging hanging CI)
@samoconnor
Copy link
Contributor Author

Related ? #15090

@vtjnash
Copy link
Member

vtjnash commented Feb 8, 2018

dup #22832, but we should enable this test before closing

vtjnash added a commit that referenced this issue Feb 5, 2021
vtjnash added a commit that referenced this issue Apr 2, 2021
@vtjnash vtjnash closed this as completed in 842b802 Jun 7, 2021
shirodkara pushed a commit to shirodkara/julia that referenced this issue Jun 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this issue Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io Involving the I/O subsystem: libuv, read, write, etc.
Projects
None yet
Development

No branches or pull requests

3 participants