runtime: windows/amd64 crash in -buildmode=c-shared library #59705
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
It is actually a regression compared to
1.19.8
. Where this crash is not happening.What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Cross compiling with
-buildmode=c-shared
fromlinux/amd64
forwindows/amd64
withcgo
enabled.For
cgo
, regularMinGW/GCC
as well asMinGW/LLVM
compiler have been tried.https://github.com/fzwoch/obs-teleport (project's code)
What did you expect to see?
The resulting
.dll
file is a plugin for https://github.com/obsproject/obs-studioI expected that application to successfully load the shared library.
It does so when the plugin is compiled with
go1.19.8 linux/amd64
.What did you see instead?
Getting the following runtime crash when loading the library in OBS Studio.
Unfortunately no more details. I have no particular good knowledge on how to produce proper debug versions/stack traces with MSVC.
Only got a stack trace with three frames in it:
The text was updated successfully, but these errors were encountered: