[go-nuts] How can I read bytes from C.Array(three levels) by using Cgo

2016-12-08 Thread Wanghb Wang
my C code Array for example: const uint8_t** kPacketMaskRandomTbl[48] = { kPacketMaskRandom1, kPacketMaskRandom2, kPacketMaskRandom3, . }; const uint8_t* kPacketMaskRandom1[1] = { kMaskRandom1_1 }; const uint8_t kMaskRandom1_1[2] = { 0x80, 0x00 }; . I want to read bytes from kP

Re: [go-nuts] fatal error:malloc deadlock

2016-09-19 Thread Wanghb Wang
new issue address is https://github.com/golang/go/issues/17165 在 2016年9月20日星期二 UTC+8下午12:04:09,Ian Lance Taylor写道: > > On Mon, Sep 19, 2016 at 6:34 PM, Wanghb Wang > wrote: > > > > > > 在 2016年9月20日星期二 UTC+8上午3:41:09,Ian Lance Taylor写道: > >> > >>

[go-nuts] Re: fatal error:malloc deadlock

2016-09-19 Thread Wanghb Wang
> > my dll is compile by visual studio 2015 on windows10 > If you think this is safe , you can rename the attachment test001DLL as test0001.dll, or you can find code from -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from t

Re: [go-nuts] fatal error:malloc deadlock

2016-09-19 Thread Wanghb Wang
在 2016年9月20日星期二 UTC+8上午3:41:09,Ian Lance Taylor写道: > > On Mon, Sep 19, 2016 at 8:34 AM, Wanghb Wang > wrote: > > > > when I use stattcpupprof in my program, I got fatal error malloc > deadlock. > > delete the cpu pprof, the program run well. > >

[go-nuts] fatal error:malloc deadlock

2016-09-19 Thread Wanghb Wang
when I use stattcpupprof in my program, I got fatal error malloc deadlock. delete the cpu pprof, the program run well. my question is : Does startcpuprof infect the malloc or resulting OOM Problem this is my panic stack trace: fatal error: malloc deadlock goroutine 17 [running, locked to threa

[go-nuts] Re: C.dll callback golang func will stuck

2016-09-09 Thread Wanghb Wang
在 2016年9月10日星期六 UTC+8上午5:01:14,James Bardin写道: > > You have a busy loop in main. Use another method to block, like a read in > stdin, wait for a signal, etc. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and s

[go-nuts] C.dll callback golang func will stuck

2016-09-09 Thread Wanghb Wang
when I use C.dll call golang func, the programm will stuck. My golang code is : import ( "C" "fmt" "syscall" "unsafe" ) var times int func main() { cbStr := syscall.NewCallback(goCbStr) dll, error := syscall.LoadDLL("test0001.dll") fmt.Println(dll) var