From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: Infinite loop with org-log-done 'time? Date: Fri, 18 Jul 2014 22:22:06 -0500 Message-ID: <8738dyyqw1.fsf@fastmail.fm> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58036) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8LDx-0007ka-I4 for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 23:22:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X8LDr-0006iX-JE for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 23:22:13 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:46842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X8LDr-0006g3-GE for emacs-orgmode@gnu.org; Fri, 18 Jul 2014 23:22:07 -0400 In-Reply-To: (Ethan's message of "Thu, 17 Jul 2014 14:48:31 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ethan Cc: emacs-orgmode Ethan writes: > I'm running org-mode from git (version "8.3beta"), and recently I > started to get hangs in org files. I can't characterize them > completely; I have a clear memory of causing something when I hit Enter > to create a newline before a heading. Today I managed to reproduce it > reliably when I changed a particular heading from DONE to TODO. When I > trigger the hang, emacs's CPU spikes to 100% and C-g doesn't stop emacs > (it flashes to signal that it got a quit, but doesn't actually quit). > I've had to kill emacs, sometimes with -9, and restart. > > The bug has been tricky to track down. I can reproduce it reliably in > one particular file by switching DONE to TODO on one particular > heading. Changing DONE to TODO on another nearby heading doesn't seem > to cause the problem. For this reason, I don't have a minimal example. > > It doesn't happen in org-mode in stock emacs. It also doesn't happen, > even with org-mode from git, if I disable my '(org-log-done 'time) > customization. I managed to get a backtrace using gdb (attached). I can > provide (off-list) the .org file that I used to induce the failure. > > I haven't seen anyone else comment about this issue so I assume it's > something specific to my configuration. Has anyone else seen anything > like this I experience this. In my case, it seems to involve some mysterious combination of the element cache, clocking, and logging. The lockups are disruptive enough that I have to set org-element-use-cache to nil --- otherwise I experience 2 to 3 lockups per hour. The problem completely disappears with the cache off. Alas, the baroque complexity of my .emacs and the size of my org files make it difficult to discover the precise cause. I'll see if I can provide an ECM. Matt