Hello community,
I have a problem with loading my model in c++.
Working with Ubuntu 18.04 after a restart this works fine:
module_ = torch::jit::load("my-path");
and I can apply the model without any issues.
But if I kill the program and restart it, I run in a segmentation fault during torch::jit::load().
GDB:

[New Thread 0x7f3e73ff7700 (LWP 8143)]
[New Thread 0x7f3e737f6700 (LWP 8144)]
Thread 1 “Recorder” received signal SIGSEGV, Segmentation fault.
__memmove_avx_unaligned_erms () at …/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:431
431	…/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S: No such file or directory.

watch nvidia-smi looks regular.
I tried to find a way, to unload the model, before killing the program, but so far I found mostly methods which are not longer available in forums, like module.reset();
I am using libtorch 1.8.0 (Stable (1.8.0), Linux, LibTorch, C++/Java, CUDA 10.2) (btw. the latest link of Stable (1.8.1) → Linux → LibTorch → C++/Java → CUDA 10.2 is not working, so I can’t update, see here 1)
I tried a few other versions and updating cuDNN, also the LibTorch CPU version did not change this behavior.
I am grateful for any advice
BR Michael