-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible bugfix: Use insert not emplace fixes nvhpc + gcc9
- Loading branch information
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4117492
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Weird, my understanding is that either should be fine in that case.
4117492
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, this just fixes the segfault though with GCC 9 and nvhpc as the host compiler.
From the time I was originally debugging this, I think there's potentially some UB related to the use of
shared_from_this
but i'm a long way from being confident about it. I don't think I managed to reproduce it with a MWE though / ran out of time.The pushes yesterday were just cleaning up the commits (and blocking swig building from source via nvhpc) rather than any new dev.
4117492
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah DW, I just spotted all the emails about the individual commits in my inbox this morning and a few piqued my interest so had a look.