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
+30.5k Golang : Copy directory - including sub-directories and files
+11.9k Golang : Increment string example
+9.7k Golang : Sieve of Eratosthenes algorithm
+13.1k Golang : ROT47 (Caesar cipher by 47 characters) example
+10.1k Golang : Find age or leap age from date of birth example
+28.8k Golang : Remove characters from string example
+6.9k Golang : Get all countries phone codes
+6.6k Golang : Shuffle strings array
+7.3k Golang : How to check variable or object type during runtime?
+7k Golang : Append and add item in slice
+4.1k Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version
+17.6k Golang : Get host name or domain name from IP address