Libtorch Segmentation Fault when running torch::jit::load [BUG]

Potential Bug, I am desperate for some help with this.

I have run into the exact issue linked above.

My reproducable example:

  • Redhat 7.9
  • Matlab 2020a
  • libtorch 1.7.1

I create a .so which has a single function inside, all this function does is call torch::jit::load. Matlab loads in the .so through calllib(), when the .so function is called and torch::jit::load is invoked a segmentation fault will result and everything will crash in the exact way that has been linked. It seems that this is an open bug with several other individuals facing this same problem. Could a staff member step in to take a look at this?