Re: [go-nuts] Does gc hate me?

2019-02-26 Thread yangwuist
Yes, the problem is solved with the help of Tamás Gulácsi , and I'm trying to dig out the reason of my mistake there. Thank you all! On Tuesday, February 26, 2019 at 1:40:40 PM UTC+8, Jan Mercl wrote: > > > On Tue, Feb 26, 20

Re: [go-nuts] Does gc hate me?

2019-02-25 Thread Jan Mercl
On Tue, Feb 26, 2019 at 4:36 AM wrote: Yesterday you showed us an incorrect use of unsafe.Pointers while interacting with C. It might be the same/similar problem. The lines indicated in your post all allocate memory and may trigger GC, yes, but they per se are improbable to crash the process. I t

Re: [go-nuts] Does gc hate me?

2019-02-25 Thread Robert Engels
Are you sure the lib 32/64 matches your Go environment. Also, the previous posters told you what was wrong with the original code. Did you change that? > On Feb 25, 2019, at 9:36 PM, yangwu...@gmail.com wrote: > > Hi all, > > The following unexpected fault address errors are occured occasionall

[go-nuts] Does gc hate me?

2019-02-25 Thread yangwuist
Hi all, The following unexpected fault address errors are occured occasionally. All of them is gcStart relavent, and it works fine when I turn gc off. Feel frustrated and become addicted to runtime.KeepAlive() XD. Please give some clues, thank you! *1. Make slice* code pReceive := make([]cont