I get a crash on MSVC with a program that loads Qt libraries dynamically when loading a shared library plugin (created via Boost.DLL). The crash comes at program end (very late), after most threads have already ended. It seems to come from somewhere inside Qt6Cored.dll, and have something to do with QMetaTypeFunctionRegistry. I do indeed use QMetaType with Q_DECLARE_METATYPE and qRegisterMetaType to register a number of custom types, like std::string and a few std::shared_ptr, so maybe this is related
The compiler I use to build Qt is MSVC 2019, v19.10.1. The compiler I use for my other libraries and projects (on top of Qt) is ClangCl 12.0.0 from LLVM upstream, in combination with MSVC 2019, v19.10.1.
The crash stops in the following line:
Here is the stack trace as far as I could get it from Visual Studio: