junrushao commented on issue #264: URL: https://github.com/apache/tvm-ffi/issues/264#issuecomment-3635150579
To conclude this thread, it's not really a bug but a common issue in dynamic library loading. If there's an object being created in a `.so`, and the `.so` file got unloaded, and destructor function of this object will become invalid which leads to a segfault. A common solution to this issue is to introduce a keep-alive mode which never auto-unload a module unless explicitly specified. -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
