I'm wrapping CreateProcess.go or CreateThread.go or CreateThreadNative.go in functions as the following snippet shows
func main(){
//Processing
runCreateThread() // or syscall, or createProcess... Just the regular functions to pop calc.exe, completely unchanged!
//More processing
}
It seems that runCreateThread() does the intended functionality of popping calc.exe, but the parent process exits every time right after CreateThread.
What makes this weirder is that I'm not getting any Go-related errors or panics, just a silent exit.
This has been tested with syscall, createProcess, CreateThread and CreateThreadNative