Skip to content

Conversation

@rhc54
Copy link
Contributor

@rhc54 rhc54 commented Apr 4, 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.

Fixes #5008

Signed-off-by: Ralph Castain rhc@open-mpi.org

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>
@rhc54
Copy link
Contributor Author

rhc54 commented Apr 4, 2018

@jsquyres @bwbarrett Someone will need to PR this to your release branches.

@rhc54 rhc54 merged commit 3d7910f into open-mpi:master Apr 4, 2018
@rhc54 rhc54 deleted the topic/srun branch April 4, 2018 19:17
@lee218llnl
Copy link

looks good to me

@jsquyres
Copy link
Member

jsquyres commented Apr 6, 2018

@rhc54 Done -- v2.x, v3.0.x, and v3.1.x PR's ref'ed this PR.

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.

3 participants