windows 究竟什么是故障桶,它的起因是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6963760/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What exactly is a fault bucket and what causes it?
提问by
A have a Windows application which I've being running flawlessly for years, first on XP and now on Vista, just in the morning I copied the software to another Windows Vista Home 32 bits machine, and it kept crashing the first 20 or 30 times I ran it, but suddenly the problem was solved just like magic, no hardware was touched, no software was touched, no configuration was touched, not even a reboot was executed, it simply stopped crashing form one second to the other. Why... I have no idea.
有一个 Windows 应用程序,我多年来一直在完美运行,首先是在 XP 上,现在是在 Vista 上,就在早上,我将该软件复制到另一台 Windows Vista Home 32 位机器上,并且它在前 20 或 30 次一直崩溃我运行了它,但突然问题就像魔术一样解决了,没有触及硬件,没有触及软件,没有触及配置,甚至没有执行重新启动,它只是在一秒钟内停止崩溃。为什么……我不知道。
When I saw the event log and I found the following message every time the application crashed:
当我看到事件日志并在每次应用程序崩溃时发现以下消息时:
Fault bucket 2550128871, type 1
故障桶 2550128871,类型 1
Event Name: APPCRASH
活动名称:APPCRASH
Response: None
回应:无
Cab Id: 0
驾驶室 ID:0
What does this exactly mean? and more importantly, why it stopped from happening just like magic?
这究竟是什么意思?更重要的是,为什么它会像魔法一样停止发生?
I'm the developer of this application so I'm concerned it may be a bug inside my code... although everything seems to point otherwise.
我是这个应用程序的开发者,所以我担心它可能是我的代码中的一个错误......尽管一切似乎都另有目的。
Any Ideas?
有任何想法吗?
回答by Ana Betts
Windows has code that does a heuristic to determine a "unique" crash and give it its own ID - so that when you have 1000 people hit the same crash (i.e. a crash at the same place, but not necessarily the exact identical offsets depending on the OS/arch), it still has the same ID. If you see the same number repeatedly, it just means that it crashed in an identical place every time.
Windows 有代码可以进行启发式以确定“唯一”崩溃并为其提供自己的 ID - 这样当您有 1000 人遇到相同的崩溃(即在同一个地方崩溃,但不一定完全相同的偏移量取决于OS/arch),它仍然具有相同的 ID。如果你反复看到相同的数字,那只是意味着它每次都在同一个地方坠毁。