Subject: bug#21146: 25.0.50; Crash Emacs when S-TAB'ing in Org file

From: Sebastien Vauban <[email-masked]>
Date: Tue, 28 Jul 2015 10:23:07 +0200

When S-TAB'ing in some Org files, I get a crash of Emacs 25.

  ┌────
  │ <S-tab> runs the command org-shifttab, which is an interactive Lisp function in
  │ ‘org.el’.
  │ 
  │ It is bound to <backtab>, <S-tab>, <S-iso-lefttab>, <menu-bar> <Tbl> <Previous
  │ Field>, <menu-bar> <Org> <Show/Hide> <Cycle Global Visibility>.
  │ 
  │ (org-shifttab &optional ARG)
  │ 
  │ Global visibility cycling or move to previous table field.
  │ Call ‘org-table-previous-field’ within a table.
  │ When ARG is nil, cycle globally through visibility states.
  │ When ARG is a numeric prefix, show contents of this level.
  └────

I tried to get a backtrace but did not get far:

--8<---------------cut here---------------start------------->8---
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 "x86_64-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/sva/.gdbinit:19: Error in sourced command file:
No symbol table is loaded.  Use the "file" command.
Attaching to process 7848
[New Thread 7848.0x284]
[New Thread 7848.0x1cd8]
[New Thread 7848.0x2270]
[New Thread 7848.0x1258]
[New Thread 7848.0x14e0]
[New Thread 7848.0x2610]
[New Thread 7848.0xa14]
[New Thread 7848.0x172c]
[New Thread 7848.0x16cc]
[New Thread 7848.0x68c]
[New Thread 7848.0x2744]
[New Thread 7848.0x1a58]
[New Thread 7848.0x1464]
[New Thread 7848.0x2728]
[New Thread 7848.0xd5c]
[New Thread 7848.0x22d0]
[New Thread 7848.0x2258]
[New Thread 7848.0x13e8]
[New Thread 7848.0x14b0]
[New Thread 7848.0x1268]
[New Thread 7848.0x1b80]
[New Thread 7848.0x958]
[New Thread 7848.0x29c]
[New Thread 7848.0x1040]
[New Thread 7848.0x10d0]
[New Thread 7848.0x2334]
[New Thread 7848.0x1d0c]
[New Thread 7848.0x1490]
[New Thread 7848.0x2494]
[New Thread 7848.0x1c04]
[New Thread 7848.0x550]
[New Thread 7848.0x203c]
[New Thread 7848.0x1b84]
[New Thread 7848.0x20f8]
[New Thread 7848.0xb28]
[New Thread 7848.0x22d8]
[New Thread 7848.0x19f0]
[New Thread 7848.0x222c]
[New Thread 7848.0x2620]
[New Thread 7848.0x11e4]
[New Thread 7848.0x12c8]
[New Thread 7848.0x324]
[New Thread 7848.0x159c]
[New Thread 7848.0x1690]
[New Thread 7848.0xf24]
[New Thread 7848.0x1310]
[New Thread 7848.0x22f0]
[New Thread 7848.0x24b4]
[New Thread 7848.0x15e8]
[New Thread 7848.0x2bc]
[New Thread 7848.0xce8]
[New Thread 7848.0x2084]
[New Thread 7848.0x22bc]
[New Thread 7848.0x1534]
[New Thread 7848.0x27b0]
[New Thread 7848.0x25f8]
[New Thread 7848.0x20a8]
[New Thread 7848.0x1114]
[New Thread 7848.0x220c]
[New Thread 7848.0xd78]
[New Thread 7848.0x24f0]
[New Thread 7848.0x2774]
[New Thread 7848.0x21fc]
[New Thread 7848.0x21c8]
[New Thread 7848.0x1930]
[New Thread 7848.0x8ec]
[New Thread 7848.0x1094]
[New Thread 7848.0x908]
[New Thread 7848.0x27fc]
[New Thread 7848.0xc64]
[New Thread 7848.0x1c0]
[New Thread 7848.0x1ad4]
[New Thread 7848.0xb7c]
[New Thread 7848.0x1280]
[New Thread 7848.0x17d0]
[New Thread 7848.0xa04]
[New Thread 7848.0xa8c]
[New Thread 7848.0x1e30]
[New Thread 7848.0x1f38]
[New Thread 7848.0x21f8]
[New Thread 7848.0x15c8]
[New Thread 7848.0x20e8]
[New Thread 7848.0x278c]
[New Thread 7848.0x1610]
[New Thread 7848.0x10dc]
[New Thread 7848.0x1304]
[New Thread 7848.0x1a10]
[New Thread 7848.0x2200]
[New Thread 7848.0x207c]
[New Thread 7848.0x1f4c]
[New Thread 7848.0x1224]
[New Thread 7848.0x11a4]
[New Thread 7848.0x2448]
[New Thread 7848.0x1c0c]
[New Thread 7848.0x199c]
[New Thread 7848.0x1c98]
[New Thread 7848.0x21a0]
[New Thread 7848.0x4f8]
[New Thread 7848.0x20c8]
Reading symbols from /cygdrive/c/Program Files (x86)/emacs-trunk/bin/emacs.exe...(no debugging symbols found)...done.

warning: `/cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.

warning: `/cygdrive/c/WINDOWS/SYSTEM32/wow64.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.

warning: `/cygdrive/c/WINDOWS/system32/wow64win.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.

warning: `/cygdrive/c/WINDOWS/system32/wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386.
0x00000000 in ?? ()
(gdb) continue
Continuing.
[Thread 7848.0x20c8 exited with code 0]
gdb: unknown target exception 0x4000001f at 0x75468ef2

Program received signal ?, Unknown signal.
[Switching to Thread 7848.0x284]
0x0008dad8 in ?? ()
(gdb) thread apply all backtrace

Thread 98 (Thread 7848.0x4f8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 97 (Thread 7848.0x21a0):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 96 (Thread 7848.0x1c98):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 95 (Thread 7848.0x199c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 94 (Thread 7848.0x1c0c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 93 (Thread 7848.0x2448):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 92 (Thread 7848.0x11a4):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 91 (Thread 7848.0x1224):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 90 (Thread 7848.0x1f4c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 89 (Thread 7848.0x207c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 88 (Thread 7848.0x2200):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 87 (Thread 7848.0x1a10):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 86 (Thread 7848.0x1304):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1
---Type <return> to continue, or q <return> to quit---

Thread 85 (Thread 7848.0x10dc):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 84 (Thread 7848.0x1610):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 83 (Thread 7848.0x278c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 82 (Thread 7848.0x20e8):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 81 (Thread 7848.0x15c8):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 80 (Thread 7848.0x21f8):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 79 (Thread 7848.0x1f38):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 78 (Thread 7848.0x1e30):
#0  0x00000000 in ?? ()

Thread 77 (Thread 7848.0xa8c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 76 (Thread 7848.0xa04):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 75 (Thread 7848.0x17d0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 74 (Thread 7848.0x1280):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 73 (Thread 7848.0xb7c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

---Type <return> to continue, or q <return> to quit---
Thread 72 (Thread 7848.0x1ad4):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 71 (Thread 7848.0x1c0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 70 (Thread 7848.0xc64):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 69 (Thread 7848.0x27fc):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 68 (Thread 7848.0x908):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 67 (Thread 7848.0x1094):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 66 (Thread 7848.0x8ec):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 65 (Thread 7848.0x1930):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 64 (Thread 7848.0x21c8):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 63 (Thread 7848.0x21fc):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 62 (Thread 7848.0x2774):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 61 (Thread 7848.0x24f0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 60 (Thread 7848.0xd78):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

---Type <return> to continue, or q <return> to quit---
Thread 59 (Thread 7848.0x220c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 58 (Thread 7848.0x1114):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 57 (Thread 7848.0x20a8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 56 (Thread 7848.0x25f8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 55 (Thread 7848.0x27b0):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 54 (Thread 7848.0x1534):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 53 (Thread 7848.0x22bc):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 52 (Thread 7848.0x2084):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 51 (Thread 7848.0xce8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 50 (Thread 7848.0x2bc):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 49 (Thread 7848.0x15e8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 48 (Thread 7848.0x24b4):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 47 (Thread 7848.0x22f0):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

---Type <return> to continue, or q <return> to quit---
Thread 46 (Thread 7848.0x1310):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 45 (Thread 7848.0xf24):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 44 (Thread 7848.0x1690):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 43 (Thread 7848.0x159c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 42 (Thread 7848.0x324):
#0  0x770bc7bc in ?? ()
#1  0x80000000 in ?? ()

Thread 41 (Thread 7848.0x12c8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 40 (Thread 7848.0x11e4):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 39 (Thread 7848.0x2620):
#0  0x0000002b in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 38 (Thread 7848.0x222c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 37 (Thread 7848.0x19f0):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 36 (Thread 7848.0x22d8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 35 (Thread 7848.0xb28):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 34 (Thread 7848.0x20f8):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

---Type <return> to continue, or q <return> to quit---
Thread 33 (Thread 7848.0x1b84):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 32 (Thread 7848.0x203c):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 31 (Thread 7848.0x550):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 30 (Thread 7848.0x1c04):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 29 (Thread 7848.0x2494):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 28 (Thread 7848.0x1490):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 27 (Thread 7848.0x1d0c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 26 (Thread 7848.0x2334):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 25 (Thread 7848.0x10d0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 24 (Thread 7848.0x1040):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 23 (Thread 7848.0x29c):
#0  0x770bc7bc in ?? ()
#1  0x80000000 in ?? ()

Thread 22 (Thread 7848.0x958):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 21 (Thread 7848.0x1b80):
#0  0x00000000 in ?? ()

Thread 20 (Thread 7848.0x1268):
---Type <return> to continue, or q <return> to quit---
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 19 (Thread 7848.0x14b0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 18 (Thread 7848.0x13e8):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 17 (Thread 7848.0x2258):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 16 (Thread 7848.0x22d0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 15 (Thread 7848.0xd5c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 14 (Thread 7848.0x2728):
#0  0x00000000 in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 13 (Thread 7848.0x1464):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 12 (Thread 7848.0x1a58):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 11 (Thread 7848.0x2744):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 10 (Thread 7848.0x68c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 9 (Thread 7848.0x16cc):
#0  0x000001ae in ?? ()
#1  0x00000000 in ?? ()

Thread 8 (Thread 7848.0x172c):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 7 (Thread 7848.0xa14):
---Type <return> to continue, or q <return> to quit---
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 6 (Thread 7848.0x2610):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 5 (Thread 7848.0x14e0):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 4 (Thread 7848.0x1258):
#0  0x000000ff in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 3 (Thread 7848.0x2270):
#0  0x0000002b in ?? ()
Backtrace stopped: Cannot access memory at address 0x1

Thread 2 (Thread 7848.0x1cd8):
#0  0x00000004 in ?? ()

Thread 1 (Thread 7848.0x284):
#0  0x0008dad8 in ?? ()
(gdb)
--8<---------------cut here---------------end--------------->8---

I'm not sure what to understand from the 4 warnings with Windows DLL.

And I don't understand those "cannot access memory". Any idea out there?

"Hopefully", the problem seems reproducible. Apparently, I can
systematically crash Emacs with at least one of my Org files.

In GNU Emacs 25.0.50.1 (i686-pc-mingw32)
 of 2015-07-03 on LEG570
Repository revision: 2b848fadd51e805b2f46da64c5958ea7f009048a
Windowing system distributor `Microsoft Corp.', version 6.3.9600
Configured using:
 `configure --host=i686-pc-mingw32 --enable-checking=yes,glyphs'

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS