Help needed to identify golang fork / memory corruption issue on FreeBSD
Steven Hartland
killing at multiplay.co.uk
Tue Dec 6 12:31:20 UTC 2016
Hi guys I'm trying to help identify / fix an issue with golang where by
fork results in memory corruption.
Details of the issue can be found here:
https://github.com/golang/go/issues/15658
In summary when a fork is done in golang is has a chance of causing
memory corruption in the parent resulting in a process crash once detected.
Its believed that this only effects FreeBSD.
This has similarities to other reported issues such as this one which
impacted perl during 10.x:
https://rt.perl.org/Public/Bug/Display.html?id=122199
And more recently the issue with nginx on 11.x:
https://lists.freebsd.org/pipermail/freebsd-stable/2016-September/085540.html
Its possible, some believe likely, that this is a kernel bug around fork
/ vm that golang stresses, but I've not been able to confirm.
I can reproduce the issue at will, takes between 5mins and 1hour using
16 threads, and it definitely seems like an interaction between fork and
other memory operations.
I've tried reproducing the issue in C but also no joy (captured in the bug).
For reference I'm currently testing on 11.0-RELEASE-p3 + kibs PCID fix
(#306350).
Any advice / help would be most appreciated.
Regards
Steve
More information about the freebsd-hackers
mailing list