I’d recommend building both the plugin and pluginval with address sanitizer enabled, and then running pluginval under a debugger. In my experience, address sanitizer is easier to use on macOS, so assuming you’re building for macOS too, I’d test there first just in case. It’s possible that the same undefined behaviour is present in both macOS and Windows builds, but only causes a hard crash on Windows.
