-
Notifications
You must be signed in to change notification settings - Fork 233
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
invalid seek in writeStreamItem #3370
Comments
more complete log: https://gist.github.com/dckc/07b7b5cb3cfe4c4d0fafdae819d5b088 |
I experimented with node's
not sure what could cause it. I think the next step, if we can't reproduce it on demand, is to look at the linux kernel sources to see what could possibly cause ESPIPE, and then backtrack from there to figure out how Node's |
Linux kernel sources... Hm... I suggest trying sqlite (#3087 ), even just for transcripts initially, is getting more and more cost-effective. |
It looks like Node's In doing some experiments, it also looks like @FUDCo could you eyeball the |
adding this to the stress-test milestone because corruption would be pretty bad |
The error in question happens when you attempt to perform a seek on a pipe, which obviously doesn't work. The mystery is how the stream store could end up holding an fd to a pipe, since it only acquires fds by calling |
Addendum: I wrote the above before I saw @warner's prior comment. |
(side note, if we could hold onto stream objects instead of raw FD integers, this wouldn't be a problem, but IIRC we didn't find any good |
Reading the docs more closely: it seems In any event, I don't see how the error in question could possibly happen, because I don't see how one could end up wired to a pipe. There may be a point of difference between Darwin and Linux, in that, contra Brian's experience, if I try an |
@warner to take 5 minute pass and kick out from stress test milestone |
@FUDCo it seems unlikely, but what if In any case, I'm not seeing any obvious ways to write to a closed file either, so I'm ok kicking this out of the stress-test milestone. Hopefully nobody will find a way to trigger it in the next week. |
Given that I can't reproduce it, go ahead and close it until/unless it shows up again? |
This won't reproduce because you replaced the stream file with Sqlite. |
ok, so we actually fixed it, then. |
Describe the bug
I ran across this while testing snapshots
To Reproduce
IOU
Expected behavior
A clear and concise description of what you expected to happen.
Platform Environment
I ran into this while on a branch for #2848 : 601ef07; I haven't verified that this happens on master, though all the problematic code seems to be on master.)
cc @warner
The text was updated successfully, but these errors were encountered: