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 v3.0.2 milestone Apr 6, 2018
@jsquyres jsquyres requested a review from rhc54 April 6, 2018 17:12
@bwbarrett bwbarrett merged commit 626b209 into open-mpi:v3.0.x Apr 6, 2018
@jsquyres jsquyres deleted the pr/v3.0.x/jobstepid-parsing-fix branch December 7, 2021 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants