Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317895 - Launching an Open MPI job using RSE fails with 'Premature end of file'
Summary: Launching an Open MPI job using RSE fails with 'Premature end of file'
Status: RESOLVED FIXED
Alias: None
Product: PTP
Classification: Tools
Component: RM.Open MPI (show other bugs)
Version: 4.0   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 4.0.1   Edit
Assignee: Greg Watson CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 19:48 EDT by Greg Watson CLA
Modified: 2010-06-24 21:31 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Greg Watson CLA 2010-06-24 19:48:56 EDT
When launching an Open MPI job using a resource manager configured with RSE, the job fails with the message:

	Failed after executing command to launch parallel application.
	Failed to parse output of Open MPI command. Check output for errors.
	Premature end of file.
Comment 1 Greg Watson CLA 2010-06-24 19:49:23 EDT
This appears to be because the InputStream being read by the XML parse is closed prematurely, before the parser has had a chance to read it. The proposed solution is to wait for the host shell process to terminate before closing the input end of the pipe that is used for stdout/stderr. There is some risk with this, as it could presumably wait forever. However the code should only be called when the process output thread is about to terminate.
Comment 2 Greg Watson CLA 2010-06-24 21:31:01 EDT
Committed to 4.0 and HEAD.