[Bug 38636] New: Golang programs hang
wine-bugs at winehq.org
wine-bugs at winehq.org
Sun May 24 08:58:13 CDT 2015
https://bugs.winehq.org/show_bug.cgi?id=38636
Bug ID: 38636
Summary: Golang programs hang
Product: Wine
Version: 1.7.38
Hardware: x86-64
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: -unknown
Assignee: wine-bugs at winehq.org
Reporter: michael.tiller at gmail.com
Distribution: ---
Created attachment 51547
--> https://bugs.winehq.org/attachment.cgi?id=51547
Log file with WINEDEBUG=+all
I've tried on several occasions to run Golang compiled programs. I've tried
cross-compiled programs and programs compiled directly under Windows. The
results are the same. Things that involve "asynchronous" interaction
frequently hang.
Here is a dirt simple example:
package main
import (
"log"
"net/http"
)
func main() {
log.Printf("Hello");
resp, err := http.Get("http://www.google.com/")
if err!=nil {
log.Printf("Error: %v", err)
} else {
log.Printf("Response: %v", resp)
}
log.Printf("Done");
}
I'm attaching a log for this program with WINEDEBUG set to +all (since I have
no idea how to filter it down). Since the output was enormous, I truncated it
to the last 1000 lines. If you need more, let me know.
Any suggestions on how to workaround this or help to debug it? I don't know
much about WINE, but I'll gladly help since this issue has really been a thorn
in my side.
If you want to build the executables under Linux, I posted a short guide to
making this work at:
https://groups.google.com/forum/#!searchin/golang-nuts/tiller/golang-nuts/AlQvxD7wv30/dNNDUuSyTgoJ
I set the following environment variables before compiling:
export GOOS=windows;
export GOARCH=386;
export CGO_ENABLED=1;
export CXX=i686-w64-mingw32-g++;
export CC=i686-w64-mingw32-gcc
I hope I covered everything.
Thanks.
--
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.
More information about the wine-bugs
mailing list