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
+6.8k Golang : Check from web if Go application is running or not
+5.5k Golang : Embedded or data bundling example
+19k Golang : Secure(TLS) connection between server and client
+8.4k Facebook : Getting the friends list with PHP return JSON format
+21.4k Golang : Test file read write permission example
+7.5k Golang : How to join strings?
+17.7k Golang : Read input from console line
+12.7k Golang : Get current time
+18.8k Golang : Read directory content with os.Open
+15k Golang :Trim white spaces from a string
+7.6k Golang : Convert(cast) []byte to io.Reader type
+10.1k Golang : Find age or leap age from date of birth example