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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to