Skip to content

Fix #6130 objmode cache segfault - #6141

Merged
sklam merged 9 commits into
numba:masterfrom
sklam:fix/objmode_cache_segfault
Aug 25, 2020
Merged

sklam merged 9 commits into
numba:masterfrom
sklam:fix/objmode_cache_segfault

Conversation

@sklam

@sklam sklam commented Aug 17, 2020

Copy link
Copy Markdown
Member

Fixes #6130

Thanks @juanjgalvez and @stuartarchibald for finding out the source of the problem on the lost env.

The patch makes sure the CompileResult acquires a reference to any referenced Environment objects. Changes to numba/core/compiler.py is the actual fix. The other non-test changes are for better error handling when an NULL pointer is encountered.

@sklam sklam added this to the Numba 0.51.1 milestone Aug 17, 2020

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the patch, great to see this fixed.

Comment thread numba/tests/support.py
Comment thread numba/core/runtime/_nrt_python.c Outdated
Comment thread numba/core/pythonapi.py Outdated
Comment thread numba/core/pythonapi.py Outdated
Comment thread numba/tests/support.py Outdated
Comment thread numba/tests/test_extending.py
Comment thread numba/tests/test_extending.py
Comment thread numba/tests/test_extending.py
@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review and removed 3 - Ready for Review labels Aug 20, 2020
@sklam sklam added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels Aug 20, 2020
Comment thread numba/core/runtime/_nrt_python.c Outdated
Comment thread numba/core/pythonapi.py
@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Aug 21, 2020
@sklam sklam added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels Aug 24, 2020
Comment thread numba/_helperlib.c
@stuartarchibald stuartarchibald added 4 - Waiting on author Waiting for author to respond to review and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author labels Aug 25, 2020
Comment thread numba/core/pythonapi.py
- changed to RuntimeError and fix error message
- added suggested comment
@sklam sklam added 4 - Waiting on reviewer Waiting for reviewer to respond to author and removed 4 - Waiting on author Waiting for author to respond to review labels Aug 25, 2020
Comment thread numba/_helperlib.c Outdated
@sklam

sklam commented Aug 25, 2020

Copy link
Copy Markdown
Member Author

failing due to: #6168

@stuartarchibald

Copy link
Copy Markdown
Contributor

/AzurePipelines run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines successfully started running 1 pipeline(s).

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the fixes!

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge 4 - Waiting on CI Review etc done, waiting for CI to finish and removed 4 - Waiting on reviewer Waiting for reviewer to respond to author 5 - Ready to merge Review and testing done, is ready to merge labels Aug 25, 2020
@sklam sklam added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on CI Review etc done, waiting for CI to finish labels Aug 25, 2020
@sklam

sklam commented Aug 25, 2020

Copy link
Copy Markdown
Member Author

CI passed, marked for merge

@sklam
sklam merged commit 516ec41 into numba:master Aug 25, 2020
@stuartarchibald stuartarchibald mentioned this pull request Aug 26, 2020
21 tasks done
stuartarchibald pushed a commit to stuartarchibald/numba that referenced this pull request Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cache does not work when passing numpy arrays to objmode inside overload

3 participants