Skip to content

Conversation

@Lunderberg
Copy link
Contributor

Prior to this commit, attempting to execute the result of sess.get_global_func for a non-existing function name would result in a segfault. While the equivalent tvm.get_global_func can throw an exception when looking up the function, Disco returns a DFunction immediately. This DFunction may resolve to a null pointer, and should be checked in the worker process before calling it.

Prior to this commit, attempting to execute the result of
`sess.get_global_func` for a non-existing function name would result
in a segfault.  While the equivalent `tvm.get_global_func` can throw
an exception when looking up the function, Disco returns a `DFunction`
immediately.  This `DFunction` may resolve to a null pointer, and
should be checked in the worker process before calling it.
@tqchen tqchen merged commit 53f05d8 into apache:main Apr 4, 2024
@Lunderberg Lunderberg deleted the disco_check_before_calling_null_packed_func branch April 4, 2024 21:37
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.

3 participants