emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
To: Eli Zaretskii <eliz-mXXj517/zsQ@public.gmane.org>
Cc: Org-mode List <emacs-orgmode-mXXj517/zsQ@public.gmane.org>,
	18785-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org
Subject: Re: bug#18785: 24.4.1; Emacs hangs with Org mode when point is in LOGBOOK
Date: Wed, 22 Oct 2014 12:35:30 +0200	[thread overview]
Message-ID: <86r3y0s87h.fsf@example.com> (raw)
In-Reply-To: <8338ahbgea.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Tue, 21 Oct 2014 18:18:21 +0300")

Eli Zaretskii wrote:
> From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
>> 
>> 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.
>> 
>> 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...

  ┌────
  │ ** If the symptom of the bug is that Emacs fails to respond
  │ 
  │ Don't assume Emacs is `hung'--it may instead be in an infinite loop.
  │ To find out which, make the problem happen under GDB and stop Emacs
  │ once it is not responding.  (If Emacs is using X Windows directly, you
  │ can stop Emacs by typing C-z at the GDB job.)  Then try stepping with
  │ `step'.  If Emacs is hung, the `step' command won't return.  If it is
  │ looping, `step' will return. [...]
  └────

...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 <http://gnu.org/licenses/gpl.html>
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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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

  parent reply	other threads:[~2014-10-22 10:35 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-21 12:47 24.4.1; Emacs hangs with Org mode when point is in LOGBOOK Fabrice Niessen
2014-10-21 15:18 ` bug#18785: " Eli Zaretskii
     [not found]   ` <8338ahbgea.fsf-mXXj517/zsQ@public.gmane.org>
2014-10-22 10:35     ` Fabrice Niessen [this message]
2014-10-22 15:21       ` Eli Zaretskii
     [not found]         ` <83siig870u.fsf-mXXj517/zsQ@public.gmane.org>
2014-10-23 10:34           ` Fabrice Niessen
2014-10-23 15:51             ` Eli Zaretskii
     [not found]               ` <83vbna7pio.fsf-mXXj517/zsQ@public.gmane.org>
2014-10-23 17:27                 ` Fabrice Niessen
2014-10-23 17:27                 ` Fabrice Niessen
     [not found]               ` <86wq7qzog1.fsf@example.com>
2014-10-23 17:42                 ` Eli Zaretskii
     [not found]                   ` <83mw8m7ket.fsf-mXXj517/zsQ@public.gmane.org>
2014-10-23 17:56                     ` Fabrice Niessen
2014-10-23 18:14                       ` Eli Zaretskii
     [not found]                 ` <mailman.11882.1414086205.1147.bug-gnu-emacs@gnu.org>
     [not found]                   ` <mailman.11882.1414086205.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-10-24 14:44                     ` Sebastien Vauban
     [not found]                   ` <86vbn98r4c.fsf@example.com>
2014-10-24 15:03                     ` Eli Zaretskii
     [not found]                     ` <mailman.11952.1414163065.1147.bug-gnu-emacs@gnu.org>
     [not found]                       ` <mailman.11952.1414163065.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2014-10-24 19:10                         ` Sebastien Vauban
     [not found]                       ` <861tpx707a.fsf@example.com>
2014-10-24 19:19                         ` Glenn Morris
2014-10-24 19:35                         ` Eli Zaretskii
2014-10-24 19:43                           ` Eli Zaretskii
     [not found]                           ` <83fved5k42.fsf@gnu.org>
     [not found]                             ` <83fved5k42.fsf-mXXj517/zsQ@public.gmane.org>
2014-11-26 13:11                               ` Sebastien Vauban
     [not found]                             ` <86fvd65cos.fsf@example.com>
2014-11-26 16:17                               ` Eli Zaretskii
2014-11-26 16:53                                 ` Glenn Morris
2014-11-26 17:13                                   ` Eli Zaretskii
     [not found]                                   ` <83oartopgf.fsf@gnu.org>
2015-12-26 16:14                                     ` Lars Ingebrigtsen
2014-10-21 16:09 ` Eric Abrahamsen
2014-10-21 16:28   ` Thorsten Jolitz
     [not found]     ` <87a94pfkua.fsf-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2014-10-22  8:12       ` Fabrice Niessen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r3y0s87h.fsf@example.com \
    --to=fni-news-ta4hmop+1whrz44/dzwexq@public.gmane.org \
    --cc=18785-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org \
    --cc=eliz-mXXj517/zsQ@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).