Skip to content

v4.0.x: Fix case where debuggers cannot read the MPIR proctable. #8570

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
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

Fixes #8563

bot:notacherrypick

@awlauria awlauria linked an issue Mar 9, 2021 that may be closed by this pull request
@awlauria awlauria changed the title Fix MPIR regression with extern MPIR_proctable. v4.0.x: Fix MPIR regression with extern MPIR_proctable. Mar 9, 2021
@awlauria awlauria force-pushed the mpir_fix branch 2 times, most recently from c3fe27a to 8ecaf9d Compare March 10, 2021 02:13
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)

@awlauria
Copy link
Contributor Author

@jsquyres updated. if that looks good I'll move it to the other release branches (v3.1.x/v4.1.x)

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>
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.

@louisespellacy-arm Can you confirm that this PR fixes the issue for you?

@hppritcha
Copy link
Member

bot:ompi:retest

@louisespellacy-arm
Copy link

Fixes issue for me when I build pull request.

@awlauria awlauria changed the title v4.0.x: Fix MPIR regression with extern MPIR_proctable. v4.0.x: Fix case where debuggers cannot read the MPIR proctable. Mar 15, 2021
@hppritcha hppritcha merged commit ad5af45 into open-mpi:v4.0.x Mar 15, 2021
@awlauria awlauria deleted the mpir_fix branch March 16, 2021 19:57
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.

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