masahi opened a new issue #9362:
URL: https://github.com/apache/tvm/issues/9362


   Apparently, the new PyTorch release crashes with symbols loaded by TVM, so 
the following trivial code crashes with `invalid pointer Aborted (core dumped)` 
upon exit:
   
   ```
   import tvm
   import torch
   ```
   
   We can workaround this by swapping the import order, but as pointed out in 
https://github.com/apache/tvm/issues/9349#issuecomment-950685224 this may not 
always be possible.
   
   Another solution is to remove the use of `RTLD_GLOBAL` in 
https://github.com/apache/tvm/blob/dfe4cebbdadab3d4e6e6ba3951276a51a4ffeaf6/python/tvm/_ffi/base.py#L57
   
   See related issues in other repos that moved away from using `RTLD_GLOBAL`.
   https://github.com/dmlc/dgl/issues/2255
   https://github.com/pytorch/pytorch/pull/28536
   https://github.com/pytorch/pytorch/issues/3059
   
   Is there any particular reason we are using `RTLD_GLOBAL`? @tqchen @areusch 


-- 
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