Skip to content
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

v3.1.x: Fix case where debuggers cannot read the MPIR proctable. #8572

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

awlauria
Copy link
Contributor

@awlauria awlauria commented Mar 9, 2021

Make sure the definition of the MPIR_Proctable
is in a header file that is included in the file
orted_mpir_breakpoint.c, which is compiled with -g
and compiled without optimizations.

Otherwise, the debugger (such as gdb) won't know
the complete definition of the proctable, preventing
it from being able to read it.

Since the MPIR_proctable should be accessed from
orted_submit.c and orted_mpir_breakpoint.c, move it
to the mpir_orted.h header file.

See issue: #8563

Signed-off-by: Austen Lauria awlauria@us.ibm.com
(cherry picked from commit a71fbaf)

Fixes #8563

@awlauria awlauria changed the title Fix MPIR regression with extern MPIR_proctable. v3.1.x: Fix MPIR regression with extern MPIR_proctable. Mar 9, 2021
@awlauria awlauria linked an issue Mar 9, 2021 that may be closed by this pull request
Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain (in the commit message) exactly what this change is? I.e., what's the regression, and how does this commit fix it?

orte/orted/orted_submit.c Outdated Show resolved Hide resolved
@awlauria
Copy link
Contributor Author

@jsquyres Updated the commit message.

Copy link
Member

@jsquyres jsquyres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see #8571 (review)

Make sure the definition of the MPIR_Proctable
is in a header file that is included in the file
orted_mpir_breakpoint.c, which is compiled with -g
and compiled without optimizations.

Otherwise, the debugger (such as gdb) won't know
the complete definition of the proctable, preventing
it from being able to read it.

Since the MPIR_proctable should be accessed from
orted_submit.c and orted_mpir_breakpoint.c, move it
to the mpir_orted.h header file.

See issue: open-mpi#8563

Signed-off-by: Austen Lauria <awlauria@us.ibm.com>
(cherry picked from commit a71fbaf)
@awlauria awlauria changed the title v3.1.x: Fix MPIR regression with extern MPIR_proctable. v3.1.x: Fix case where debuggers cannot read the MPIR proctable. Mar 15, 2021
@awlauria
Copy link
Contributor Author

Updated the PR.

@jsquyres jsquyres added this to the v3.1.7 milestone Mar 15, 2021
@jsquyres
Copy link
Member

As usual, note that merging this PR will not cause another 3.1.x release. This fix will be available in the v3.1.x snapshot tarballs: https://www.open-mpi.org/nightly/v3.1.x/

@jsquyres jsquyres merged commit 9aefc70 into open-mpi:v3.1.x Mar 15, 2021
@awlauria awlauria deleted the mpir_v3.1.x branch March 16, 2021 19:57
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.

MPIR_proctable external variable not accessible in gdb in v4.0.6rc
3 participants