Fix fatal error: evacuation not done in time problem
Encounter one of the strangest error messages in Go today regarding evacuation. Now, what the heck "evacuation" has to do with programming language ? Apparently it has something to do with locks.
This error message :
"fatal error: evacuation not done in time"
is caused by accessing a map from multiple go-routines and ....map is not thread-safe.
Solution :
Check if the RLock or Lock is in proper place. Might need some fine tuning through trial and error.
p/s : This solution is applicable to the error message fatal error: bad state
as well.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+22.7k Golang : untar or extract tar ball archive example
+6.7k Golang : Humanize and Titleize functions
+23.5k Golang : minus time with Time.Add() or Time.AddDate() functions to calculate past date
+28.5k Golang : Read, Write(Create) and Delete Cookie example
+17.7k Golang : Iterate linked list example
+12.1k Linux : How to install driver for 600Mbps Dual Band Wifi USB Adapter
+6k Golang : Missing Subversion command
+9.7k Golang : Format strings to SEO friendly URL example
+22.9k Golang : Test file read write permission example
+20.8k Golang : Convert PNG transparent background image to JPG or JPEG image
+7.4k Golang : How to stop user from directly running an executable file?
+9.8k Golang : Sort and reverse sort a slice of integers