Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
runtime: madvise() failure during scavenging causing crash on darwin arm64 #16850
go version go1.7 darwin/amd64
iOS 9.3.4 arm64 (though I believe this applies to armv7 as well)
Create a gomobile library with
Upon returning to the app, one thread will have crashed via
It seems this was fixed for 386 and amd64 a while ago, but the same treatment never got applied to arm/arm64. I tested a similar fix and it solved my problem, but I'm not that confident in my ability to edit ARM assembly correctly.
Frustratingly, I couldn't replicate the problem with any of the gomobile example apps. I suspect that they are too simple to sufficiently provoke the GC.