使用Mongodb导入时出现问题:致命错误:MSpanList_Insert

I'm running into a fatal error when I'm trying to import using Mongodb 3.3.9. My script has worked before, but when I upgraded my Mac os to Sierra, I'm running into what looks like a Go language problem.

Error received :

fatal error: MSpanList_Insert

runtime stack: runtime.MSpanList_Insert(0x491d30, 0x54daf0) /usr/local/go/src/runtime/mheap.c:692 +0x8f runtime.MHeap_Alloc(0x491cc0, 0x2, 0x10000000026, 0xdbc9) /usr/local/go/src/runtime/mheap.c:240 +0x66 runtime.MCentral_CacheSpan(0x49b0b8, 0x34872) /usr/local/go/src/runtime/mcentral.c:85 +0x167 runtime.MCache_Refill(0x527c20, 0xc200000026, 0x5550b8) /usr/local/go/src/runtime/mcache.c:90 +0xa0

Others have noted a similar problem that was supposed to be resolved in an earlier version (mongorestore random crash (fatal error)), but my problem persists.

As the comments suggested, it's solved reinstalling mongo. If you install it using brew execute: brew uninstall mongo.

If you just followed the steps in their tutorial, just delete the executable. If you don't know how, follow this:

which mongo
#now you have a path
rm -rf yourMongoPath

sudo launchctl unload /System/Library/LaunchDaemons/org.ntp.ntpd.plist

worked for me