cchung100m commented on issue #18655:
URL: https://github.com/apache/tvm/issues/18655#issuecomment-4483840839

   Hi @tinywisdom 
   
   Thanks for the report, I checked the current main branch, and this specific 
crash path should no longer occur.
   The root cause was likely LLVM symbol collision during dynamic 
loading(global symbol namespace pollution).
   main branch now isolates TVM runtime and compiler loading:
   - `libtvm_runtime` is loaded with `RTLD_GLOBAL`(runtime symbols remain 
globally visible as needed).
   - `libtvm_compiler` (which carries LLVM-dependent compiler code) is loaded 
with `RTLD_LOCAL` (compiler/LLVM internals do not leak globally).
   
   So when another package later loads its own LLVM-related stack(via 
`dlopen`), it is much less likely to collide with TVM's LLVM symbols.


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

Reply via email to