Navigation Menu

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

GTMScriptRunner: run:standardError: deadlocks with full error pipe #25

Closed
GoogleCodeExporter opened this issue Apr 21, 2015 · 9 comments

Comments

@GoogleCodeExporter
Copy link

When GTMScriptRunner is used to call a script which generates a lot of output 
in stderr, the 
run:standardError: method deadlocks because the [fromTask readDataToEndOfFile] 
waits for the 
script to terminate and the script waits for the runner to collect from the 
full stderr pipe.

Original issue reported on code.google.com by frank.il...@googlemail.com on 27 May 2009 at 8:26

@GoogleCodeExporter
Copy link
Author

not yet fixed, but I'm adding a unittest that can be used to work on this and 
that will help make sure we don't 
regress once it's fixed.

Original comment by thoma...@gmail.com on 3 Jun 2009 at 5:07

@GoogleCodeExporter
Copy link
Author

Just a note that this issue causes an annoying bug in the CoverStory app:
https://code.google.com/p/coverstory/issues/detail?id=21

Original comment by dlre...@gmail.com on 19 Feb 2013 at 11:00

@GoogleCodeExporter
Copy link
Author

I believe I've got a fix for this. The solution is to keep both pipes (stdout 
and stderr) empty. To do that we needed a non-blocking way to check for 
available data. I've attached a patch that does this.

Original comment by dlre...@gmail.com on 20 Feb 2013 at 6:33

Attachments:

@GoogleCodeExporter
Copy link
Author

dlreese - Have you filled out 
https://code.google.com/p/google-toolbox-for-mac/wiki/BecomingAContributor so 
we can take a look at the patch?

Original comment by thoma...@gmail.com on 21 Feb 2013 at 3:24

@GoogleCodeExporter
Copy link
Author

I have now. :) Sorry about the delay. I didn't realize there was an official 
form to submit.

Original comment by dlre...@gmail.com on 21 Feb 2013 at 4:21

@GoogleCodeExporter
Copy link
Author

The solution in comment #3 by dlreese worked for me.
Project member please fix this and release new version of CoverStory ASAP.

Original comment by naveen.s...@gmail.com on 8 Mar 2013 at 10:51

@GoogleCodeExporter
Copy link
Author

Original comment by dmaclach on 11 Jul 2013 at 5:44

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Patch applied. Thank you dlreese, and apologies for the delay.

Original comment by dmaclach on 12 Jul 2013 at 4:56

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Thanks! :)

Original comment by dlre...@gmail.com on 12 Jul 2013 at 7:41

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

No branches or pull requests

1 participant