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
+11.6k Golang : Get absolute path to binary for os.Exec function with exec.LookPath
+9.7k Golang : Generate 403 Forbidden to protect a page or prevent indexing by search engine
+9.1k Golang : Detect number of faces or vehicles in a photo
+10.7k SSL : The certificate is not trusted because no issuer chain was provided
+20.9k Golang : Join arrays or slices example
+6.5k Golang : Trim everything onward after a word
+36.6k Golang : Read a text file and replace certain words
+14k Golang : Basic authentication with .htpasswd file
+18.8k Swift : Convert (cast) Int to int32 or Uint32
+5.5k Golang : Join lines with certain suffix symbol example
+13.8k Golang : Normalize unicode strings for comparison purpose
+9.9k Golang : Command line file upload program to server example