处理来自 Firefox 和 Google Chrome 的故障转储
我正在为 Firefox 和 Google Chrome(Windows、Linux 和 Mac)开发跨平台 NPAPI+XPCOM 扩展。我想知道是否有人可以启发我处理组件崩溃的最佳实践。
据我了解,目前 Mozilla 的崩溃报告器向 Mozilla Dev 提交创建的小型转储和崩溃报告。我尝试阻止 Firefox 的 SIGSEV 并在插件代码中创建我自己的核心。虽然这很好用,但我确信我不应该这样做。
而且 Google Chrome 似乎甚至没有创建任何核心转储!有什么建议吗?
I'm developing a cross-platform NPAPI+XPCOM extension for Firefox and Google Chrome (Windows, Linux and Mac). I was wondering if anyone could enlighten me on the best practices of handling component crashes.
As I understand it, currently Mozilla's Crash Reporter submits mini-dumps and crash reports created to Mozilla Dev. I experimented with blocking SIGSEV to Firefox and creating my own core in the plugin code. Although that works just fine, I'm sure I'm not supposed to do that.
And Google Chrome doesn't even seem to create any core dumps! Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Firefox 崩溃报告数据库是公开可搜索的,因此您不必自己进行处理。如果你问得好(即证明你是插件作者),我相信他们甚至会给你插件崩溃的小型转储。
The firefox crash report database is publicly searchable, so you don't have to do your own handling. If you ask nicely (i.e. prove you're the plugin author) I'm sure they'll even give you the minidumps from your plugin's crashes.
这已经太晚了,但是,是的,不要这样做。你最终会发现很多不只是你的插件的东西,并且你会搞砸我们的崩溃统计数据。您应该能够在我们的崩溃报告网站中找到您的插件崩溃情况。如果您需要更好的报告,您可以向我们提交错误,我们应该能够为您提供帮助。
This is awfully late, but yeah, don't do that. You will wind up catching a lot of things that aren't just your plugin, and you will screw up our crash stats. You should be able to find your plugin crashes in our crash report site. If you need better reporting, you can file a bug on us and we should be able to help you.