回复:Bitcoind

中本聪SN-10160
阅读完整通信正文 · Martti Malmi · 2010-03-03 · 回复:Bitcoind
相关通信Martti Malmi→ 中本聪原文来源 ↗原信文本(含旧引文) ↗

已附上 debug.log。

debug.log attached

问题在 RecvUntil 中,但我还是看不出它哪里有错。我唯一能想到的,是套接字可能在接收大量不断涌入的字符。

It's in RecvUntil, but I still can't see anything wrong with it. The only thing I can think of is if the socket is receiving a spew of characters.

试试这个 irc.cpp。debug.log 可能会迅速增长,做好终止程序的准备。

Try this irc.cpp. debug.log may grow rapidly so be ready to kill it.

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

附上 debug.log

debug.log attached

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

这样就把范围缩小了很多。debug.log 中没有打印任何 IRC 活动,所以我猜它应该还没执行完 RecvUntil。粗看没有发现明显问题。我想问题只能出在 ConnectSocket 或 RecvUntil 中。

That narrows it down a lot. It didn't print any IRC activity in debug.log, so I guess it couldn't have gotten past the RecvUntil. Eyeballing it I don't see anything obvious. I guess it would have to be either in ConnectSocket or RecvUntil.

试试附件中的 irc.cpp 和 net.cpp,然后把 debug.log 发给我。

Try it with the attached irc.cpp and net.cpp and send me the debug.log.

或者你可以在 gdb 中运行它,逐步执行 ThreadIRCSeed gdb --args bitcoin [switches] b ThreadIRCSeed run step 或者用 u 单步跳过,并退出子程序。

Or you could run it in gdb and step through ThreadIRCSeed gdb --args bitcoin [switches] b ThreadIRCSeed run step or u to step over and up out of routines.

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

不管是否执行 getinfo,我都会遇到这个错误。注释掉 ThreadIRCSeed 后,问题就解决了。

I get the error regardless of the getinfo. Commenting out ThreadIRCSeed fixed the problem.

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

如果你不执行 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 下方 CreateThread(ThreadIRCSeed, NULL) CreateThread(ThreadSocketHandler, NULL, true) CreateThread(ThreadOpenConnections, NULL) CreateThread(ThreadMessageHandler, NULL)

net.cpp, under // Start threads CreateThread(ThreadIRCSeed, NULL) CreateThread(ThreadSocketHandler, NULL, true) CreateThread(ThreadOpenConnections, NULL) CreateThread(ThreadMessageHandler, NULL)

init.cpp: CreateThread(ThreadRPCServer, NULL);

init.cpp: 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?

译文校对、修订与纠错

当前版本尚未建立逐条校对状态记录。来源核验、历史审校与当前译文校对是不同事项。

查看历史审校与代表修订 →

译文内容版本:664b29efaba6。用于比对文本,不代表校对等级或更新时间。

准备纠错说明

请填写对应原文、现译文、建议译法和理由。复制后通过你联系本站作者的渠道提交;此处不会自动发送。

来源
英文原标题

Re: Bitcoind

Martti Malmi 通信 · 收件人公开存档 ↗ 下载英文正文 COPA v. Wright Trial Exhibits ↗ 原始通信编号 #182 · 阅读完整往来 ↗ 记录编号 SN-10160

阅读字号

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