Skip to content

v1.10: amd64: save/restore all 64 bits of rbx around cpuid #2682

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

Merged
merged 1 commit into from
Jan 10, 2017

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Jan 7, 2017

This commit fixes a bug in the timer check. When -fPIC is used we need
to save/restore ebx. The code copied from patcher was meant for 32-bit
systems and did not work correctly on 64-bit systems. This commit
updates the save/restore to use rbx instead of ebx.

Fixes #2678

Signed-off-by: Nathan Hjelm [email protected]
(cherry picked from commit 5b70ae3)
Signed-off-by: Nathan Hjelm [email protected]

This commit fixes a bug in the timer check. When -fPIC is used we need
to save/restore ebx. The code copied from patcher was meant for 32-bit
systems and did not work correctly on 64-bit systems. This commit
updates the save/restore to use rbx instead of ebx.

Fixes open-mpi#2678

Signed-off-by: Nathan Hjelm <[email protected]>
(cherry picked from commit 5b70ae3)
Signed-off-by: Nathan Hjelm <[email protected]>
@hjelmn hjelmn added the bug label Jan 7, 2017
@hjelmn hjelmn added this to the v1.10.6 milestone Jan 7, 2017
@hjelmn hjelmn requested a review from hppritcha January 7, 2017 03:11
@hjelmn
Copy link
Member Author

hjelmn commented Jan 7, 2017

@rhc54 Not sure how I could have missed this. Causes a SEGV when -fPIC is used.

@hppritcha
Copy link
Member

bot:lanl:retest

@jsquyres jsquyres changed the title amd64: save/restore all 64 bits of rbx around cpuid v1.10: amd64: save/restore all 64 bits of rbx around cpuid Jan 9, 2017
@rhc54 rhc54 merged commit 6b695b3 into open-mpi:v1.10 Jan 10, 2017
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