您尚未登录。

#1 2014-09-05 22:39:13

ccdouble
会员
注册时间: 2014-09-05
帖子: 8

[求助]firefox经常打开新标签页后风扇疯转

最初的现象是风扇每隔十几分钟就疯转一段时间、机器烫手,top观察发现是systemd-coredump把CPU几乎占满了。
journalctl显示崩溃程序为[Browser]:

systemd-coredump[1151]: Process 1110 (Browser) of user 1000 dumped core.

用网上搜到的方法暂时关闭systemd-coredump后,依然会有这样的情况风扇疯转的情况出现。

再次用top查看发现Browser把一个线程给跑满了

whatis之类的程序查不到Browser。打算用top观察到PID后迅速执行PS查看完整指令,几次尝试之后看到了完整的执行指令:

/usr/lib/firefox/plugin-container -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 1233 tab

journalctl显示经常Browser崩溃:

kernel: Browser[1252]: segfault at 0 ip 00007fe0fc4ea517 sp 00007fff92595840 error 6 in libxul.so[7fe0fa607000+36bd000]

libxul.so的errno 6没查到是什么错误,原来之前systemd-coredump也都是耗在了这儿

于是我把问题定在了火狐身上。

gdb运行火狐显示的信息:

[paulus@paulus-MSI:~] $ gdb firefox 
GNU gdb (GDB) 7.8
Copyright (C) 2014 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-unknown-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 firefox...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/firefox 
Got object file from memory but can't read symbols: File truncated.
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe58c0700 (LWP 4815)]
[Thread 0x7fffe58c0700 (LWP 4815) exited]

(process:4811): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
[Inferior 1 (process 4811) exited normally]
(gdb) c
The program is not being run.

这个时候gdb退出火狐依然正在运行完全没有被影响,而且这时候只是运行起火狐,我还没有在火狐上进行任何操作。
或者是我gdb用错了?


接下来我不知道要怎么继续了。各位有什么建议吗?

离线

#2 2014-09-05 22:45:13

ccdouble
会员
注册时间: 2014-09-05
帖子: 8

Re: [求助]firefox经常打开新标签页后风扇疯转

桌面运行的是cinnamon。
firefox附加组件显示有三个扩展:网页版微信、DownThemAll、AutoProxy,六个插件:Divx Web Player、Java Plug-in、QuickTime Plug-in、Shockwave flash、VLC Multimedia plugin、Windows media player plugin。

离线

#3 2014-09-05 23:10:17

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,485
个人网站

Re: [求助]firefox经常打开新标签页后风扇疯转

systemd-coredump gdb 来使用 gdb 检查 core 文件(注意:会比较耗 CPU)。

systemd-coredump 最大的问题就是极其耗 CPU,其次是占磁盘空间。以前我禁用过它,现在不知道怎么禁用了。

离线

#4 2014-09-05 23:45:22

ccdouble
会员
注册时间: 2014-09-05
帖子: 8

Re: [求助]firefox经常打开新标签页后风扇疯转

百合仙子 说:

systemd-coredump gdb 来使用 gdb 检查 core 文件(注意:会比较耗 CPU)。

systemd-coredump 最大的问题就是极其耗 CPU,其次是占磁盘空间。以前我禁用过它,现在不知道怎么禁用了。

我是把/lib/sysctl.d/50-coredump.conf当中的东西都给注释掉了。
因为昨晚我把systemd-coredump给禁了,所以最近的Browser的coredump文件只有昨晚的了

[paulus@paulus-MSI:~] $ coredumpctl gdb Browser
           PID: 4409 (Browser)
           UID: 1000 (paulus)
           GID: 100 (users)
        Signal: 11 (SEGV)
     Timestamp: 四 2014-09-04 22:32:42 CST (1 day 1h ago)
  Command Line: /usr/lib/firefox/plugin-container -greomni /usr/lib/firefox/omni.ja -appomni /usr/lib/firefox/browser/omni.ja -appdir /usr/lib/firefox/browser 1044 tab
    Executable: /usr/lib/firefox/plugin-container
 Control Group: /user.slice/user-1000.slice/session-c2.scope
          Unit: session-c2.scope
         Slice: user-1000.slice
       Session: c2
     Owner UID: 1000 (paulus)
       Boot ID: 5e380111464449a689899c82f0a30aeb
    Machine ID: 8c3151ab7c894b3f81bd6ea9d74cddfd
      Hostname: paulus-MSI
      Coredump: /var/lib/systemd/coredump/core.Browser.1000.5e380111464449a689899c82f0a30aeb.4409.1409841162000000.xz
       Message: Process 4409 (Browser) of user 1000 dumped core.

GNU gdb (GDB) 7.8
Copyright (C) 2014 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-unknown-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/plugin-container...(no debugging symbols found)...done.

warning: core file may not match specified executable file.
[New LWP 4409]
[New LWP 4414]
[New LWP 4423]
[New LWP 4416]
[New LWP 4412]
[New LWP 4410]
[New LWP 4415]
[New LWP 4417]
[New LWP 4413]
[New LWP 4418]
[New LWP 4419]
[New LWP 4424]
[New LWP 4420]
[New LWP 4425]
[New LWP 4411]
[New LWP 4422]

warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/usr/lib/firefox/plugin-container -greomni /usr/lib/firefox/omni.ja -appomni /u'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007feb1c4a6517 in ?? () from /usr/lib/firefox/libxul.so
(gdb) 

离线

#5 2014-09-06 00:40:45

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,485
个人网站

Re: [求助]firefox经常打开新标签页后风扇疯转

在 gdb 提示符里敲 bt 看看调用栈吧。好像只是插件进程崩溃了呢。

离线

#6 2014-09-06 08:08:23

ccdouble
会员
注册时间: 2014-09-05
帖子: 8

Re: [求助]firefox经常打开新标签页后风扇疯转

(gdb) bt
#0  0x00007feb1c4a6517 in ?? () from /usr/lib/firefox/libxul.so
#1  0x00007feb1ca4f1ab in js::RemapAllWrappersForObject(JSContext*, JSObject*, JSObject*) () from /usr/lib/firefox/libxul.so
#2  0x00007feb1ce33757 in ?? () from /usr/lib/firefox/libxul.so
#3  0x00007feb1ccb7f89 in ?? () from /usr/lib/firefox/libxul.so
#4  0x00007feb1c6cc18e in ?? () from /usr/lib/firefox/libxul.so
#5  0x00007feb1c7d4c0b in ?? () from /usr/lib/firefox/libxul.so
#6  0x00007feb1c7d46fc in ?? () from /usr/lib/firefox/libxul.so
#7  0x00007feb1c8ab675 in ?? () from /usr/lib/firefox/libxul.so
#8  0x00007feb1c8ab008 in ?? () from /usr/lib/firefox/libxul.so
#9  0x00007feb1cda7a2b in ?? () from /usr/lib/firefox/libxul.so
#10 0x00007feb1c8abbcb in ?? () from /usr/lib/firefox/libxul.so
#11 0x00007feb1c8abbde in ?? () from /usr/lib/firefox/libxul.so
……
中间一万多条都是0x00007feb1c8abbde in ?? () from /usr/lib/firefox/libxul.so
……
#11614 0x00007feb1c8abbde in ?? () from /usr/lib/firefox/libxul.so
#11615 0x00007feb1c8abbde in ?? () from /usr/lib/firefox/libxul.so
#11616 0x00007feb1c6ccd9c in ?? () from /usr/lib/firefox/libxul.so
#11617 0x00007feb1bae1016 in ?? () from /usr/lib/firefox/libxul.so
#11618 0x00007feb1c73cfa3 in ?? () from /usr/lib/firefox/libxul.so
#11619 0x00007feb1c5f96ce in ?? () from /usr/lib/firefox/libxul.so
#11620 0x00007feb1cda8fe3 in ?? () from /usr/lib/firefox/libxul.so
#11621 0x00007feb1cda89ae in ?? () from /usr/lib/firefox/libxul.so
#11622 0x00007feb1cda80f9 in ?? () from /usr/lib/firefox/libxul.so
#11623 0x00007feb1cda7e0f in ?? () from /usr/lib/firefox/libxul.so
#11624 0x00007feb1b80e94f in ?? () from /usr/lib/firefox/libxul.so
#11625 0x00007feb1b025044 in ?? () from /usr/lib/firefox/libxul.so
#11626 0x00007feb1b0709ef in ?? () from /usr/lib/firefox/libxul.so
#11627 0x00007feb1cc2c65a in ?? () from /usr/lib/firefox/libxul.so
#11628 0x00007feb1cc2c512 in ?? () from /usr/lib/firefox/libxul.so
#11629 0x00007feb1cc28e68 in ?? () from /usr/lib/firefox/libxul.so
#11630 0x00007feb1cc28c37 in ?? () from /usr/lib/firefox/libxul.so
#11631 0x00007feb1aff8913 in ?? () from /usr/lib/firefox/libxul.so
#11632 0x00007feb1cc28b93 in ?? () from /usr/lib/firefox/libxul.so
#11633 0x00007feb1cca201a in ?? () from /usr/lib/firefox/libxul.so
#11634 0x00007feb1c0b5200 in XRE_RunAppShell () from /usr/lib/firefox/libxul.so
#11635 0x00007feb1cc28b93 in ?? () from /usr/lib/firefox/libxul.so
#11636 0x00007feb1c0b579a in XRE_InitChildProcess ()
   from /usr/lib/firefox/libxul.so
#11637 0x000000000040a67b in ?? ()
#11638 0x00007feb19c22000 in __libc_start_main () from /usr/lib/libc.so.6
#11639 0x000000000040dfd2 in _start ()
(gdb)

离线

#7 2014-09-06 10:30:52

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,485
个人网站

Re: [求助]firefox经常打开新标签页后风扇疯转

火狐或者编译器的 bug。要处理这种情况,下一步是编译带调试符号的版本然后再看是崩在哪里了,然后去报告。

你可以试试降级到前一个版本。或者下载官网上提供的预编译版本试试。

离线

#8 2014-09-06 22:58:09

ccdouble
会员
注册时间: 2014-09-05
帖子: 8

Re: [求助]firefox经常打开新标签页后风扇疯转

这个是官网上下载的预编译版本,暂时没有那样的现象出现。

[paulus@paulus-MSI:~/Downloads/firefox] $ gdb firefox
GNU gdb (GDB) 7.8
Copyright (C) 2014 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-unknown-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 firefox...(no debugging symbols found)...done.
(gdb) r
Starting program: /home/paulus/Downloads/firefox/firefox 
Got object file from memory but can't read symbols: File truncated.
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe7e55700 (LWP 24880)]
[Thread 0x7fffe7e55700 (LWP 24880) exited]

(process:24876): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed

(firefox:24876): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised

(firefox:24876): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised

(firefox:24876): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised

(firefox:24876): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised
[New Thread 0x7fffe7e55700 (LWP 24882)]
[New Thread 0x7fffe0675700 (LWP 24883)]
[New Thread 0x7ffff6bda700 (LWP 24884)]
[New Thread 0x7fffe7293700 (LWP 24885)]
[New Thread 0x7fffe0fce700 (LWP 24886)]
[New Thread 0x7fffdf5e8700 (LWP 24887)]
[New Thread 0x7fffdf567700 (LWP 24888)]
[New Thread 0x7fffdf4e6700 (LWP 24889)]
[New Thread 0x7fffdf465700 (LWP 24890)]
[New Thread 0x7fffdf3e4700 (LWP 24891)]
[New Thread 0x7fffde2ff700 (LWP 24892)]
[New Thread 0x7fffdd6ff700 (LWP 24893)]
[New Thread 0x7fffda0b0700 (LWP 24894)]
[New Thread 0x7fffd98af700 (LWP 24895)]
[New Thread 0x7fffd90ae700 (LWP 24896)]
[New Thread 0x7ffff6b59700 (LWP 24897)]
[New Thread 0x7fffd82ff700 (LWP 24898)]
[New Thread 0x7fffd71f3700 (LWP 24899)]
AUP timeline: Entered aup.init()                      	 (first event)
AUP timeline: * calling prefs.init()                  	 (0)
AUP timeline: * calling filterListener.init()         	 (0)
AUP timeline: * calling proxy.init()                  	 (0)
AUP timeline: * calling filterStorage.init()          	 (1)
AUP timeline: * Entered filterStorage.loadFromDisk()  	 (0)
AUP timeline: * * done locating patterns.ini file     	 (0)
AUP timeline: * * done parsing file                   	 (50)
AUP timeline: * * load complete, calling observers    	 (0)
AUP timeline: * filterStorage.loadFromDisk() done     	 (16)
AUP timeline: * calling policy.init()                 	 (0)
AUP timeline: * calling synchronizer.init()           	 (1)
AUP timeline: aup.init() done                         	 (0)
[New Thread 0x7fffd57ff700 (LWP 24900)]
[New Thread 0x7fffd4dff700 (LWP 24901)]
[New Thread 0x7fffd40ff700 (LWP 24902)]
[New Thread 0x7fffd38fe700 (LWP 24903)]
[New Thread 0x7fffd2cff700 (LWP 24904)]
[New Thread 0x7fffd21ff700 (LWP 24905)]
[New Thread 0x7fffd17ff700 (LWP 24906)]
[New Thread 0x7fffd0cff700 (LWP 24907)]
[New Thread 0x7fffd04fe700 (LWP 24908)]
[Thread 0x7fffd38fe700 (LWP 24903) exited]
[Thread 0x7fffd04fe700 (LWP 24908) exited]
[New Thread 0x7fffcdac6700 (LWP 24909)]
[New Thread 0x7fffd38fe700 (LWP 24910)]
[New Thread 0x7fffd04fe700 (LWP 24911)]
[Thread 0x7fffd04fe700 (LWP 24911) exited]
[Thread 0x7fffd0cff700 (LWP 24907) exited]
[New Thread 0x7fffcd0ff700 (LWP 24912)]
[New Thread 0x7fffd04fe700 (LWP 24913)]
[Thread 0x7fffd38fe700 (LWP 24910) exited]
[New Thread 0x7fffd38fe700 (LWP 24914)]
[New Thread 0x7fffd0cff700 (LWP 24915)]
[New Thread 0x7fffcc7ff700 (LWP 24916)]
[Thread 0x7fffcc7ff700 (LWP 24916) exited]
[Thread 0x7fffd38fe700 (LWP 24914) exited]
[Thread 0x7fffd04fe700 (LWP 24913) exited]
[New Thread 0x7fffcc7ff700 (LWP 24917)]
[Thread 0x7fffcc7ff700 (LWP 24917) exited]
[New Thread 0x7fffcc7ff700 (LWP 24918)]
[Thread 0x7fffcc7ff700 (LWP 24918) exited]
[New Thread 0x7fffcc7ff700 (LWP 24919)]
[Thread 0x7fffd0cff700 (LWP 24915) exited]
[New Thread 0x7fffd0cff700 (LWP 24920)]
[Thread 0x7fffcc7ff700 (LWP 24919) exited]
[New Thread 0x7fffcc7ff700 (LWP 24921)]
[Thread 0x7fffd0cff700 (LWP 24920) exited]
[New Thread 0x7fffd0cff700 (LWP 24922)]
[New Thread 0x7fffd38fe700 (LWP 24923)]
[New Thread 0x7fffd04fe700 (LWP 24924)]
[Thread 0x7fffcc7ff700 (LWP 24921) exited]
[New Thread 0x7fffcc7ff700 (LWP 24925)]
[Thread 0x7fffd04fe700 (LWP 24924) exited]
[New Thread 0x7fffd04fe700 (LWP 24926)]
[Thread 0x7fffd90ae700 (LWP 24896) exited]
[New Thread 0x7fffd90ae700 (LWP 24928)]
[New Thread 0x7fffc64ff700 (LWP 24929)]
[New Thread 0x7fffc59ff700 (LWP 24930)]
[New Thread 0x7fffc4eff700 (LWP 24931)]
[New Thread 0x7fffc44ff700 (LWP 24932)]
[New Thread 0x7fffc13ff700 (LWP 24933)]
[New Thread 0x7fffd4ffe700 (LWP 24934)]
[New Thread 0x7fffbb3cb700 (LWP 24935)]
[Thread 0x7fffc13ff700 (LWP 24933) exited]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6b09e08 in ?? ()
(gdb) c
Continuing.
[Thread 0x7fffd40ff700 (LWP 24902) exited]
[New Thread 0x7fffd40ff700 (LWP 24936)]
[New Thread 0x7fffc13ff700 (LWP 24937)]
[New Thread 0x7fffba2ff700 (LWP 24938)]
[New Thread 0x7fffb9afe700 (LWP 24939)]
[New Thread 0x7fffb92fd700 (LWP 24940)]
[New Thread 0x7fffb8afc700 (LWP 24941)]
[New Thread 0x7fffb7eff700 (LWP 24942)]
[New Thread 0x7fffb74ff700 (LWP 24943)]
[New Thread 0x7fffb6cfe700 (LWP 24944)]
[New Thread 0x7fffb64fd700 (LWP 24945)]
[New Thread 0x7fffb5cfc700 (LWP 24946)]
[New Thread 0x7fffb51ff700 (LWP 24947)]
[New Thread 0x7fffb49fe700 (LWP 24948)]
[New Thread 0x7fffb41fd700 (LWP 24949)]
[New Thread 0x7fffb39fc700 (LWP 24950)]

离线

页脚