Martti Malmi 通信

回复:Bitcoind

中本聪 · 2010 年 3 月 2 日

SN-10158 附来源、原文与上下文。

阅读语言

如果你不执行 getinfo,它还会这样吗?

Does it still do it if you didn't do getinfo?

你可以把下面列出的 CreateThread 调用注释掉,然后逐个重新启用,直到它再次出问题。这样我们就知道问题在哪个线程里了。

You could comment out the CreateThreads listed below, then re-enable them one at a time until it does it again. Then we would know which thread the problem is in.

net.cpp 中,// Start threads 下方

net.cpp, under // Start threads

     CreateThread(ThreadIRCSeed, NULL)
     CreateThread(ThreadSocketHandler, NULL, true)
     CreateThread(ThreadOpenConnections, NULL)
     CreateThread(ThreadMessageHandler, NULL)
     CreateThread(ThreadIRCSeed, NULL)
     CreateThread(ThreadSocketHandler, NULL, true)
     CreateThread(ThreadOpenConnections, NULL)
     CreateThread(ThreadMessageHandler, NULL)

init.cpp:

init.cpp:

     CreateThread(ThreadRPCServer, NULL);
     CreateThread(ThreadRPCServer, NULL);
引用 Martti Malmi 的文字Martti Malmi来源 ↗

发来了。我忘了说崩溃时的错误消息:

Here goes. I forgot to mention the crash error message:

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

引用中本聪此前的文字中本聪来源 ↗

能把 debug.log 发给我吗?

Could you send me the debug.log?

引用 Martti Malmi 的文字Martti Malmi来源 ↗

我试着用 ddd 调试器调试自己编译的 bitcoind,但还没取得多少进展。它总会占满系统的全部内存,最后崩溃。能否请你再次把最新的 64 位 bitcoind 构建发给我,让我看看问题是否出在自己编译的版本上?

I tried debugging my build of bitcoind with ddd debugger, but didn't have much success yet. It always ends up taking all the system's memory and finally crashes. Could you please send me again the latest 64 bit build of bitcoind, so I can see if the problem is about my build?

来源

阅读字号

选择适合你的字号,之后阅读会继续使用。