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

huangapple go评论100阅读模式
英文:

Problems importing with Mongodb: fatal error: MSpanList_Insert

问题

我在尝试使用Mongodb 3.3.9导入时遇到了致命错误。我的脚本之前是可以工作的,但是当我升级我的Mac OS到Sierra后,我遇到了一个看起来像是Go语言的问题。

收到的错误信息:

致命错误:MSpanList_Insert

运行时堆栈: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

其他人也注意到了一个类似的问题,据说在早期版本中已经解决了(https://stackoverflow.com/questions/39719882/mongorestore-random-crash-fatal-error/39733084),但我的问题仍然存在。

英文:

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 (https://stackoverflow.com/questions/39719882/mongorestore-random-crash-fatal-error/39733084), but my problem persists.

答案1

得分: 1

根据评论的建议,重新安装MongoDB可以解决问题。如果你使用brew安装了MongoDB,执行以下命令:brew uninstall mongo

如果你只是按照他们的教程进行了安装,请删除可执行文件。如果你不知道如何删除,请按照以下步骤进行操作:

which mongo
#现在你会得到一个路径
rm -rf 你的Mongo路径
英文:

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

答案2

得分: 0

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

对我来说有效。

英文:

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

worked for me

huangapple
  • 本文由 发表于 2017年3月25日 03:38:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/43007831.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定