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

Add except + to cython extern cdef declarations #1001

Merged
merged 2 commits into from
Nov 10, 2022

Conversation

benfred
Copy link
Member

@benfred benfred commented Nov 10, 2022

RAFT is using exceptions for error's, but these weren't always being declared to cython in the cdef extern blocks. This means that if the function were to throw an exception, the python program would core dump on an uncaught c++ exception - instead of translating the exception into a python exception.

RAFT is using exceptions for error's, but these weren't always being
declared to cython in the `cdef extern` blocks. This means that if
the function were to throw an exception, the python program would
core dump on an uncaught c++ exception - instead of translating the
exception into a python exception.
@benfred benfred requested a review from a team as a code owner November 10, 2022 00:25
@benfred benfred added the bug Something isn't working label Nov 10, 2022
@benfred benfred added non-breaking Non-breaking change and removed python labels Nov 10, 2022
Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

Thanks for adding these!

@cjnolet
Copy link
Member

cjnolet commented Nov 10, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 6dc90d5 into rapidsai:branch-22.12 Nov 10, 2022
@benfred benfred deleted the cython_except branch November 14, 2022 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change python
Projects
Development

Successfully merging this pull request may close these issues.

2 participants