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

Occasional "write error" when writing to pipe #741

Open
ko1nksm opened this issue Apr 5, 2024 · 0 comments
Open

Occasional "write error" when writing to pipe #741

ko1nksm opened this issue Apr 5, 2024 · 0 comments
Labels
bug Something is not working

Comments

@ko1nksm
Copy link

ko1nksm commented Apr 5, 2024

It does not occur every time, and seems to occur only on Linux.

Ubuntu 22.04

$ ksh -c 'echo $KSH_VERSION; for i in {1..1000}; do seq 1000000 | head > /dev/null; done'
Version AJM 93u+m/1.1.0-alpha+8f84f4b2 2024-04-05
seq: write error: Connection reset by peer
seq: write error: Connection reset by peer
seq: write error: Broken pipe
seq: write error: Connection reset by peer
seq: write error: Broken pipe

$ ksh -c 'echo $KSH_VERSION; for i in {1..1000}; do yes | head > /dev/null; done'
Version AJM 93u+m/1.1.0-alpha+8f84f4b2 2024-04-05
yes: standard output: Connection reset by peer
yes: standard output: Connection reset by peer
yes: standard output: Connection reset by peer
yes: standard output: Broken pipe
yes: standard output: Connection reset by peer
yes: standard output: Broken pipe
yes: standard output: Connection reset by peer
yes: standard output: Connection reset by peer
 ︙

This issue is reproduced in ksh93u+.

Ubuntu 18.04

$ ksh -c 'echo $KSH_VERSION; for i in {1..1000}; do seq 1000000 | head > /dev/null; done'
Version AJM 93u+ 2012-08-01
seq: write error: Connection reset by peer
seq: write error: Broken pipe
seq: write error: Connection reset by peer
seq: write error: Connection reset by peer
seq: write error: Broken pipe
seq: write error: Connection reset by peer
seq: write error: Connection reset by peer
@McDutchie McDutchie added the bug Something is not working label Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working
Projects
None yet
Development

No branches or pull requests

2 participants