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
+9.7k Golang : Check if user agent is a robot or crawler example
+7k Golang : Dealing with postal or zip code example
+7.5k Golang : How to execute code at certain day, hour and minute?
+9.4k Golang : Detect number of active displays and the display's resolution
+13.3k Golang : Strings comparison
+11.8k Golang : Perform sanity checks on filename example
+11.9k Golang : Split strings into command line arguments
+23k Golang : Get ASCII code from a key press(cross-platform) example
+6.6k Android Studio : Hello World example
+9.9k Golang : Get login name from environment and prompt for password
+6.3k Golang : Totalize or add-up an array or slice example
+12.2k Golang : Search and extract certain XML data example