Subject: bug#35457: 26.2; global-auto-revert-mode cause 100% cpu usage

From: Johannes Lundberg <[email-masked]>
Date: Sat, 27 Apr 2019 10:51:21 -0700

On 4/27/19 10:36 AM, Eli Zaretskii wrote:
>> From: Johannes Lundberg <[email-masked]>
>> 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.