Ubuntu 16.04 上的 Firefox 48 在启动几秒钟内崩溃

Ubuntu 16.04 上的 Firefox 48 在启动几秒钟内崩溃

Firefox 48 在启动后不到一分钟就崩溃了。即使没有任何用户输入,它也会崩溃。它向 Mozilla 发送了自己的崩溃报告,而 Ubuntu 并未出现崩溃。

从命令行启动 Firefox 的输出如下:

$ firefox
ARTUR: - SHOW 
console.error: irc-client: 
  Message: Module `sdk/widget` is not found at resource://gre/modules/commonjs/sdk/widget.js
  Stack:
    CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:79:18
@resource://jid0-k46ozsrmazz4545aueo0nxxk0c4-at-jetpack/irc-client/lib/main.js:10:16
CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:79:18
run@resource://gre/modules/commonjs/sdk/addon/runner.js:147:19
startup/</<@resource://gre/modules/commonjs/sdk/addon/runner.js:87:9
Handler.prototype.process@resource://gre/modules/Promise-backend.js:937:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise-backend.js:816:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise-backend.js:750:11

console.error: irc-client: 
  Message: Module `sdk/widget` is not found at resource://gre/modules/commonjs/sdk/widget.js
  Stack:
    CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:79:18
@resource://jid0-k46ozsrmazz4545aueo0nxxk0c4-at-jetpack/irc-client/lib/main.js:10:16
CuddlefishLoader/options<.load@resource://gre/modules/commonjs/sdk/loader/cuddlefish.js:79:18
run@resource://gre/modules/commonjs/sdk/addon/runner.js:147:19
startup/</<@resource://gre/modules/commonjs/sdk/addon/runner.js:87:9
Handler.prototype.process@resource://gre/modules/Promise-backend.js:937:23
this.PromiseWalker.walkerLoop@resource://gre/modules/Promise-backend.js:816:7
this.PromiseWalker.scheduleWalkerLoop/<@resource://gre/modules/Promise-backend.js:750:11

ExceptionHandler::GenerateDump cloned child 6091
ExceptionHandler::SendContinueSignalToChild sent continue signal to child
ExceptionHandler::WaitForContinueSignal waiting for continue signal...

套餐详情firefox

$ apt show firefox
Package: firefox
Version: 48.0+build2-0ubuntu0.16.04.1
Priority: optional
Section: web
Origin: Ubuntu
Maintainer: Ubuntu Mozilla Team <[email protected]>
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 112 MB
Provides: gnome-www-browser, iceweasel, www-browser
Depends: lsb-release, libasound2 (>= 1.0.16), libatk1.0-0 (>= 1.12.4), libc6 (>= 2.17), libcairo-gobject2 (>= 1.10.0), libcairo2 (>= 1.10.0), libdbus-1-3 (>= 1.9.14), libdbus-glib-1-2 (>= 0.78), libfontconfig1 (>= 2.11.94), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.0), libgdk-pixbuf2.0-0 (>= 2.22.0), libglib2.0-0 (>= 2.31.8), libgtk-3-0 (>= 3.4), libgtk2.0-0 (>= 2.14), libpango-1.0-0 (>= 1.22.0), libpangocairo-1.0-0 (>= 1.14.0), libstartup-notification0 (>= 0.8), libstdc++6 (>= 5.2), libx11-6, libxcomposite1 (>= 1:0.3-1), libxdamage1 (>= 1:1.1), libxext6, libxfixes3, libxrender1, libxt6
Recommends: xul-ext-ubufox, libcanberra0, libdbusmenu-glib4, libdbusmenu-gtk4
Suggests: fonts-lyx
Replaces: kubuntu-firefox-installer
Task: ubuntu-desktop, ubuntu-usb, kubuntu-desktop, kubuntu-full, edubuntu-desktop, edubuntu-usb, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop, ubuntu-gnome-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-mate-cloudtop
Xul-Appid: {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
Supported: 5y
Download-Size: 46.2 MB
APT-Manual-Installed: yes
APT-Sources: http://ch.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
Description: Safe and easy web browser from Mozilla
 Firefox delivers safe, easy web browsing. A familiar user interface,
 enhanced security features including protection from online identity theft,
 and integrated search let you get the most out of the web.

N: There is 1 additional record. Please use the '-a' switch to see it

内核:

$ uname -ra
Linux ENG-PAVIL-PC2 4.4.0-36-generic #55-Ubuntu SMP Thu Aug 11 18:01:55 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

关于如何解决这个问题有什么提示吗?

更新一:在安全模式下运行 Firefox 不会发生任何变化,启动几分钟后它仍然会崩溃。使用该--debug标志只会调出 gdb 提示符:

$ firefox --debug
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/firefox/firefox...(no debugging symbols found)...done.
(gdb) 

更新二:我以访客用户身份登录,尝试在该会话中使用 Firefox。那里也经常崩溃。

答案1

消息:sdk/widget在 resource://gre/modules/commonjs/sdk/widget.js 中未找到模块

意味着您有一个不适用于此版本 Firefox 的附加组件或插件。上面的行...

console.error: irc-client: 

指向附加组件或插件。require("sdk/widget");该软件中有一个或类似的东西,但模块“widget”不存在。

请参阅此 MDN 文章:“widget”在FF38中被删除了,这就是现在应该的样子require("sdk/ui");

  • 可能的修复:清除(这样所有插件也会被删除)ff 48 并从他们的系统中安装 49。我的系统运行正常。

答案2

如果你最终进入 gdb 提示符,请输入跑步然后按 Enter 键,程序就会运行,在某个时候它会崩溃,然后你可以运行BT获取回溯。这就是使用 gdb 进行调试的基础。

相关内容