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

opal: Segfault avoidence in class and mca/btl/ofi #10466

Conversation

joshfisher-cornelisnetworks
Copy link
Contributor

Fixed a loop causing segfaults in opal_object.h and fixed goto fail
block to check for NULL before potential dereference as we go there
for NULL in what we dereference

Signed-off-by: Josh Fisher [email protected]

Fixed a loop causing segfaults in opal_object.h and fixed goto fail
block to check for NULL before potential dereference as we go there
for NULL in what we dereference

Signed-off-by: Josh Fisher <[email protected]>
@ompiteam-bot
Copy link

Can one of the admins verify this patch?

@joshfisher-cornelisnetworks
Copy link
Contributor Author

refers to #10370

@jsquyres jsquyres requested review from bwbarrett and hppritcha June 10, 2022 19:33
@jsquyres
Copy link
Member

ok to test

@ibm-ompi
Copy link

The IBM CI (GNU/Scale) build failed! Please review the log, linked below.

Gist: https://gist.github.com/26548c94bf5feedcb59c28466652fc15

@ibm-ompi
Copy link

The IBM CI (XL) build failed! Please review the log, linked below.

Gist: https://gist.github.com/e30e7d3f3c8a8ab3c7cd48513150d654

@joshfisher-cornelisnetworks
Copy link
Contributor Author

Looks like I have some more work to do here, let me keep working on this.

@ibm-ompi
Copy link

The IBM CI (PGI) build failed! Please review the log, linked below.

Gist: https://gist.github.com/3e5d7ae58474e5874cbeea704cac8078

@@ -468,7 +468,7 @@ static inline void opal_obj_run_destructors(opal_object_t *object)
assert(NULL != object->obj_class);

cls_destruct = object->obj_class->cls_destruct_array;
while (NULL != *cls_destruct) {
while (NULL != cls_destruct) {
Copy link
Member

Choose a reason for hiding this comment

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

How it is possible to have a zero-level class hierarchy for any object other than opal_class_t ? It looks as if you are trying to free a class that was not yet initialized.

@jsquyres
Copy link
Member

Github pro tip: You don't need to close a PR to modify it.

@joshfisher-cornelisnetworks
Copy link
Contributor Author

Yeah, I wasn't sure how you guys do it and was hoping to not waste anyone's time on things that definitely won't work.

@bosilca
Copy link
Member

bosilca commented Jun 10, 2022

Create the PR as draft, and keep it that way until completion. You can still request reviews and have discussions in the PR, but it will not be merged until you get it out of draft mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants