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: 19606-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org,
	dgutov-o+MxOtu4lMCHXe+LvDLADg@public.gmane.org
Subject: bug#19606: 24.4; Emacs hangs when editing a 5-line Org file
Date: Fri, 16 Jan 2015 13:04:00 +0100	[thread overview]
Message-ID: <86ppafx77z.fsf__45093.2627347813$1421409983$gmane$org@example.com> (raw)
In-Reply-To: <83wq4n0wup.fsf-mXXj517/zsQ@public.gmane.org> (Eli Zaretskii's message of "Fri, 16 Jan 2015 13:49:02 +0200")

Eli Zaretskii wrote:
>> From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
>> Cc: 19606-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org
>> Date: Fri, 16 Jan 2015 12:27:16 +0100
>> 
>> OK, so I just reproduced the problem once again, then:
>> 
>> - tried to C-g in Emacs: impossible!
>> - launched GDB
>> - source ~/.gdbinit
>> - thread 1
>> - thread apply all backtrace
>> 
>> Still, the backtrace is not as long as normal, and I don't get any GDB
>> prompt anymore!
>
> Can you show what this produced.

It's in the video, but I forgot to copy it.

I just re-did the ABOVE for a new Emacs session, to get something
similar to the results in the video.

--8<---------------cut here---------------start------------->8---
$ gdb -p 5676
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.
Attaching to process 5676
[New Thread 5676.0x4bbc]
[New Thread 5676.0x4b30]
[New Thread 5676.0x3374]
[New Thread 5676.0x1878]
[New Thread 5676.0x4634]
[New Thread 5676.0x61b0]
[New Thread 5676.0x2564]
[New Thread 5676.0x2d4c]
[New Thread 5676.0x155c]
[New Thread 5676.0x4ac0]
[New Thread 5676.0x5998]
[New Thread 5676.0x4be4]
[New Thread 5676.0x369c]
[New Thread 5676.0x3c7c]
Reading symbols from /cygdrive/c/Program Files (x86)/emacs-24.4/bin/emacs.exe...done.
0x77d3f925 in ntdll!DbgBreakPoint ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
(gdb) source ~/.gdbinit
Warning: /cygdrive/c/Program Files (x86)/emacs-24.4/bin/../lwlib: No such file or directory.
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
Environment variable "DISPLAY" not defined.
TERM = xterm-256color
Breakpoint 1 at 0x109436d: file ../../emacs-24.4/src/emacs.c, line 350.
Temporary breakpoint 2 at 0x10aa8ce: file ../../emacs-24.4/src/sysdep.c, line 850.
(gdb) thread 1
[Switching to thread 1 (Thread 5676.0x4bbc)]
#0  find_interval (tree=0x6d129a4, position=138)
    at ../../emacs-24.4/src/intervals.c:690
(gdb) 690       ../../emacs-24.4/src/intervals.c: No such file or directory.

[Switching to thread 1 (Thread 5676.0x4bbc)]
#0  find_interval (tree=0x6d129a4, position=138)
    at ../../emacs-24.4/src/intervals.c:690
690     in ../../emacs-24.4/src/intervals.c
(gdb) thread apply all backtrace

Thread 14 (Thread 5676.0x3c7c):
#0  0x77d3f925 in ntdll!DbgBreakPoint ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#1  0x77dadb8c in ntdll!DbgUiRemoteBreakin ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#2  0x95b35457 in ?? ()
#3  0x00000000 in ?? ()

Lisp Backtrace:
"redisplay_internal (C function)" (0x1407e78)
"redisplay" (0x88f254)
"sit-for" (0x88f3a8)
"flyspell-check-word-p" (0x88f4f8)
"byte-code" (0x88f610)
"flyspell-post-command-hook" (0x88f844)

Thread 13 (Thread 5676.0x369c):
#0  0x77d3de5c in ntdll!ZwDelayExecution ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#1  0x755311f8 in SleepEx () from /cygdrive/c/Windows/SYSTEM32/KERNELBASE.dll
#2  0x00000001 in ?? ()
#3  0x6f5aff20 in ?? ()
#4  0x0114ab1e in watch_worker (arg=0x3bf5c00)
    at ../../emacs-24.4/src/w32notify.c:278
#5  0x775b86e3 in KERNEL32!BaseThreadInitThunk ()
   from /cygdrive/c/Windows/SYSTEM32/KERNEL32.DLL
#6  0x77d6be19 in ntdll!RtlInitializeExceptionChain ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#7  0x77d6bdec in ntdll!RtlInitializeExceptionChain ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#8  0x00000000 in ?? ()
[Thread 5676.0x3c7c exited with code 0]
--8<---------------cut here---------------end--------------->8---

>> I tried to C-c in the shell window, as well without success...
>> 
>> What can I do to provide you with more context?
>
> Try this instead:
>
>  - reproduce the problem
>  - attach GDB, but do NOT "source ~/.gdbinit"
>  - thread 1
>  - backtrace

Here is it (http://screencast.com/t/o9BVgY7hWN):

--8<---------------cut here---------------start------------->8---
$ gdb -p 17252
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.
Attaching to process 17252
[New Thread 17252.0x44f0]
[New Thread 17252.0x1404]
[New Thread 17252.0x1658]
[New Thread 17252.0x53ac]
[New Thread 17252.0x5634]
[New Thread 17252.0xd54]
[New Thread 17252.0x485c]
[New Thread 17252.0x4e34]
[New Thread 17252.0x3484]
[New Thread 17252.0x3f3c]
[New Thread 17252.0xe38]
[New Thread 17252.0x1730]
[New Thread 17252.0x10dc]
[New Thread 17252.0x5fc0]
[New Thread 17252.0x38a8]
Reading symbols from /cygdrive/c/Program Files (x86)/emacs-24.4/bin/emacs.exe...done.
0x77d3f925 in ntdll!DbgBreakPoint ()
   from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
(gdb) thread 1
[Switching to thread 1 (Thread 17252.0x44f0)]
#0  0x01142191 in Fnext_single_property_change (position=position@entry=540,
    prop=62947906, object=118795585, limit=limit@entry=1356)
    at ../../emacs-24.4/src/textprop.c:1034
1034    ../../emacs-24.4/src/textprop.c: No such file or directory.
(gdb) backtrace
#0  0x01142191 in Fnext_single_property_change (position=position@entry=540,
    prop=62947906, object=118795585, limit=limit@entry=1356)
    at ../../emacs-24.4/src/textprop.c:1034
#1  0x0102e54f in handle_invisible_prop (it=0x889a14)
    at ../../emacs-24.4/src/xdisp.c:4379
#2  0x01022e18 in handle_stop (it=it@entry=0x889a14)
    at ../../emacs-24.4/src/xdisp.c:3478
#3  0x010231e9 in next_element_from_string (it=0x889a14)
    at ../../emacs-24.4/src/xdisp.c:7915
#4  0x01025e1c in get_next_display_element (it=it@entry=0x889a14)
    at ../../emacs-24.4/src/xdisp.c:6925
#5  0x0102b00f in display_line (it=<optimized out>)
    at ../../emacs-24.4/src/xdisp.c:20183
#6  0x00000000 in ?? ()
(gdb)
--8<---------------cut here---------------end--------------->8---

  parent reply	other threads:[~2015-01-16 12:04 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <86mw5kktly.fsf@example.com>
     [not found] ` <mailman.17962.1421338747.1147.bug-gnu-emacs@gnu.org>
     [not found]   ` <mailman.17962.1421338747.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2015-01-15 18:04     ` bug#19606: 24.4; Emacs hangs when editing a 5-line Org file Fabrice Niessen
     [not found]   ` <86lhl32a5e.fsf@example.com>
2015-01-15 18:14     ` Eli Zaretskii
     [not found]     ` <83oapz3o89.fsf@gnu.org>
2015-01-15 21:06       ` Dmitry Gutov
2015-01-15 21:37       ` Glenn Morris
     [not found]       ` <54B82BF2.8050504@yandex.ru>
2015-01-16  8:24         ` Eli Zaretskii
     [not found]         ` <mailman.17998.1421396712.1147.bug-gnu-emacs@gnu.org>
     [not found]           ` <mailman.17998.1421396712.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2015-01-16 11:27             ` Fabrice Niessen
     [not found]           ` <mailman.18013.1421407690.1147.bug-gnu-emacs@gnu.org>
     [not found]             ` <mailman.18013.1421407690.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2015-01-16 11:31               ` Fabrice Niessen
     [not found]           ` <867fwnynhn.fsf@example.com>
2015-01-16 11:49             ` Eli Zaretskii
     [not found]             ` <83wq4n0wup.fsf@gnu.org>
     [not found]               ` <83wq4n0wup.fsf-mXXj517/zsQ@public.gmane.org>
2015-01-16 12:04                 ` Fabrice Niessen [this message]
     [not found]               ` <86ppafx77z.fsf@example.com>
2015-01-16 15:31                 ` Eli Zaretskii
     [not found]                 ` <83twzq213t.fsf@gnu.org>
     [not found]                   ` <86lhl237cl.fsf@example.com>
2015-01-16 20:14                     ` Eli Zaretskii
     [not found]                     ` <83bnly1o0w.fsf@gnu.org>
2015-01-16 22:29                       ` Glenn Morris
2015-01-28 20:41                     ` Dani Moncayo
     [not found]                   ` <83twzq213t.fsf-mXXj517/zsQ@public.gmane.org>
2015-01-16 18:31                     ` Fabrice Niessen
2015-01-30 16:07                     ` Fabrice Niessen
2015-01-31  8:25                       ` Eli Zaretskii
     [not found]                       ` <83386rl5kh.fsf@gnu.org>
2016-12-07 19:26                         ` Glenn Morris
     [not found]       ` <6cy4p3209r.fsf@fencepost.gnu.org>
2015-01-16  8:26         ` Eli Zaretskii
     [not found]         ` <mailman.17999.1421396829.1147.bug-gnu-emacs@gnu.org>
     [not found]           ` <mailman.17999.1421396829.1147.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2015-01-16 11:16             ` Fabrice Niessen
2015-01-16 11:30               ` Eric Abrahamsen
2015-01-16 11:37                 ` Fabrice Niessen
2015-01-16 20:11                   ` Achim Gratz
     [not found]           ` <86bnlzynzp.fsf@example.com>
2015-01-16 11:44             ` Eli Zaretskii
     [not found]             ` <83zj9j0x2s.fsf@gnu.org>
     [not found]               ` <83zj9j0x2s.fsf-mXXj517/zsQ@public.gmane.org>
2015-01-16 11:58                 ` 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='86ppafx77z.fsf__45093.2627347813$1421409983$gmane$org@example.com' \
    --to=fni-news-ta4hmop+1whrz44/dzwexq@public.gmane.org \
    --cc=19606-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org \
    --cc=dgutov-o+MxOtu4lMCHXe+LvDLADg@public.gmane.org \
    --cc=eliz-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).