Closed CMGS closed 1 year ago
@CMGS I also use an M1 mac, let me run the snippet in my own system as well as a linux system and then get back to you
@CMGS getting the same error as you with -race
flag, its specifically in this line from the golang runtime itself https://github.com/golang/go/blob/master/src/runtime/asm_arm64.s#L1172
The stability issue, in this case, is due to the golang runtime implementation on ARM64 devices not because of haxmap implementation
haha I guess so, because running in linux is ok, that's why I create this issue. hope the next version of golang can fix it.
I update the vendor with the latest main branch and wrote this test code to simulate the situation.
When run go test without -race it shows fine, no errors. But if enable race detection, it will fail like
The test command is (I put this code under the utils pkg)
Not sure what happen, because the this error only shows under GOOS=darwin and GOARCH=arm64 (I use M1 macbook). can pass in linux env(https://github.com/projecteru2/agent/actions/runs/3359505108/jobs/5567595644).
Any ideas?