GNU bug report logs - #35457
26.2; global-auto-revert-mode cause 100% cpu usage

Previous Next

Package: emacs;

Reported by: Johannes Lundberg <johalun0 <at> gmail.com>

Date: Sat, 27 Apr 2019 16:59:02 UTC

Severity: normal

Tags: notabug

Found in version 26.2

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35457 in the body.
You can then email your comments to 35457 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Sat, 27 Apr 2019 16:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Johannes Lundberg <johalun0 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 27 Apr 2019 16:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Johannes Lundberg <johalun0 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Sat, 27 Apr 2019 09:50:54 -0700

Add (global-auto-revert-mode 1) to .emacs.
Start Emacs.
Emacs now using 100% cpu.
truss -p <pid> show that Emacs is doing fstatat(), possibly stuck
endless loop.


In GNU Emacs 26.2 (build 1, amd64-portbld-freebsd13.0, GTK+ Version 3.24.7)
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
'configure --disable-build-details --localstatedir=/var --without-gpm
--with-x --enable-acl --without-cairo --with-dbus --with-gconf
--with-gif --with-gnutls --with-gsettings --with-x-toolkit=gtk3
--with-jpeg --with-json --with-file-notification=kqueue --with-lcms2
--with-m17n-flt --with-imagemagick --with-mailutils --with-modules
--with-sound=oss --with-libotf --with-png --with-toolkit-scroll-bars
--with-rsvg --with-threads --with-tiff --with-xft --with-xim
--with-xml2 --with-xpm --without-xwidgets --x-libraries=/usr/local/lib
--x-includes=/usr/local/include --prefix=/usr/local
--mandir=/usr/local/man --disable-silent-rules
--infodir=/usr/local/share/emacs/info/
--build=amd64-portbld-freebsd13.0 'CFLAGS=-O2 -pipe -fstack-protector
-isystem /usr/local/include -fno-strict-aliasing ' 'CPPFLAGS=-isystem
/usr/local/include' 'LDFLAGS= -fstack-protector -L/usr/local/lib ''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS GLIB
NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LCMS2

Important settings:
value of $LC_ALL: en_US.UTF-8
value of $LC_CTYPE: en_US.UTF-8
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml mml-sec epa derived epg gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils elec-pair finder-inf tex-site info package
easymenu epg-config url-handlers url-parse auth-source cl-seq eieio
eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt
gv bytecomp byte-compile cconv cl-loaddefs cl-lib time-date mule-util
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode
lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind kqueue lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 121205 7500)
(symbols 48 22831 1)
(miscs 40 90 116)
(strings 32 37561 1127)
(string-bytes 1 1081297)
(vectors 16 16957)
(vector-slots 8 537814 8932)
(floats 8 52 65)
(intervals 56 299 0)
(buffers 992 12))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Sat, 27 Apr 2019 17:38:02 GMT) Full text and rfc822 format available.

Message #8 received at 35457 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johannes Lundberg <johalun0 <at> gmail.com>
Cc: 35457 <at> debbugs.gnu.org
Subject: Re: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Sat, 27 Apr 2019 20:36:43 +0300
> From: Johannes Lundberg <johalun0 <at> gmail.com>
> Date: Sat, 27 Apr 2019 09:50:54 -0700
> 
> Add (global-auto-revert-mode 1) to .emacs.
> Start Emacs.
> Emacs now using 100% cpu.
> truss -p <pid> show that Emacs is doing fstatat(), possibly stuck
> endless loop.
> 
> 
> In GNU Emacs 26.2 (build 1, amd64-portbld-freebsd13.0, GTK+ Version 3.24.7)

Not reproducible on GNU/Linux.  Maybe this is a FreeBSD specific
problem, due to kqueue implementation of file notifications?

Does this happen if your .emacs includes only the above line?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Sat, 27 Apr 2019 17:52:02 GMT) Full text and rfc822 format available.

Message #11 received at 35457 <at> debbugs.gnu.org (full text, mbox):

From: Johannes Lundberg <johalun0 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 35457 <at> debbugs.gnu.org
Subject: Re: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Sat, 27 Apr 2019 10:51:21 -0700
On 4/27/19 10:36 AM, Eli Zaretskii wrote:
>> From: Johannes Lundberg <johalun0 <at> gmail.com>
>> Date: Sat, 27 Apr 2019 09:50:54 -0700
>>
>> Add (global-auto-revert-mode 1) to .emacs.
>> Start Emacs.
>> Emacs now using 100% cpu.
>> truss -p <pid> show that Emacs is doing fstatat(), possibly stuck
>> endless loop.
>>
>>
>> In GNU Emacs 26.2 (build 1, amd64-portbld-freebsd13.0, GTK+ Version 3.24.7)
> Not reproducible on GNU/Linux.  Maybe this is a FreeBSD specific
> problem, due to kqueue implementation of file notifications?
>
> Does this happen if your .emacs includes only the above line?

Thanks for the feedback!

Yes, only the one line. I'll file a bug report on freebsd's bugzilla.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Sat, 27 Apr 2019 18:20:01 GMT) Full text and rfc822 format available.

Message #14 received at 35457 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Johannes Lundberg <johalun0 <at> gmail.com>
Cc: 35457 <at> debbugs.gnu.org
Subject: Re: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Sat, 27 Apr 2019 21:18:44 +0300
> Cc: 35457 <at> debbugs.gnu.org
> From: Johannes Lundberg <johalun0 <at> gmail.com>
> Date: Sat, 27 Apr 2019 10:51:21 -0700
> 
> Yes, only the one line. I'll file a bug report on freebsd's bugzilla.

I suggest to wait for Michael Albinus to chime in, perhaps he will
have some insight on this.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Mon, 29 Apr 2019 09:04:02 GMT) Full text and rfc822 format available.

Message #17 received at 35457 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Johannes Lundberg <johalun0 <at> gmail.com>, 35457 <at> debbugs.gnu.org
Subject: Re: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Mon, 29 Apr 2019 11:03:45 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Yes, only the one line. I'll file a bug report on freebsd's bugzilla.
>
> I suggest to wait for Michael Albinus to chime in, perhaps he will
> have some insight on this.

I've tested on a FreeBSD 10 system, with Emacs compiled according to the
emacs-26.2 git tag. Also not reproducible.

Maybe you have some global init files which make the difference? Try

--8<---------------cut here---------------start------------->8---
emacs -Q --eval "(global-auto-revert-mode 1)"
--8<---------------cut here---------------end--------------->8---

'top' for emacs starts with 5% cpu, and decreases then.

On that FreeBSD 10 system, I cannot run X applications (it is a limited
virtual machine). So you could also try in order to have my config


--8<---------------cut here---------------start------------->8---
emacs -Q -nw --eval "(global-auto-revert-mode 1)"
--8<---------------cut here---------------end--------------->8---

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Mon, 29 Apr 2019 16:41:02 GMT) Full text and rfc822 format available.

Message #20 received at 35457 <at> debbugs.gnu.org (full text, mbox):

From: Johannes Lundberg <johalun0 <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>, Eli Zaretskii <eliz <at> gnu.org>
Cc: 35457 <at> debbugs.gnu.org
Subject: Re: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Mon, 29 Apr 2019 17:40:21 +0100
On 4/29/19 10:03 AM, Michael Albinus wrote:
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
>>> Yes, only the one line. I'll file a bug report on freebsd's bugzilla.
>> I suggest to wait for Michael Albinus to chime in, perhaps he will
>> have some insight on this.
> I've tested on a FreeBSD 10 system, with Emacs compiled according to the
> emacs-26.2 git tag. Also not reproducible.
>
> Maybe you have some global init files which make the difference? Try
>
> --8<---------------cut here---------------start------------->8---
> emacs -Q --eval "(global-auto-revert-mode 1)"
> --8<---------------cut here---------------end--------------->8---
>
> 'top' for emacs starts with 5% cpu, and decreases then.
>
> On that FreeBSD 10 system, I cannot run X applications (it is a limited
> virtual machine). So you could also try in order to have my config
>
>
> --8<---------------cut here---------------start------------->8---
> emacs -Q -nw --eval "(global-auto-revert-mode 1)"
> --8<---------------cut here---------------end--------------->8---
>
> Best regards, Michael.
Hi!

Thanks for testing. Syncing world + kernel (my world was a couple of
months older than the kernel) and/or reinstalling emacs seem to have
fixed the problem so we can close this.

/Johannes






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#35457; Package emacs. (Mon, 29 Apr 2019 19:55:01 GMT) Full text and rfc822 format available.

Message #23 received at 35457 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Johannes Lundberg <johalun0 <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 35457 <at> debbugs.gnu.org
Subject: Re: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage
Date: Mon, 29 Apr 2019 21:54:36 +0200
tags 35457 notabug
close 35457
quit

Johannes Lundberg <johalun0 <at> gmail.com> writes:

> Hi!

Hi Johannes,

> Thanks for testing. Syncing world + kernel (my world was a couple of
> months older than the kernel) and/or reinstalling emacs seem to have
> fixed the problem so we can close this.

Thanks for confirmation, I'm closing the bug.

> /Johannes

Best regards, Michael.




Added tag(s) notabug. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Mon, 29 Apr 2019 20:06:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 35457 <at> debbugs.gnu.org and Johannes Lundberg <johalun0 <at> gmail.com> Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Mon, 29 Apr 2019 20:06:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 28 May 2019 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 328 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.