github.com/pebbe/zmq4 run出错, build和install正常



 package main

import ( "fmt" _ "github.com/pebbe/zmq4" )

func main() {

fmt.Println("0MQ TEST")
}

Exception 0xc0000005 0x0 0x87522bd 0x560104 PC=0x560104 signal arrived
during cgo execution

github.com/pebbe/zmq4._C2func_zmq_ctx_new(0x0, 0x0, 0x0)
E:/ZLTest/GoTest/lib/src/github.com/pebbe/zmq4/:170 +0x57
github.com/pebbe/zmq4.init·1()
E:/ZLTest/GoTest/lib/src/github.com/pebbe/zmq4/zmq4.go:74 +0x65
github.com/pebbe/zmq4.init()
E:/ZLTest/GoTest/lib/src/github.com/pebbe/zmq4/zmq4.go:1017 +0x282
main.init() E:/ZLTest/GoTest/t1/src/1/main.go:11 +0x3f

goroutine 2 [runnable]: runtime.forcegchelper()
c:/go/src/runtime/proc.go:90 runtime.goexit()
c:/go/src/runtime/asm_386.s:2287 +0x1

goroutine 3 [runnable]: runtime.bgsweep() c:/go/src/runtime/mgc0.go:82
runtime.goexit() c:/go/src/runtime/asm_386.s:2287 +0x1

goroutine 17 [syscall, locked to thread]: runtime.goexit()
c:/go/src/runtime/asm_386.s:2287 +0x1

goroutine 4 [runnable]: runtime.runfinq()
c:/go/src/runtime/malloc.go:712 runtime.goexit()
c:/go/src/runtime/asm_386.s:2287 +0x1 eax 0x4acde0 ebx 0x11ee7f5c ecx
0x57a960 edx 0x11ee7f1c edi 0xe4 esi 0x572c00 ebp 0x572e20 esp
0x18feac eip 0x560104 eflags 0x10202 cs 0x23 fs 0x53 gs 0x2b 错误:
进程退出代码 2.

zeromq liteide go

Shiina氏 10 years, 6 months ago

Your Answer