GNU bug report logs - #20417
25.0.50; frequent crashes with global-auto-revert-mode

Previous Next

Package: emacs;

Reported by: Tom Tromey <tom <at> tromey.com>

Date: Fri, 24 Apr 2015 15:19:02 UTC

Severity: normal

Found in version 25.0.50

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 20417 in the body.
You can then email your comments to 20417 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#20417; Package emacs. (Fri, 24 Apr 2015 15:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tom Tromey <tom <at> tromey.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 24 Apr 2015 15:19:02 GMT) Full text and rfc822 format available.

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

From: Tom Tromey <tom <at> tromey.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Fri, 24 Apr 2015 09:17:31 -0600
I'm running some reasonably recent emacs trunk on x86-64 Fedora 20.

If I enable global-auto-revert-mode, Emacs crashes with some regularity.

I caught the crash in gdb once and tracked it down to this bug:

https://bugzilla.gnome.org/show_bug.cgi?id=739424

I am not sure whether Emacs can work around this or not.
Perhaps one approach would be to not use the glib file-polling code.




In GNU Emacs 25.0.50.5 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9)
 of 2015-04-02 on pokyo
Repository revision: ece8f600833e3011be976384f9a5657faa83f6db
Windowing system distributor `Fedora Project', version 11.0.11404000
System Description:	Fedora release 20 (Heisenbug)

Configured using:
 `configure --prefix=/home/tromey/Emacs/install'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: JS

Minor modes in effect:
  erc-notifications-mode: t
  flymake-mode: t
  erc-spelling-mode: t
  erc-truncate-mode: t
  shell-dirtrack-mode: t
  diff-auto-refine-mode: t
  flyspell-mode: t
  which-function-mode: t
  projectile-global-mode: t
  projectile-mode: t
  erc-notify-mode: t
  erc-services-mode: t
  erc-list-mode: t
  erc-menu-mode: t
  erc-autojoin-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-pcomplete-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-match-mode: t
  erc-netsplit-mode: t
  erc-hl-nicks-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  savehist-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  auto-fill-function: do-auto-fill

Recent messages:
(Shell command succeeded with no output)
Mark set
Quit [2 times]
Mark set [4 times]
Saving file /home/tromey/firefox-git/gecko-dev/browser/devtools/shared/widgets/CubicBezierWidget.js...
Add 2015 to copyright? (y or n) n
Wrote /home/tromey/firefox-git/gecko-dev/browser/devtools/shared/widgets/CubicBezierWidget.js
C-z C-g is undefined
When done with a buffer, type C-x #
(No files need saving)

Load-path shadows:
/home/tromey/.emacs.d/elpa/bubbles-0.5/bubbles hides /home/tromey/Emacs/install/share/emacs/25.0.50/lisp/play/bubbles

Features:
(shadow emacsbug vc-mtn vc-hg gnus-fun filecache novice cus-edit
org-element org-rmail org-mhe org-irc org-info org-gnus org-docview
doc-view image-mode org-bibtex bibtex org-bbdb org-w3m org org-macro
org-footnote org-pcomplete org-list org-faces org-entities noutline
outline org-version ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-src ob-keys ob-comint ob-core ob-eval org-compat org-macs
org-loaddefs two-column descr-text iso-transl url-http url-gw url-auth
eww url-queue bbdb-sc supercite regi css-mode cal-move mailalias
erc-desktop-notifications apropos log-edit dired-aux gdb-shell
find-dired mail-hist nnir hi-lock jka-compr webjump conf-mode etags xref
rst vc-annotate gnus-draft asm-mode gud log-view pcvs-util eieio-opt
speedbar sb-image ezimage dframe smerge-mode rebase-mode rx web-mode
sgml-mode nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid
rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn
nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc
xmltok flymake-jshint flymake js ido gnus-html url-cache mm-url url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf sh-script smie executable xterm nnregistry idutils derived
vc-bzr vc-src vc-sccs vc-svn vc-cvs vc-rcs shr-color erc-spelling
erc-truncate help-mode flow-fill url-util url-parse url-vars shr dom
subr-x browse-url mm-archive bbdb-gui bbdb-hooks mule-util sort smiley
gnus-cite qp gnus-bcklg python json make-mode gnus-async gnus-ml
disp-table gnus-topic nndraft nnmh nnfolder utf-7 bbdb-gnus bbdb-snarf
mail-extr bbdb-com gnutls network-stream nsm starttls gnus-agent
gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache
gnus-registry registry eieio-compat eieio-base gnus-art mm-uu mml2015
mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo
smtpmail sendmail gnus-start gnus-cloud nnimap nnmail mail-source tls
utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message dired
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus
gnus-ems nnheader mail-utils shell copyright misearch multi-isearch
find-file add-log bug-reference vc-git diff-mode easy-mmode cc-mode
cc-fonts cc-guess cc-menus cc-cmds dabbrev flyspell ispell diminish appt
diary-lib diary-loaddefs cal-menu calendar cal-loaddefs which-func imenu
edmacro kmacro projectile ibuf-ext ibuffer pkg-info find-func lisp-mnt
epl grep compile dash s minimap autorevert filenotify desktop frameset
cus-start cus-load erc-nick-notify erc-notify notifications dbus xml
erc-services erc-list erc-menu erc-join erc-ring erc-networks
erc-pcomplete pcomplete erc-track erc-match erc-netsplit erc-hl-nicks
color cl erc-button erc-fill erc-stamp wid-edit erc-goodies erc
erc-backend erc-compat format-spec auth-source cl-macs eieio gnus-util
mm-util mail-prsvr password-cache thingatpt pp status warnings advice
help-fns vc-dir ewoc vc vc-dispatcher cc-styles cc-align cc-engine
cc-vars cc-defs bbdb timezone ange-ftp comint ansi-color ring server
savehist finder-inf dwarf-mode-autoloads eieio-core cl-generic byte-opt
gv bytecomp byte-compile cl-extra seq cconv cl-loaddefs pcase cl-lib
jabber-autoloads lisppaste-autoloads pydoc-info-autoloads info-look info
easymenu weblogger-autoloads package epg-config bbdb-autoloads time-date
tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list newcomment elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev 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 make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 4244894 918369)
 (symbols 48 144018 301)
 (miscs 40 46671 1822)
 (strings 32 645840 163012)
 (string-bytes 1 21947269)
 (vectors 16 140226)
 (vector-slots 8 3058049 93087)
 (floats 8 1021 1720)
 (intervals 56 514873 555)
 (buffers 976 879)
 (heap 1024 468654 444115))

Tom




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Sun, 26 Apr 2015 01:59:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Tom Tromey <tom <at> tromey.com>
Cc: 20417 <at> debbugs.gnu.org
Subject: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Sat, 25 Apr 2015 18:58:14 -0700
[Message part 1 (text/plain, inline)]
> I am not sure whether Emacs can work around this or not.

I don't see an easy workaround.

> Perhaps one approach would be to not use the glib file-polling code.

That sounds like it may be the best way forward, at least in the short run.  If 
you configure --with-file-notification=inotify does the problem go away for you? 
 That is, does the attached patch work for you?
[0001-Use-gfile-notification-only-on-request.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Mon, 27 Apr 2015 17:15:03 GMT) Full text and rfc822 format available.

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

From: Tom Tromey <tom <at> tromey.com>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 20417 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>
Subject: Re: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Mon, 27 Apr 2015 11:14:19 -0600
>> Perhaps one approach would be to not use the glib file-polling code.

Paul> That sounds like it may be the best way forward, at least in the short
Paul> run.  If you configure --with-file-notification=inotify does the
Paul> problem go away for you? That is, does the attached patch work for
Paul> you?

I rebuilt with --with-file-notification=inotify, but that did not work
very well.  I started getting this over and over:

Error while trying to read file system events

E.g. I did M-x list-packages and that message started appearing with
some regularity.

I've rebuilt with --with-file-notification=no, but it's too soon to see
how well it works.

Tom




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Wed, 06 Apr 2016 17:56:01 GMT) Full text and rfc822 format available.

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

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Tom Tromey <tom <at> tromey.com>
Cc: 20417 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Wed, 06 Apr 2016 19:55:20 +0200
On 2015-04-27, at 11:14, Tom Tromey <tom <at> tromey.com> wrote:

>>> Perhaps one approach would be to not use the glib file-polling code.
>
> Paul> That sounds like it may be the best way forward, at least in the short
> Paul> run.  If you configure --with-file-notification=inotify does the
> Paul> problem go away for you? That is, does the attached patch work for
> Paul> you?
>
> I rebuilt with --with-file-notification=inotify, but that did not work
> very well.  I started getting this over and over:
>
> Error while trying to read file system events
>
> E.g. I did M-x list-packages and that message started appearing with
> some regularity.
>
> I've rebuilt with --with-file-notification=no, but it's too soon to see
> how well it works.

Hi Tom,

does this problem persist in more recent Emacs and/or with
--with-file-notification=no?

>
> Tom

Best,

-- 
Marcin




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Wed, 06 Apr 2016 18:04:01 GMT) Full text and rfc822 format available.

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

From: Tom Tromey <tom <at> tromey.com>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: 20417 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>,
 Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Wed, 06 Apr 2016 12:02:43 -0600
>> I've rebuilt with --with-file-notification=no, but it's too soon to see
>> how well it works.

Marcin> does this problem persist in more recent Emacs and/or with
Marcin> --with-file-notification=no?

I think it works fine with that flag.

Tom




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Wed, 06 Apr 2016 19:12:01 GMT) Full text and rfc822 format available.

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

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Tom Tromey <tom <at> tromey.com>
Cc: 20417 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Wed, 06 Apr 2016 21:11:23 +0200
On 2016-04-06, at 18:02, Tom Tromey <tom <at> tromey.com> wrote:

>>> I've rebuilt with --with-file-notification=no, but it's too soon to see
>>> how well it works.
>
> Marcin> does this problem persist in more recent Emacs and/or with
> Marcin> --with-file-notification=no?
>
> I think it works fine with that flag.

Thanks!  May I close the bug, then?

> Tom

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Wed, 06 Apr 2016 20:52:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Marcin Borkowski <mbork <at> mbork.pl>
Cc: 20417 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>,
 Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Wed, 06 Apr 2016 16:51:02 -0400
Marcin Borkowski wrote:

> Thanks!  May I close the bug, then?

No, because the linked glib bug is still open, and the default behaviour
of configure may use it by default.  See eg unapplied suggestion
from http://debbugs.gnu.org/20417#8 .




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Thu, 07 Apr 2016 03:55:02 GMT) Full text and rfc822 format available.

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

From: Marcin Borkowski <mbork <at> mbork.pl>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 20417 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>,
 Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Thu, 07 Apr 2016 05:54:47 +0200
On 2016-04-06, at 20:51, Glenn Morris <rgm <at> gnu.org> wrote:

> Marcin Borkowski wrote:
>
>> Thanks!  May I close the bug, then?
>
> No, because the linked glib bug is still open, and the default behaviour
> of configure may use it by default.  See eg unapplied suggestion
> from http://debbugs.gnu.org/20417#8 .

OK, so I'm leaving it as it is.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20417; Package emacs. (Wed, 31 Aug 2016 13:51:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 20417 <at> debbugs.gnu.org, Tom Tromey <tom <at> tromey.com>,
 Marcin Borkowski <mbork <at> mbork.pl>, Ken Brown <kbrown <at> cornell.edu>,
 Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Wed, 31 Aug 2016 15:48:31 +0200
Glenn Morris <rgm <at> gnu.org> writes:

> Marcin Borkowski wrote:
>
>> Thanks!  May I close the bug, then?
>
> No, because the linked glib bug is still open, and the default behaviour
> of configure may use it by default.  See eg unapplied suggestion
> from http://debbugs.gnu.org/20417#8 .

In Emacs 25.1, the default file notification library is inotify for
GNU/Linux, kqueue for *BSD and OS X, and w32notify for MS Windows.

gfilenotify is the default library only for Cygwin. And there, we have a
similar bug#20927 about global-auto-revert-mode and file
notifications. The difference is, that Emacs does not crash there, but
makes Emacs unresponsive for a while.

Therefore, I would like to close *this* bug. We cannot do anything to
force a solution of the glib bug. Objections?

Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Thu, 15 Sep 2016 08:26:02 GMT) Full text and rfc822 format available.

Notification sent to Tom Tromey <tom <at> tromey.com>:
bug acknowledged by developer. (Thu, 15 Sep 2016 08:26:02 GMT) Full text and rfc822 format available.

Message #34 received at 20417-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 20417-done <at> debbugs.gnu.org
Subject: Re: bug#20417: 25.0.50; frequent crashes with global-auto-revert-mode
Date: Thu, 15 Sep 2016 10:25:10 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

> In Emacs 25.1, the default file notification library is inotify for
> GNU/Linux, kqueue for *BSD and OS X, and w32notify for MS Windows.
>
> gfilenotify is the default library only for Cygwin. And there, we have a
> similar bug#20927 about global-auto-revert-mode and file
> notifications. The difference is, that Emacs does not crash there, but
> makes Emacs unresponsive for a while.
>
> Therefore, I would like to close *this* bug. We cannot do anything to
> force a solution of the glib bug. Objections?

Closed.

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 13 Oct 2016 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 190 days ago.

Previous Next


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