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

readbytes stops prematurely #10282

Closed
denizyuret opened this issue Feb 22, 2015 · 5 comments
Closed

readbytes stops prematurely #10282

denizyuret opened this issue Feb 22, 2015 · 5 comments
Labels
io Involving the I/O subsystem: libuv, read, write, etc.

Comments

@denizyuret
Copy link
Contributor

I cannot get the following command the complete:

a=readbytes(`wget -O- http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz` |> `zcat`)

It works without zcat. It works with smaller files (the file causing the problem above is ~9MB). It works in regular shell outside of Julia. I replicated the behavior on v0.3, v0.4 on linux and osx.

@denizyuret
Copy link
Contributor Author

Hm, it doesn't seem to have anything to do with the download or the pipe, I can replicate the same behavior with a local file:

a=readbytes(`zcat train-images-idx3-ubyte.gz`)

Smaller files work, so this is probably hitting an OS limit?

@ihnorton ihnorton added bug Indicates an unexpected problem or unintended behavior io Involving the I/O subsystem: libuv, read, write, etc. and removed bug Indicates an unexpected problem or unintended behavior io Involving the I/O subsystem: libuv, read, write, etc. labels Feb 22, 2015
@ihnorton
Copy link
Member

I can reproduce on linux, but I believe this is a dupe of #8789.

@ihnorton ihnorton added the io Involving the I/O subsystem: libuv, read, write, etc. label Feb 23, 2015
@stevengj
Copy link
Member

i.e. the problem is an OS limitation on writing and reading in the same kernel thread as in #8789? However, in this case the writing is being done by a separate process; can't that be run asynchronously in a different kernel thread?

@jakebolewski
Copy link
Member

closing as a dupe of #8789

@nbaum
Copy link
Contributor

nbaum commented Jun 2, 2015

I think this is actually a dupe of #10655 :)

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

5 participants