Skip to content

Conversation

@jsquyres
Copy link
Member

@jsquyres jsquyres commented Apr 6, 2018

The strtoul function returns the pointer to the first non-digit character, which is a '.' in this case. Calling strtoul at that point will always yield a zero - you have to move past it to get the remaining number

Thanks to Greg Lee for the detailed analysis of the problem.

Signed-off-by: Ralph Castain rhc@open-mpi.org
(cherry picked from commit cd52ccd)

Master PR: #5010

The strtoul function returns the pointer to the first non-digit character, which is a '.' in this case. Calling strtoul at that point will always yield a zero - you have to move past it to get the remaining number

Thanks to Greg Lee for the detailed analysis of the problem.

Signed-off-by: Ralph Castain <rhc@open-mpi.org>
(cherry picked from commit cd52ccd)
@jsquyres jsquyres added the bug label Apr 6, 2018
@jsquyres jsquyres added this to the v2.1.4 milestone Apr 6, 2018
@jsquyres jsquyres requested a review from rhc54 April 6, 2018 17:12
@jsquyres
Copy link
Member Author

jsquyres commented Apr 7, 2018

@hppritcha Good to go.

@hppritcha hppritcha merged commit e247acc into open-mpi:v2.x Apr 10, 2018
@jsquyres jsquyres deleted the pr/v2.x/jobstepid-parsing-fix branch August 2, 2018 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants