Fix for #3789, segfault in _tri #3797
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Candidate fix for issue #3789. Segfaults were occurring when travis was running
test_tritools
, but only under python 3. This is an esoteric one - my local tests all ran fine under python 3 with both old and new gcc and numpy, so I could only debug by pushing candidate fixes to my github mpl repository and running travis on them there. That's a new form of remote debugging for me.The problem occurs accessing const/non-const boolean arrays wrapped in the new numpy::array_view classes. It shouldn't occur, but evidently some combination of hardware, gcc and python versions behave differently.
I will need to go through the travis logs with a fine toothcomb before this is merged.
@jenshnielsen: Thanks for reporting this.