Subject: bug#19606: 24.4; Emacs hangs when editing a 5-line Org file

From: Eli Zaretskii <[email-masked]>
Date: Fri, 16 Jan 2015 17:31:50 +0200

> From: Fabrice Niessen <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Fri, 16 Jan 2015 13:04:00 +0100
> 
> (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 ?? ()

Looks like an infloop due to display or overlay strings with text
properties.  Can you reproduce this in an unoptimized build?