You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "tqchen (via GitHub)" <gi...@apache.org> on 2025/06/07 21:01:26 UTC

[PR] [FFI] Enhance FFI Object exception safety during init [tvm]

tqchen opened a new pull request, #18050:
URL: https://github.com/apache/tvm/pull/18050

   This PR enhances the exception safety of FFI Object during init. Specifically, when an error is thrown during init before __init_by_constructor chandle can be in a undefined state. Additionally, tools like pytest may try to call repr to get a string repr the object, causing segfault.
   
   This PR fixes the issue by always first initialize chandle to NULL and provide chandle=None special handling so pytest can be happy in such cases.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FFI] Enhance FFI Object exception safety during init [tvm]

Posted by "spectrometerHBH (via GitHub)" <gi...@apache.org>.
spectrometerHBH merged PR #18050:
URL: https://github.com/apache/tvm/pull/18050


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org