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

deadlocks can happen in IPC::Open3 #100

Open
aeruder opened this issue May 25, 2018 · 4 comments
Open

deadlocks can happen in IPC::Open3 #100

aeruder opened this issue May 25, 2018 · 4 comments

Comments

@aeruder
Copy link

aeruder commented May 25, 2018

This is largely system dependent, but because we write stdin before reading stdout/stderr in Git::Wrapper::RUN and read stdout before stderr, we can end up with deadlocks when pipe buffers fill up and we are blocked on another descriptor. Solving this with Open3 gets pretty icky with select() but there are several alternative modules to help with this.

@genehack
Copy link
Owner

Do you have a test case that reliably reproduces this?

@aeruder
Copy link
Author

aeruder commented May 31, 2018

I'll put something together.

@aeruder
Copy link
Author

aeruder commented Jun 16, 2018

@genehack -- got a test worked out and pull request to fix the issue made.

@aeruder
Copy link
Author

aeruder commented Jul 11, 2018

Just to clarify - we are regularly hitting this deadlock with git fetch --tags when there's 15 or so tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants