From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabrice Niessen Newsgroups: gmane.emacs.bugs Subject: bug#18785: 24.4.1; Emacs hangs with Org mode when point is in LOGBOOK Date: Wed, 22 Oct 2014 12:35:30 +0200 Organization: My Googlest Message-ID: <86r3y0s87h.fsf__31190.6874449507$1413974312$gmane$org@example.com> References: <8661fdegiz.fsf@example.com> <8338ahbgea.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1413974312 19290 80.91.229.3 (22 Oct 2014 10:38:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2014 10:38:32 +0000 (UTC) Cc: 18785-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Wed Oct 22 12:38:26 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XgtJB-0005by-UH for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 12:38:26 +0200 Original-Received: from localhost ([::1]:56084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgtJB-0006Kc-J3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Oct 2014 06:38:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgtJ3-0006Cx-Ne for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Wed, 22 Oct 2014 06:38:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XgtIz-0006rB-8u for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Wed, 22 Oct 2014 06:38:17 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgtIp-0006pi-4y; Wed, 22 Oct 2014 06:38:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XgtIo-00020O-Mu; Wed, 22 Oct 2014 06:38:02 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Fabrice Niessen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org, emacs-orgmode-mXXj517/zsQ@public.gmane.org Resent-Date: Wed, 22 Oct 2014 10:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 18785 X-GNU-PR-Package: emacs,org-mode X-GNU-PR-Keywords: moreinfo X-Debbugs-Original-Cc: Org-mode List , 18785-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org Original-Received: via spool by 18785-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B18785.14139742637682 (code B ref 18785); Wed, 22 Oct 2014 10:38:01 +0000 Original-Received: (at 18785) by debbugs.gnu.org; 22 Oct 2014 10:37:43 +0000 Original-Received: from localhost ([127.0.0.1]:59169 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgtIU-0001zp-DG for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Wed, 22 Oct 2014 06:37:43 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:16345 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XgtIR-0001zY-HO for 18785-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Wed, 22 Oct 2014 06:37:40 -0400 Original-Received: from MUNDANEUM.i-did-not-set--mail-host-address--so-tickle-me (unknown [10.10.10.51]) by mail.missioncriticalit.com (Postfix) with ESMTPSA id D9B1F500073; Wed, 22 Oct 2014 12:37:32 +0200 (CEST) X-Url: http://www.MyGooglest.com/fni X-Archive: encrypt In-Reply-To: <8338ahbgea.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Tue, 21 Oct 2014 18:18:21 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:94901 Eli Zaretskii wrote: > From: Fabrice Niessen >>=20 >> On Windows 8, with Emacs 24.4.1 (from Dani) and Org mode version >> 8.3beta, I can very often freeze Emacs when clocking into a task, or >> when editing the timestamps found in the LOGBOOK drawer. >>=20 >> I've run Emacs under GDB, and can send a video of it, where you also see >> that Emacs takes 100% of the CPU. Though, I can only send it on request, >> as it contains information in my Org buffers which I don't want to see >> public. > > Is that video worth watching? I mean, what could a video of a frozen > Emacs tell? No, I guess it's not. >> $ gdb ./emacs.exe >> GNU gdb (GDB) 7.8 > > This GDB session brings no useful info. Please follow the method > described in etc/DEBUG under "If the symptom of the bug is that Emacs > fails to respond". I think I can reproduce it "reliably": 1. Open an Org file 2. Go to a task headline 3. Clock into it (C-c C-x C-i) 4. Press down arrown to go to next line 5. Press TAB to open LOGBOOK drawer 6. Press C-c C-n to go the the next task (as drawer is huge) 7. Press up arrow to go to the line before the last clock line 8. Press left arrow to go to the end of the last clock line I'm not sure whether variations of this do work or not... or whether the contents of my file does have impact on the recipe. Now, as asked... =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 =E2=94=82 ** If the symptom of the bug is that Emacs fails to respond =E2=94=82=20 =E2=94=82 Don't assume Emacs is `hung'--it may instead be in an infinite = loop. =E2=94=82 To find out which, make the problem happen under GDB and stop E= macs =E2=94=82 once it is not responding. (If Emacs is using X Windows direct= ly, you =E2=94=82 can stop Emacs by typing C-z at the GDB job.) Then try steppin= g with =E2=94=82 `step'. If Emacs is hung, the `step' command won't return. If= it is =E2=94=82 looping, `step' will return. [...] =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 ...what I did is launch Emacs from GDB in a Cygwin shell: --8<---------------cut here---------------start------------->8--- $ gdb ./emacs.exe GNU gdb (GDB) 7.8 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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 "i686-pc-cygwin". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... /cygdrive/d/Users/fni/.gdbinit:19: Error in sourced command file: No symbol table is loaded. Use the "file" command. Reading symbols from ./emacs.exe...done. (gdb) set debugexceptions 1 (gdb) run Starting program: /cygdrive/c/Program Files (x86)/emacs-trunk/bin/emacs.exe [New Thread 4084.0x15cc] --8<---------------cut here---------------end--------------->8--- I reproduced the problem. Then, I tried (multiple times) to C-z in the GDB session, but nothing happens: Emacs stays block and I don't get any GDB prompt. Am I missing something? Best regards, Fabrice