Subject: Re: bug#12579: 24.1; Emacs 24.1 / 24.2 (daily) crashes

From: "Fabrice Niessen" <[email-masked]>
Date: Tue, 09 Oct 2012 08:36:54 +0200

Hi Eli, Drew and all,

Eli Zaretskii wrote:
>>> Perhaps something in the build process, compiler version, compilation
>>> options...?  It's hard to pinpoint any connection between both
>>> problems without backtraces, though.
>>
>> Admittedly, there is not much to go on.  Hopefully there will be more reports,
>> with more useful information.
>
> If you, or others, can provide backtraces of these crashes, that would
> be a useful beginning.

Here some food... I hope/guess it will help a lot to pinpoint what's going
wrong.

Note that I have the _impression_ that the problem lies, somehow, in packages
I would load from my .emacs file (such as idle-require, auto-complete, helm,
etc.). *NOT* that _they_ are wrong, but, when loaded, the problem would be
(more) apparent.

I say that because I worked a lot on optimizing the performances in my .emacs
recently, and I had no that frequent crashes in a not so far past. And I was
already using the same binary of 24.1 -- This does not apply for 24.2, as I
took one binary of mid-September.

Bon, let's go with the reports... for 3 crashes I had since yesterday morning.

* Infinite loop (24.1? Almost sure)

$ gdb -p 2412
GNU gdb (GDB) 7.5.50.20120815-cvs (cygwin-special)
Copyright (C) 2012 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-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 2412
[New Thread 2412.0x720]
[New Thread 2412.0x13b4]
[New Thread 2412.0x131c]
[New Thread 2412.0x116c]
[New Thread 2412.0x17ec]
Reading symbols from /cygdrive/c/Program Files/Emacs-24.2/bin/emacs.exe...done.
Warning: /cygdrive/c/Program Files/Emacs-24.2/../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 0x1154889: file w32fns.c, line 7200.
Temporary breakpoint 2 at 0x11449c9: file sysdep.c, line 819.
(gdb) thread apply all backtrace

Thread 5 (Thread 2412.0x17ec):
#0  0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x00000005 in ?? ()
#3  0x00000004 in ?? ()
#4  0x00000001 in ?? ()
#5  0x715affd0 in ?? ()
#6  0x00000000 in ?? ()

Lisp Backtrace:
"delete-process" (0x82a55c)
"helm-kill-async-process" (0x82a74c)
"mapc" (0x82a83c)
"helm-kill-async-processes" (0x82a980)
"helm-update" (0x82ab80)
"if" (0x82adf4)
"helm-check-new-input" (0x82aee0)
"progn" (0x82b134)
"unwind-protect" (0x82b264)
"save-current-buffer" (0x82b3c4)
"let" (0x82b594)
"progn" (0x82b6c4)
"condition-case" (0x82b8a4)
"let" (0x82ba74)
"helm-check-minibuffer-input-1" (0x82bd0c)
"apply" (0x82bd08)
"byte-code" (0x82bf7c)
"timer-event-handler" (0x82c3fc)
"read-from-minibuffer" (0x82ceec)
"let" (0x82d114)
"cond" (0x82d274)
"let*" (0x82d404)
"save-current-buffer" (0x82d564)
"helm-read-pattern-maybe" (0x82d650)
"unwind-protect" (0x82d8b4)
"progn" (0x82d9e4)
"unwind-protect" (0x82db14)
"let" (0x82dce4)
"let" (0x82dec4)
"condition-case" (0x82e0a4)
"unwind-protect" (0x82e1d4)
"let" (0x82e3a4)
"catch" (0x82e594)
"helm-internal" (0x82e724)
"apply" (0x82e7d0)
"if" (0x82e9d4)
---Type <return> to continue, or q <return> to quit---
"helm" (0x82eb64)
"apply" (0x82ec10)
0x403fd68 Lisp type 6
"funcall" (0x82ee50)
"unwind-protect" (0x82f024)
"helm-let-internal" (0x82f110)
"if" (0x82f364)
"helm" (0x82f450)
"helm-other-buffer" (0x82f660)
"helm-for-files" (0x82f944)
"call-interactively" (0x82fb54)

Thread 4 (Thread 2412.0x116c):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c91d9da in ntdll!ZwReadFile () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x7c801879 in ReadFile () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x0000050c in ?? ()
#4  0x00000000 in ?? ()

Lisp Backtrace:
"delete-process" (0x82a55c)
"helm-kill-async-process" (0x82a74c)
"mapc" (0x82a83c)
"helm-kill-async-processes" (0x82a980)
"helm-update" (0x82ab80)
"if" (0x82adf4)
"helm-check-new-input" (0x82aee0)
"progn" (0x82b134)
"unwind-protect" (0x82b264)
"save-current-buffer" (0x82b3c4)
"let" (0x82b594)
"progn" (0x82b6c4)
"condition-case" (0x82b8a4)
"let" (0x82ba74)
"helm-check-minibuffer-input-1" (0x82bd0c)
"apply" (0x82bd08)
"byte-code" (0x82bf7c)
"timer-event-handler" (0x82c3fc)
"read-from-minibuffer" (0x82ceec)
"let" (0x82d114)
"cond" (0x82d274)
"let*" (0x82d404)
"save-current-buffer" (0x82d564)
"helm-read-pattern-maybe" (0x82d650)
"unwind-protect" (0x82d8b4)
"progn" (0x82d9e4)
"unwind-protect" (0x82db14)
---Type <return> to continue, or q <return> to quit---
"let" (0x82dce4)
"let" (0x82dec4)
"condition-case" (0x82e0a4)
"unwind-protect" (0x82e1d4)
"let" (0x82e3a4)
"catch" (0x82e594)
"helm-internal" (0x82e724)
"apply" (0x82e7d0)
"if" (0x82e9d4)
"helm" (0x82eb64)
"apply" (0x82ec10)
0x403fd68 Lisp type 6
"funcall" (0x82ee50)
"unwind-protect" (0x82f024)
"helm-let-internal" (0x82f110)
"if" (0x82f364)
"helm" (0x82f450)
"helm-other-buffer" (0x82f660)
"helm-for-files" (0x82f944)
"call-interactively" (0x82fb54)

Thread 3 (Thread 2412.0x131c):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c91d9da in ntdll!ZwReadFile () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x7c801879 in ReadFile () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x000006a4 in ?? ()
#4  0x00000000 in ?? ()

Lisp Backtrace:
"delete-process" (0x82a55c)
"helm-kill-async-process" (0x82a74c)
"mapc" (0x82a83c)
"helm-kill-async-processes" (0x82a980)
"helm-update" (0x82ab80)
"if" (0x82adf4)
"helm-check-new-input" (0x82aee0)
"progn" (0x82b134)
"unwind-protect" (0x82b264)
"save-current-buffer" (0x82b3c4)
"let" (0x82b594)
"progn" (0x82b6c4)
"condition-case" (0x82b8a4)
"let" (0x82ba74)
"helm-check-minibuffer-input-1" (0x82bd0c)
"apply" (0x82bd08)
"byte-code" (0x82bf7c)
"timer-event-handler" (0x82c3fc)
---Type <return> to continue, or q <return> to quit---
"read-from-minibuffer" (0x82ceec)
"let" (0x82d114)
"cond" (0x82d274)
"let*" (0x82d404)
"save-current-buffer" (0x82d564)
"helm-read-pattern-maybe" (0x82d650)
"unwind-protect" (0x82d8b4)
"progn" (0x82d9e4)
"unwind-protect" (0x82db14)
"let" (0x82dce4)
"let" (0x82dec4)
"condition-case" (0x82e0a4)
"unwind-protect" (0x82e1d4)
"let" (0x82e3a4)
"catch" (0x82e594)
"helm-internal" (0x82e724)
"apply" (0x82e7d0)
"if" (0x82e9d4)
"helm" (0x82eb64)
"apply" (0x82ec10)
0x403fd68 Lisp type 6
"funcall" (0x82ee50)
"unwind-protect" (0x82f024)
"helm-let-internal" (0x82f110)
"if" (0x82f364)
"helm" (0x82f450)
"helm-other-buffer" (0x82f660)
"helm-for-files" (0x82f944)
"call-interactively" (0x82fb54)

Thread 2 (Thread 2412.0x13b4):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7e3991be in USER32!GetProcessWindowStation () from /cygdrive/c/WINDOWS/system32/USER32.dll
#2  0x7e3991f1 in USER32!GetMessageW () from /cygdrive/c/WINDOWS/system32/USER32.dll
#3  0x011490bd in w32_msg_pump (msg_buf=0x7236ff54) at w32fns.c:2263
#4  0x011492fb in w32_msg_worker@4 (arg=0x0) at w32fns.c:2485
#5  0x7c80b729 in KERNEL32!GetModuleFileNameA () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#6  0x00000000 in ?? ()

Lisp Backtrace:
"delete-process" (0x82a55c)
"helm-kill-async-process" (0x82a74c)
"mapc" (0x82a83c)
"helm-kill-async-processes" (0x82a980)
"helm-update" (0x82ab80)
"if" (0x82adf4)
"helm-check-new-input" (0x82aee0)
---Type <return> to continue, or q <return> to quit---
"progn" (0x82b134)
"unwind-protect" (0x82b264)
"save-current-buffer" (0x82b3c4)
"let" (0x82b594)
"progn" (0x82b6c4)
"condition-case" (0x82b8a4)
"let" (0x82ba74)
"helm-check-minibuffer-input-1" (0x82bd0c)
"apply" (0x82bd08)
"byte-code" (0x82bf7c)
"timer-event-handler" (0x82c3fc)
"read-from-minibuffer" (0x82ceec)
"let" (0x82d114)
"cond" (0x82d274)
"let*" (0x82d404)
"save-current-buffer" (0x82d564)
"helm-read-pattern-maybe" (0x82d650)
"unwind-protect" (0x82d8b4)
"progn" (0x82d9e4)
"unwind-protect" (0x82db14)
"let" (0x82dce4)
"let" (0x82dec4)
"condition-case" (0x82e0a4)
"unwind-protect" (0x82e1d4)
"let" (0x82e3a4)
"catch" (0x82e594)
"helm-internal" (0x82e724)
"apply" (0x82e7d0)
"if" (0x82e9d4)
"helm" (0x82eb64)
"apply" (0x82ec10)
0x403fd68 Lisp type 6
"funcall" (0x82ee50)
"unwind-protect" (0x82f024)
"helm-let-internal" (0x82f110)
"if" (0x82f364)
"helm" (0x82f450)
"helm-other-buffer" (0x82f660)
"helm-for-files" (0x82f944)
"call-interactively" (0x82fb54)

Thread 1 (Thread 2412.0x720):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x7c929b23 in ntdll!RtlpWaitForCriticalSection () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#3  0x7c911046 in ntdll!RtlEnumerateGenericTableLikeADirectory () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#4  0x00a41fbc in ?? ()
---Type <return> to continue, or q <return> to quit---
#5  0x77bfd114 in msvcrt!_close () from /cygdrive/c/WINDOWS/system32/msvcrt.dll
#6  0x00000004 in ?? ()
#7  0x00000008 in ?? ()
#8  0x00000004 in ?? ()
#9  0x04ae9e70 in ?? ()
#10 0x0105fdc8 in sys_close (fd=4) at w32.c:5960
#11 0x01145749 in emacs_close (fd=4) at sysdep.c:1851
#12 0x0104b550 in deactivate_process (proc=78552693) at process.c:3929
#13 0x0104457e in remove_process (proc=78552693) at process.c:746
#14 0x010519b6 in status_notify (deleting_process=0x4ae9e70) at process.c:6673
#15 0x01044a4f in Fdelete_process (process=78552693) at process.c:861
#16 0x01034973 in eval_sub (form=61861718) at eval.c:2157
#17 0x0103087a in Fprogn (args=61861422) at eval.c:369
#18 0x010374ef in funcall_lambda (fun=61861358, nargs=1, arg_vector=0x82a74c) at eval.c:3021
#19 0x01036b8f in Ffuncall (nargs=2, args=0x82a748) at eval.c:2857
#20 0x01035e61 in call1 (fn=62683074, arg1=78552693) at eval.c:2590
#21 0x0107bf8c in mapcar1 (leni=1, vals=0x0, fn=62683074, seq=76855542) at fns.c:2318
#22 0x0107c477 in Fmapc (function=62683074, sequence=76855542) at fns.c:2407
#23 0x010349e0 in eval_sub (form=61862254) at eval.c:2160
#24 0x0103087a in Fprogn (args=61862038) at eval.c:369
#25 0x010374ef in funcall_lambda (fun=61861974, nargs=0, arg_vector=0x82a980) at eval.c:3021
#26 0x01036dfe in apply_lambda (fun=61861974, args=56346650) at eval.c:2905
#27 0x01034f5b in eval_sub (form=61760982) at eval.c:2232
#28 0x0103087a in Fprogn (args=61774534) at eval.c:369
#29 0x010374ef in funcall_lambda (fun=61774606, nargs=0, arg_vector=0x82ab80) at eval.c:3021
#30 0x01036dfe in apply_lambda (fun=61774606, args=56346650) at eval.c:2905
#31 0x01034f5b in eval_sub (form=56593110) at eval.c:2232
#32 0x0103087a in Fprogn (args=56592750) at eval.c:369
#33 0x010306fe in Fif (args=56592046) at eval.c:320
#34 0x0103453b in eval_sub (form=56592054) at eval.c:2105
#35 0x0103087a in Fprogn (args=56591806) at eval.c:369
#36 0x010374ef in funcall_lambda (fun=56591830, nargs=1, arg_vector=0x82aee0) at eval.c:3021
#37 0x01036dfe in apply_lambda (fun=56591830, args=61546790) at eval.c:2905
#38 0x01034f5b in eval_sub (form=61546854) at eval.c:2232
#39 0x0103087a in Fprogn (args=56594134) at eval.c:369
#40 0x0103453b in eval_sub (form=56594014) at eval.c:2105
#41 0x01032267 in Funwind_protect (args=56594006) at eval.c:1167
#42 0x0103453b in eval_sub (form=56593998) at eval.c:2105
#43 0x0103087a in Fprogn (args=56593974) at eval.c:369
#44 0x011032d4 in Fsave_current_buffer (args=56593974) at editfns.c:951
#45 0x0103453b in eval_sub (form=56593966) at eval.c:2105
#46 0x0103087a in Fprogn (args=56593958) at eval.c:369
#47 0x01031cc1 in Flet (args=56593950) at eval.c:923
#48 0x0103453b in eval_sub (form=56593942) at eval.c:2105
#49 0x0103087a in Fprogn (args=56593734) at eval.c:369
#50 0x0103453b in eval_sub (form=56593742) at eval.c:2105
#51 0x010325bd in internal_lisp_condition_case (var=58047706, bodyform=56593742, handlers=67374158) at eval.c:1262
---Type <return> to continue, or q <return> to quit---
#52 0x010322d7 in Fcondition_case (args=56593662) at eval.c:1203
#53 0x0103453b in eval_sub (form=56593654) at eval.c:2105
#54 0x0103087a in Fprogn (args=56593646) at eval.c:369
#55 0x01031cc1 in Flet (args=56593630) at eval.c:923
#56 0x0103453b in eval_sub (form=56593622) at eval.c:2105
#57 0x0103087a in Fprogn (args=56593590) at eval.c:369
#58 0x010374ef in funcall_lambda (fun=56593614, nargs=0, arg_vector=0x82bd0c) at eval.c:3021
#59 0x01036b8f in Ffuncall (nargs=1, args=0x82bd08) at eval.c:2857
#60 0x0103505e in Fapply (nargs=2, args=0x82bd08) at eval.c:2269
#61 0x0103640c in Ffuncall (nargs=3, args=0x82bd04) at eval.c:2777
#62 0x010e0e77 in exec_byte_code (bytestr=20934073, vector=20934125, maxdepth=16, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#63 0x010e023e in Fbyte_code (bytestr=20934073, vector=20934125, maxdepth=16) at bytecode.c:474
#64 0x01034a57 in eval_sub (form=20934062) at eval.c:2163
#65 0x010325bd in internal_lisp_condition_case (var=56346650, bodyform=20934062, handlers=20120582) at eval.c:1262
#66 0x010e1ab4 in exec_byte_code (bytestr=20933817, vector=20933949, maxdepth=20, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:1095
#67 0x01037624 in funcall_lambda (fun=20933789, nargs=1, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#68 0x01036abd in Ffuncall (nargs=2, args=0x82c3f8) at eval.c:2845
#69 0x01035e61 in call1 (fn=56388898, arg1=78552965) at eval.c:2590
#70 0x0100e60f in timer_check_2 () at keyboard.c:4461
#71 0x0100e692 in timer_check () at keyboard.c:4507
#72 0x0100c4a7 in readable_events (flags=1) at keyboard.c:3404
#73 0x01014ffa in get_input_pending (addr=0x1664980, flags=1) at keyboard.c:6730
#74 0x0102083f in detect_input_pending_run_timers (do_display=1) at keyboard.c:10357
#75 0x0104cfc2 in wait_reading_process_output (time_limit=8, nsecs=0, read_kbd=-1, do_display=1, wait_for_cell=56346650,
    wait_proc=0x0, just_wait_proc=0) at process.c:4768
#76 0x010fbc2a in sit_for (timeout=32, reading=true, do_display=1) at dispnew.c:5977
#77 0x010095c4 in read_char (commandflag=1, nmaps=2, maps=0x82c880, prev_event=56346650, used_mouse_menu=0x82c958, end_time=0x0)
    at keyboard.c:2707
#78 0x0101ccb2 in read_key_sequence (keybuf=0x82cae0, bufsize=30, prompt=56346650, dont_downcase_last=0,
    can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9312
#79 0x01005f89 in command_loop_1 () at keyboard.c:1487
#80 0x0103269f in internal_condition_case (bfun=0x1005a97 <command_loop_1>, handlers=56397234, hfun=0x100526a <cmd_error>)
    at eval.c:1308
#81 0x010056c4 in command_loop_2 (ignore=56346650) at keyboard.c:1182
#82 0x010320bb in internal_catch (tag=56450866, func=0x10056a0 <command_loop_2>, arg=56346650) at eval.c:1069
#83 0x0100562d in command_loop () at keyboard.c:1147
#84 0x01004c27 in recursive_edit_1 () at keyboard.c:782
#85 0x010beab0 in read_minibuf (map=67894814, initial=56346650, prompt=65029089, expflag=0, histvar=56468442, histpos=0,
    defalt=69408721, allow_props=0, inherit_input_method=0) at minibuf.c:685
#86 0x010bf7b3 in Fread_from_minibuffer (prompt=65029089, initial_contents=56346650, keymap=67894814, sys_read=56346650,
    hist=56346650, default_value=69408721, inherit_input_method=56346650) at minibuf.c:987
#87 0x01034cc7 in eval_sub (form=60478894) at eval.c:2181
#88 0x0103087a in Fprogn (args=60478718) at eval.c:369
#89 0x01031cc1 in Flet (args=60548358) at eval.c:923
#90 0x0103453b in eval_sub (form=60548350) at eval.c:2105
---Type <return> to continue, or q <return> to quit---
#91 0x0103087a in Fprogn (args=60548334) at eval.c:369
#92 0x010307c8 in Fcond (args=60548294) at eval.c:347
#93 0x0103453b in eval_sub (form=60548270) at eval.c:2105
#94 0x0103087a in Fprogn (args=60548262) at eval.c:369
#95 0x01031829 in FletX (args=60548246) at eval.c:853
#96 0x0103453b in eval_sub (form=60548238) at eval.c:2105
#97 0x0103087a in Fprogn (args=60548054) at eval.c:369
#98 0x011032d4 in Fsave_current_buffer (args=60548062) at editfns.c:951
#99 0x0103453b in eval_sub (form=60548134) at eval.c:2105
#100 0x0103087a in Fprogn (args=60547782) at eval.c:369
#101 0x010374ef in funcall_lambda (fun=60548038, nargs=7, arg_vector=0x82d650) at eval.c:3021
#102 0x01036dfe in apply_lambda (fun=60548038, args=67413790) at eval.c:2905
#103 0x01034f5b in eval_sub (form=67413782) at eval.c:2232
#104 0x01032267 in Funwind_protect (args=67413854) at eval.c:1167
#105 0x0103453b in eval_sub (form=67413846) at eval.c:2105
#106 0x0103087a in Fprogn (args=67413902) at eval.c:369
#107 0x0103453b in eval_sub (form=67413870) at eval.c:2105
#108 0x01032267 in Funwind_protect (args=67413918) at eval.c:1167
#109 0x0103453b in eval_sub (form=67413910) at eval.c:2105
#110 0x0103087a in Fprogn (args=67411638) at eval.c:369
#111 0x01031cc1 in Flet (args=67411646) at eval.c:923
#112 0x0103453b in eval_sub (form=67411654) at eval.c:2105
#113 0x0103087a in Fprogn (args=67411662) at eval.c:369
#114 0x01031cc1 in Flet (args=67411814) at eval.c:923
#115 0x0103453b in eval_sub (form=67411822) at eval.c:2105
#116 0x010325bd in internal_lisp_condition_case (var=58047706, bodyform=67411822, handlers=67414686) at eval.c:1262
#117 0x010322d7 in Fcondition_case (args=67411902) at eval.c:1203
#118 0x0103453b in eval_sub (form=67411910) at eval.c:2105
#119 0x01032267 in Funwind_protect (args=67411926) at eval.c:1167
#120 0x0103453b in eval_sub (form=67411918) at eval.c:2105
#121 0x0103087a in Fprogn (args=67409950) at eval.c:369
#122 0x01031cc1 in Flet (args=67409958) at eval.c:923
#123 0x0103453b in eval_sub (form=67409966) at eval.c:2105
#124 0x0103087a in Fprogn (args=67409974) at eval.c:369
#125 0x010320bb in internal_catch (tag=56450866, func=0x1030825 <Fprogn>, arg=67413134) at eval.c:1069
#126 0x01032021 in Fcatch (args=67413126) at eval.c:1040
#127 0x0103453b in eval_sub (form=67413118) at eval.c:2105
#128 0x0103087a in Fprogn (args=67410006) at eval.c:369
#129 0x010374ef in funcall_lambda (fun=67409982, nargs=9, arg_vector=0x82e724) at eval.c:3021
#130 0x01036b8f in Ffuncall (nargs=10, args=0x82e720) at eval.c:2857
#131 0x010358a8 in Fapply (nargs=2, args=0x82e7d0) at eval.c:2326
#132 0x010347cc in eval_sub (form=67371854) at eval.c:2129
#133 0x0103087a in Fprogn (args=67371894) at eval.c:369
#134 0x010306fe in Fif (args=67370422) at eval.c:320
#135 0x0103453b in eval_sub (form=67370414) at eval.c:2105
#136 0x0103087a in Fprogn (args=67370486) at eval.c:369
#137 0x010374ef in funcall_lambda (fun=67370462, nargs=9, arg_vector=0x82eb64) at eval.c:3021
---Type <return> to continue, or q <return> to quit---
#138 0x01036b8f in Ffuncall (nargs=10, args=0x82eb60) at eval.c:2857
#139 0x010358a8 in Fapply (nargs=2, args=0x82ec10) at eval.c:2326
#140 0x010347cc in eval_sub (form=67370326) at eval.c:2129
#141 0x0103087a in Fprogn (args=67370366) at eval.c:369
#142 0x010374ef in funcall_lambda (fun=67370350, nargs=0, arg_vector=0x82ee54) at eval.c:3021
#143 0x01036b8f in Ffuncall (nargs=1, args=0x82ee50) at eval.c:2857
#144 0x010347cc in eval_sub (form=67349422) at eval.c:2129
#145 0x01032267 in Funwind_protect (args=67349438) at eval.c:1167
#146 0x0103453b in eval_sub (form=67349414) at eval.c:2105
#147 0x0103087a in Fprogn (args=67347550) at eval.c:369
#148 0x010374ef in funcall_lambda (fun=67347614, nargs=2, arg_vector=0x82f110) at eval.c:3021
#149 0x01036dfe in apply_lambda (fun=67347614, args=67370398) at eval.c:2905
#150 0x01034f5b in eval_sub (form=67370390) at eval.c:2232
#151 0x010306e1 in Fif (args=67370422) at eval.c:319
#152 0x0103453b in eval_sub (form=67370414) at eval.c:2105
#153 0x0103087a in Fprogn (args=67370486) at eval.c:369
#154 0x010374ef in funcall_lambda (fun=67370462, nargs=4, arg_vector=0x82f450) at eval.c:3021
#155 0x01036dfe in apply_lambda (fun=67370462, args=67408318) at eval.c:2905
#156 0x01034f5b in eval_sub (form=67408310) at eval.c:2232
#157 0x0103087a in Fprogn (args=67408438) at eval.c:369
#158 0x010374ef in funcall_lambda (fun=67408494, nargs=2, arg_vector=0x82f660) at eval.c:3021
#159 0x01036dfe in apply_lambda (fun=67408494, args=66726406) at eval.c:2905
#160 0x01034f5b in eval_sub (form=66726398) at eval.c:2232
#161 0x0103087a in Fprogn (args=66726510) at eval.c:369
#162 0x010374ef in funcall_lambda (fun=66726574, nargs=0, arg_vector=0x82f944) at eval.c:3021
#163 0x01036b8f in Ffuncall (nargs=1, args=0x82f940) at eval.c:2857
#164 0x01035dd8 in apply1 (fn=57906730, arg=56346650) at eval.c:2557
#165 0x010e4bed in Fcall_interactively (function=57906730, record_flag=56346650, keys=56368045) at callint.c:377
#166 0x0103677b in Ffuncall (nargs=4, args=0x82fb50) at eval.c:2803
#167 0x01035edb in call3 (fn=56457962, arg1=57906730, arg2=56346650, arg3=56346650) at eval.c:2621
#168 0x010207b2 in Fcommand_execute (cmd=57906730, record_flag=56346650, keys=56346650, special=56346650) at keyboard.c:10319
#169 0x010067de in command_loop_1 () at keyboard.c:1615
#170 0x0103269f in internal_condition_case (bfun=0x1005a97 <command_loop_1>, handlers=56397234, hfun=0x100526a <cmd_error>)
    at eval.c:1308
#171 0x010056c4 in command_loop_2 (ignore=56346650) at keyboard.c:1182
#172 0x010320bb in internal_catch (tag=56387090, func=0x10056a0 <command_loop_2>, arg=56346650) at eval.c:1069
#173 0x0100567e in command_loop () at keyboard.c:1161
#174 0x01004c27 in recursive_edit_1 () at keyboard.c:782
#175 0x01004f54 in Frecursive_edit () at keyboard.c:846
#176 0x01002b68 in main (argc=1, argv=0xa43e18) at emacs.c:1655

Lisp Backtrace:
"delete-process" (0x82a55c)
"helm-kill-async-process" (0x82a74c)
"mapc" (0x82a83c)
"helm-kill-async-processes" (0x82a980)
"helm-update" (0x82ab80)
---Type <return> to continue, or q <return> to quit---
"if" (0x82adf4)
"helm-check-new-input" (0x82aee0)
"progn" (0x82b134)
"unwind-protect" (0x82b264)
"save-current-buffer" (0x82b3c4)
"let" (0x82b594)
"progn" (0x82b6c4)
"condition-case" (0x82b8a4)
"let" (0x82ba74)
"helm-check-minibuffer-input-1" (0x82bd0c)
"apply" (0x82bd08)
"byte-code" (0x82bf7c)
"timer-event-handler" (0x82c3fc)
"read-from-minibuffer" (0x82ceec)
"let" (0x82d114)
"cond" (0x82d274)
"let*" (0x82d404)
"save-current-buffer" (0x82d564)
"helm-read-pattern-maybe" (0x82d650)
"unwind-protect" (0x82d8b4)
"progn" (0x82d9e4)
"unwind-protect" (0x82db14)
"let" (0x82dce4)
"let" (0x82dec4)
"condition-case" (0x82e0a4)
"unwind-protect" (0x82e1d4)
"let" (0x82e3a4)
"catch" (0x82e594)
"helm-internal" (0x82e724)
"apply" (0x82e7d0)
"if" (0x82e9d4)
"helm" (0x82eb64)
"apply" (0x82ec10)
0x403fd68 Lisp type 6
"funcall" (0x82ee50)
"unwind-protect" (0x82f024)
"helm-let-internal" (0x82f110)
"if" (0x82f364)
"helm" (0x82f450)
"helm-other-buffer" (0x82f660)
"helm-for-files" (0x82f944)
"call-interactively" (0x82fb54)
(gdb)
(gdb) xbacktrace
"delete-process" (0x82a55c)
"helm-kill-async-process" (0x82a74c)
"mapc" (0x82a83c)
"helm-kill-async-processes" (0x82a980)
"helm-update" (0x82ab80)
"if" (0x82adf4)
"helm-check-new-input" (0x82aee0)
"progn" (0x82b134)
"unwind-protect" (0x82b264)
"save-current-buffer" (0x82b3c4)
"let" (0x82b594)
"progn" (0x82b6c4)
"condition-case" (0x82b8a4)
"let" (0x82ba74)
"helm-check-minibuffer-input-1" (0x82bd0c)
"apply" (0x82bd08)
"byte-code" (0x82bf7c)
"timer-event-handler" (0x82c3fc)
"read-from-minibuffer" (0x82ceec)
"let" (0x82d114)
"cond" (0x82d274)
"let*" (0x82d404)
"save-current-buffer" (0x82d564)
"helm-read-pattern-maybe" (0x82d650)
"unwind-protect" (0x82d8b4)
"progn" (0x82d9e4)
"unwind-protect" (0x82db14)
"let" (0x82dce4)
"let" (0x82dec4)
"condition-case" (0x82e0a4)
"unwind-protect" (0x82e1d4)
"let" (0x82e3a4)
"catch" (0x82e594)
"helm-internal" (0x82e724)
"apply" (0x82e7d0)
"if" (0x82e9d4)
"helm" (0x82eb64)
"apply" (0x82ec10)
0x403fd68 Lisp type 6
"funcall" (0x82ee50)
"unwind-protect" (0x82f024)
"helm-let-internal" (0x82f110)
"if" (0x82f364)
"helm" (0x82f450)
"helm-other-buffer" (0x82f660)
"helm-for-files" (0x82f944)
"call-interactively" (0x82fb54)
(gdb) quit
A debugging session is active.

        Inferior 1 [process 2412] will be detached.

Quit anyway? (y or n) y
error return /netrel/src/gdb-7.5.50-1/gdb/windows-nat.c:1392 was 31
error return /netrel/src/gdb-7.5.50-1/gdb/windows-nat.c:1273 was 31
error return /netrel/src/gdb-7.5.50-1/gdb/windows-nat.c:1273 was 31
error return /netrel/src/gdb-7.5.50-1/gdb/windows-nat.c:1273 was 31
error return /netrel/src/gdb-7.5.50-1/gdb/windows-nat.c:1273 was 31
Quitting: Can't detach process 2412 (error 5)
Fabrice@MEDIACENTER:Program Files/Emacs-24.2 0$

* Emacs Abord Dialog (24.2)

$ gdb -p 5624
GNU gdb (GDB) 7.5.50.20120815-cvs (cygwin-special)
Copyright (C) 2012 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-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 5624
[New Thread 5624.0x15ac]
[New Thread 5624.0x16f4]
[New Thread 5624.0x1354]
Reading symbols from /cygdrive/c/Program Files/Emacs-24.2/bin/emacs.exe...done.
Warning: /cygdrive/c/Program Files/Emacs-24.2/../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 0x1154889: file w32fns.c, line 7200.
Temporary breakpoint 2 at 0x11449c9: file sysdep.c, line 819.
(gdb)
(gdb)
(gdb) continue
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 5624.0x15ac]
0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll
(gdb) thread apply all backtrace

Thread 2 (Thread 5624.0x16f4):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x77ef6bf2 in GdiDrawStream () from /cygdrive/c/WINDOWS/system32/GDI32.dll
#2  0x00fa2b1b in ?? () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#3  0x00fa289b in ?? () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#4  0x00fa406b in UxTheme!GetWindowTheme () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#5  0x00fa2c9f in UxTheme!DrawThemeParentBackground () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#6  0x00fa5f14 in UxTheme!SetThemeAppProperties () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#7  0x00fa6485 in UxTheme!SetThemeAppProperties () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#8  0x00fa67ed in UxTheme!SetThemeAppProperties () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#9  0x00fa1ac7 in ?? () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#10 0x00fa1b3d in ?? () from /cygdrive/c/WINDOWS/system32/uxtheme.dll
#11 0x7e3a94ed in USER32!GetPropW () from /cygdrive/c/WINDOWS/system32/USER32.dll
#12 0x0114d071 in w32_wnd_proc (hwnd=0x33039e, msg=134, wParam=0, lParam=0) at w32fns.c:3831
#13 0x7e398734 in USER32!GetDC () from /cygdrive/c/WINDOWS/system32/USER32.dll
#14 0x0033039e in ?? ()
#15 0x00000086 in ?? ()
#16 0x00000000 in ?? ()

Lisp Backtrace:
"progn" (0x82c474)
"if" (0x82c5a4)
"catch" (0x82c794)
"while" (0x82c904)
"save-restriction" (0x82ca64)
"save-excursion" (0x82cbc4)
"progn" (0x82ccf4)
"or" (0x82ce24)
"save-current-buffer" (0x82cf84)
"while" (0x82d0f4)
"while" (0x82d264)
"save-current-buffer" (0x82d3c4)
"let" (0x82d5c4)
"org-refile-get-targets" (0x82d6b0)
"setq" (0x82d924)
"let" (0x82daf4)
"org-refile-get-location" (0x82dbe0)
"save-excursion" (0x82de64)
"let" (0x82e034)
"or" (0x82e164)
"setq" (0x82e2b4)
"or" (0x82e3e4)
"if" (0x82e514)
"if" (0x82e674)
"let*" (0x82e804)
"if" (0x82e964)
---Type <return> to continue, or q <return> to quit---
"org-refile" (0x82eb44)
"call-interactively" (0x82ed0c)
"save-restriction" (0x82eec4)
"save-excursion" (0x82f024)
"save-current-buffer" (0x82f184)
"progn" (0x82f2b4)
"unwind-protect" (0x82f3e4)
"let" (0x82f5b4)
"let" (0x82f784)
"org-capture-refile" (0x82f944)
"call-interactively" (0x82fb54)

Thread 1 (Thread 5624.0x15ac):
#0  0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x011548c0 in emacs_abort () at w32fns.c:7214
#2  0x01055503 in sys_kill (pid=5624, sig=22) at w32proc.c:1432
#3  0x010014fc in fatal_error_backtrace (sig=22, backtrace_limit=2147483647) at emacs.c:331
#4  0x010431b7 in die (msg=0x1537030 "assertion failed: buffer->base_buffer->indirections > 0", file=0x1535810 "buffer.c",
    line=1664) at alloc.c:6398
#5  0x010ac068 in compact_buffer (buffer=0x3c44600) at buffer.c:1664
#6  0x0103fde2 in Fgarbage_collect () at alloc.c:5085
#7  0x0103997b in maybe_gc () at lisp.h:3637
#8  0x010341a8 in eval_sub (form=68615390) at eval.c:2054
#9  0x0103087a in Fprogn (args=68615310) at eval.c:369
#10 0x0103453b in eval_sub (form=68615462) at eval.c:2105
#11 0x010306e1 in Fif (args=68615294) at eval.c:319
#12 0x0103453b in eval_sub (form=68615302) at eval.c:2105
#13 0x0103087a in Fprogn (args=68615278) at eval.c:369
#14 0x010320bb in internal_catch (tag=58060850, func=0x1030825 <Fprogn>, arg=68616494) at eval.c:1069
#15 0x01032021 in Fcatch (args=68616502) at eval.c:1040
#16 0x0103453b in eval_sub (form=68616510) at eval.c:2105
#17 0x0103087a in Fprogn (args=68615246) at eval.c:369
#18 0x01031d5a in Fwhile (args=68615262) at eval.c:945
#19 0x0103453b in eval_sub (form=68615270) at eval.c:2105
#20 0x0103087a in Fprogn (args=68614998) at eval.c:369
#21 0x01109c8e in Fsave_restriction (body=68615014) at editfns.c:3423
#22 0x0103453b in eval_sub (form=68615022) at eval.c:2105
#23 0x0103087a in Fprogn (args=68614982) at eval.c:369
#24 0x0110328f in Fsave_excursion (args=68614982) at editfns.c:938
#25 0x0103453b in eval_sub (form=68614990) at eval.c:2105
#26 0x0103087a in Fprogn (args=68614974) at eval.c:369
#27 0x0103453b in eval_sub (form=68617014) at eval.c:2105
#28 0x01030584 in For (args=68614950) at eval.c:269
#29 0x0103453b in eval_sub (form=68614966) at eval.c:2105
#30 0x0103087a in Fprogn (args=68614926) at eval.c:369
#31 0x011032d4 in Fsave_current_buffer (args=68614934) at editfns.c:951
#32 0x0103453b in eval_sub (form=68614942) at eval.c:2105
---Type <return> to continue, or q <return> to quit---
#33 0x0103087a in Fprogn (args=68614774) at eval.c:369
#34 0x01031d5a in Fwhile (args=68617526) at eval.c:945
#35 0x0103453b in eval_sub (form=68617534) at eval.c:2105
#36 0x0103087a in Fprogn (args=68614726) at eval.c:369
#37 0x01031d5a in Fwhile (args=68619286) at eval.c:945
#38 0x0103453b in eval_sub (form=68619294) at eval.c:2105
#39 0x0103087a in Fprogn (args=68614702) at eval.c:369
#40 0x011032d4 in Fsave_current_buffer (args=68614710) at editfns.c:951
#41 0x0103453b in eval_sub (form=68614718) at eval.c:2105
#42 0x0103087a in Fprogn (args=68614686) at eval.c:369
#43 0x01031cc1 in Flet (args=68614646) at eval.c:923
#44 0x0103453b in eval_sub (form=68614638) at eval.c:2105
#45 0x0103087a in Fprogn (args=68614606) at eval.c:369
#46 0x010374ef in funcall_lambda (fun=68614630, nargs=2, arg_vector=0x82d6b0) at eval.c:3021
#47 0x01036dfe in apply_lambda (fun=68614630, args=68674142) at eval.c:2905
#48 0x01034f5b in eval_sub (form=68674150) at eval.c:2232
#49 0x01030a7d in Fsetq (args=68674158) at eval.c:438
#50 0x0103453b in eval_sub (form=68674166) at eval.c:2105
#51 0x0103087a in Fprogn (args=68674118) at eval.c:369
#52 0x01031cc1 in Flet (args=68670054) at eval.c:923
#53 0x0103453b in eval_sub (form=68670046) at eval.c:2105
#54 0x0103087a in Fprogn (args=68670014) at eval.c:369
#55 0x010374ef in funcall_lambda (fun=68670038, nargs=4, arg_vector=0x82dbe0) at eval.c:3021
#56 0x01036dfe in apply_lambda (fun=68670038, args=68640982) at eval.c:2905
#57 0x01034f5b in eval_sub (form=68641286) at eval.c:2232
#58 0x0103087a in Fprogn (args=68640862) at eval.c:369
#59 0x0110328f in Fsave_excursion (args=68635046) at editfns.c:938
#60 0x0103453b in eval_sub (form=68635054) at eval.c:2105
#61 0x0103087a in Fprogn (args=68634174) at eval.c:369
#62 0x01031cc1 in Flet (args=68634166) at eval.c:923
#63 0x0103453b in eval_sub (form=68634158) at eval.c:2105
#64 0x01030584 in For (args=68634134) at eval.c:269
#65 0x0103453b in eval_sub (form=68634150) at eval.c:2105
#66 0x01030a7d in Fsetq (args=68634118) at eval.c:438
#67 0x0103453b in eval_sub (form=68634126) at eval.c:2105
#68 0x01030584 in For (args=68634086) at eval.c:269
#69 0x0103453b in eval_sub (form=68634102) at eval.c:2105
#70 0x010306bb in Fif (args=68634070) at eval.c:315
#71 0x0103453b in eval_sub (form=68634078) at eval.c:2105
#72 0x0103087a in Fprogn (args=68675230) at eval.c:369
#73 0x010306fe in Fif (args=68675246) at eval.c:320
#74 0x0103453b in eval_sub (form=68675254) at eval.c:2105
#75 0x0103087a in Fprogn (args=68675222) at eval.c:369
#76 0x01031829 in FletX (args=68675214) at eval.c:853
#77 0x0103453b in eval_sub (form=68675206) at eval.c:2105
#78 0x0103087a in Fprogn (args=68675174) at eval.c:369
#79 0x010306fe in Fif (args=68675190) at eval.c:320
---Type <return> to continue, or q <return> to quit---
#80 0x0103453b in eval_sub (form=68675198) at eval.c:2105
#81 0x0103087a in Fprogn (args=68675134) at eval.c:369
#82 0x010374ef in funcall_lambda (fun=68675166, nargs=1, arg_vector=0x82eb44) at eval.c:3021
#83 0x01036b8f in Ffuncall (nargs=2, args=0x82eb40) at eval.c:2857
#84 0x010e6918 in Fcall_interactively (function=56783474, record_flag=56346650, keys=56368045) at callint.c:852
#85 0x01034a57 in eval_sub (form=75074790) at eval.c:2163
#86 0x0103087a in Fprogn (args=75074822) at eval.c:369
#87 0x01109c8e in Fsave_restriction (body=75074758) at editfns.c:3423
#88 0x0103453b in eval_sub (form=75074742) at eval.c:2105
#89 0x0103087a in Fprogn (args=75074830) at eval.c:369
#90 0x0110328f in Fsave_excursion (args=75074830) at editfns.c:938
#91 0x0103453b in eval_sub (form=75074734) at eval.c:2105
#92 0x0103087a in Fprogn (args=75075430) at eval.c:369
#93 0x011032d4 in Fsave_current_buffer (args=75075454) at editfns.c:951
#94 0x0103453b in eval_sub (form=75075462) at eval.c:2105
#95 0x0103087a in Fprogn (args=75073550) at eval.c:369
#96 0x0103453b in eval_sub (form=75073542) at eval.c:2105
#97 0x01032267 in Funwind_protect (args=75073566) at eval.c:1167
#98 0x0103453b in eval_sub (form=75073558) at eval.c:2105
#99 0x0103087a in Fprogn (args=75073590) at eval.c:369
#100 0x01031cc1 in Flet (args=75073598) at eval.c:923
#101 0x0103453b in eval_sub (form=75073606) at eval.c:2105
#102 0x0103087a in Fprogn (args=75073622) at eval.c:369
#103 0x01031cc1 in Flet (args=75073630) at eval.c:923
#104 0x0103453b in eval_sub (form=75073638) at eval.c:2105
#105 0x0103087a in Fprogn (args=75073646) at eval.c:369
#106 0x010374ef in funcall_lambda (fun=75075206, nargs=0, arg_vector=0x82f944) at eval.c:3021
#107 0x01036b8f in Ffuncall (nargs=1, args=0x82f940) at eval.c:2857
#108 0x01035dd8 in apply1 (fn=74372482, arg=56346650) at eval.c:2557
#109 0x010e4bed in Fcall_interactively (function=74372482, record_flag=56346650, keys=56368045) at callint.c:377
#110 0x0103677b in Ffuncall (nargs=4, args=0x82fb50) at eval.c:2803
#111 0x01035edb in call3 (fn=56457962, arg1=74372482, arg2=56346650, arg3=56346650) at eval.c:2621
#112 0x010207b2 in Fcommand_execute (cmd=74372482, record_flag=56346650, keys=56346650, special=56346650) at keyboard.c:10319
#113 0x010067de in command_loop_1 () at keyboard.c:1615
#114 0x0103269f in internal_condition_case (bfun=0x1005a97 <command_loop_1>, handlers=56397234, hfun=0x100526a <cmd_error>)
    at eval.c:1308
#115 0x010056c4 in command_loop_2 (ignore=56346650) at keyboard.c:1182
#116 0x010320bb in internal_catch (tag=56387090, func=0x10056a0 <command_loop_2>, arg=56346650) at eval.c:1069
#117 0x0100567e in command_loop () at keyboard.c:1161
#118 0x01004c27 in recursive_edit_1 () at keyboard.c:782
#119 0x01004f54 in Frecursive_edit () at keyboard.c:846
#120 0x01002b68 in main (argc=1, argv=0xa43e18) at emacs.c:1655

Lisp Backtrace:
"progn" (0x82c474)
"if" (0x82c5a4)
"catch" (0x82c794)
---Type <return> to continue, or q <return> to quit---
"while" (0x82c904)
"save-restriction" (0x82ca64)
"save-excursion" (0x82cbc4)
"progn" (0x82ccf4)
"or" (0x82ce24)
"save-current-buffer" (0x82cf84)
"while" (0x82d0f4)
"while" (0x82d264)
"save-current-buffer" (0x82d3c4)
"let" (0x82d5c4)
"org-refile-get-targets" (0x82d6b0)
"setq" (0x82d924)
"let" (0x82daf4)
"org-refile-get-location" (0x82dbe0)
"save-excursion" (0x82de64)
"let" (0x82e034)
"or" (0x82e164)
"setq" (0x82e2b4)
"or" (0x82e3e4)
"if" (0x82e514)
"if" (0x82e674)
"let*" (0x82e804)
"if" (0x82e964)
"org-refile" (0x82eb44)
"call-interactively" (0x82ed0c)
"save-restriction" (0x82eec4)
"save-excursion" (0x82f024)
"save-current-buffer" (0x82f184)
"progn" (0x82f2b4)
"unwind-protect" (0x82f3e4)
"let" (0x82f5b4)
"let" (0x82f784)
"org-capture-refile" (0x82f944)
"call-interactively" (0x82fb54)
(gdb)
(gdb) xbacktrace
"progn" (0x82c474)
"if" (0x82c5a4)
"catch" (0x82c794)
"while" (0x82c904)
"save-restriction" (0x82ca64)
"save-excursion" (0x82cbc4)
"progn" (0x82ccf4)
"or" (0x82ce24)
"save-current-buffer" (0x82cf84)
"while" (0x82d0f4)
"while" (0x82d264)
"save-current-buffer" (0x82d3c4)
"let" (0x82d5c4)
"org-refile-get-targets" (0x82d6b0)
"setq" (0x82d924)
"let" (0x82daf4)
"org-refile-get-location" (0x82dbe0)
"save-excursion" (0x82de64)
"let" (0x82e034)
"or" (0x82e164)
"setq" (0x82e2b4)
"or" (0x82e3e4)
"if" (0x82e514)
"if" (0x82e674)
"let*" (0x82e804)
"if" (0x82e964)
"org-refile" (0x82eb44)
"call-interactively" (0x82ed0c)
"save-restriction" (0x82eec4)
"save-excursion" (0x82f024)
"save-current-buffer" (0x82f184)
"progn" (0x82f2b4)
"unwind-protect" (0x82f3e4)
"let" (0x82f5b4)
"let" (0x82f784)
"org-capture-refile" (0x82f944)
"call-interactively" (0x82fb54)
(gdb)
"progn" (0x82c474)
"if" (0x82c5a4)
"catch" (0x82c794)
"while" (0x82c904)
"save-restriction" (0x82ca64)
"save-excursion" (0x82cbc4)
"progn" (0x82ccf4)
"or" (0x82ce24)
"save-current-buffer" (0x82cf84)
"while" (0x82d0f4)
"while" (0x82d264)
"save-current-buffer" (0x82d3c4)
"let" (0x82d5c4)
"org-refile-get-targets" (0x82d6b0)
"setq" (0x82d924)
"let" (0x82daf4)
"org-refile-get-location" (0x82dbe0)
"save-excursion" (0x82de64)
"let" (0x82e034)
"or" (0x82e164)
"setq" (0x82e2b4)
"or" (0x82e3e4)
"if" (0x82e514)
"if" (0x82e674)
"let*" (0x82e804)
"if" (0x82e964)
"org-refile" (0x82eb44)
"call-interactively" (0x82ed0c)
"save-restriction" (0x82eec4)
"save-excursion" (0x82f024)
"save-current-buffer" (0x82f184)
"progn" (0x82f2b4)
"unwind-protect" (0x82f3e4)
"let" (0x82f5b4)
"let" (0x82f784)
"org-capture-refile" (0x82f944)
"call-interactively" (0x82fb54)
(gdb)

* Emacs Abord Dialog (24.2)

GNU gdb (GDB) 7.5.50.20120815-cvs (cygwin-special)
Copyright (C) 2012 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-cygwin".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Attaching to process 3928
[New Thread 3928.0x7d0]
[New Thread 3928.0x1180]
[New Thread 3928.0x141c]
[New Thread 3928.0x1414]
Reading symbols from /cygdrive/c/Program Files/Emacs-24.2/bin/emacs.exe...done.
Warning: /cygdrive/c/Program Files/Emacs-24.2/../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 0x1154889: file w32fns.c, line 7200.
Temporary breakpoint 2 at 0x11449c9: file sysdep.c, line 819.
(gdb) continue
Continuing.

Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 3928.0x7d0]
0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll
(gdb) thread apply all backtrace

Thread 3 (Thread 3928.0x141c):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7c91df5a in ntdll!ZwWaitForSingleObject () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#2  0x7c8025db in WaitForSingleObjectEx () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#3  0x00000480 in ?? ()
#4  0x00000000 in ?? ()

Lisp Backtrace:
"format-time-string" (0x82cf8c)
"gnus-seconds-year" (0x82d1e0)
"eval" (0x82d458)
"byte-code" (0x82d6dc)
"gnus-user-date" (0x82daa0)
"format" (0x82dce4)
"insert" (0x82de04)
"progn" (0x82df34)
"gnus-add-text-properties" (0x82e034)
"let" (0x82e204)
"eval" (0x82e370)
"gnus-summary-prepare-threads" (0x82e6d8)
"gnus-summary-prepare" (0x82e9d8)
"gnus-summary-read-group-1" (0x82ecd8)
"gnus-summary-read-group" (0x82efe8)
"gnus-group-read-group" (0x82f2f8)
"gnus-group-select-group" (0x82f5e8)
"gnus-topic-select-group" (0x82f924)
"call-interactively" (0x82fb54)

Thread 2 (Thread 3928.0x1180):
#0  0x7c91e514 in ntdll!LdrAccessResource () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x7e3991be in USER32!GetProcessWindowStation () from /cygdrive/c/WINDOWS/system32/USER32.dll
#2  0x7e3991f1 in USER32!GetMessageW () from /cygdrive/c/WINDOWS/system32/USER32.dll
#3  0x011490bd in w32_msg_pump (msg_buf=0x7236ff54) at w32fns.c:2263
#4  0x011492fb in w32_msg_worker@4 (arg=0x0) at w32fns.c:2485
#5  0x7c80b729 in KERNEL32!GetModuleFileNameA () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#6  0x00000000 in ?? ()

Lisp Backtrace:
"format-time-string" (0x82cf8c)
"gnus-seconds-year" (0x82d1e0)
"eval" (0x82d458)
"byte-code" (0x82d6dc)
"gnus-user-date" (0x82daa0)
"format" (0x82dce4)
"insert" (0x82de04)
"progn" (0x82df34)
---Type <return> to continue, or q <return> to quit---
"gnus-add-text-properties" (0x82e034)
"let" (0x82e204)
"eval" (0x82e370)
"gnus-summary-prepare-threads" (0x82e6d8)
"gnus-summary-prepare" (0x82e9d8)
"gnus-summary-read-group-1" (0x82ecd8)
"gnus-summary-read-group" (0x82efe8)
"gnus-group-read-group" (0x82f2f8)
"gnus-group-select-group" (0x82f5e8)
"gnus-topic-select-group" (0x82f924)
"call-interactively" (0x82fb54)

Thread 1 (Thread 3928.0x7d0):
#0  0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll
#1  0x011548c0 in emacs_abort () at w32fns.c:7214
#2  0x01055503 in sys_kill (pid=3928, sig=22) at w32proc.c:1432
#3  0x010014fc in fatal_error_backtrace (sig=22, backtrace_limit=2147483647) at emacs.c:331
#4  0x010431b7 in die (msg=0x1537030 "assertion failed: buffer->base_buffer->indirections > 0", file=0x1535810 "buffer.c",
    line=1664) at alloc.c:6398
#5  0x010ac068 in compact_buffer (buffer=0x5695200) at buffer.c:1664
#6  0x0103fde2 in Fgarbage_collect () at alloc.c:5085
#7  0x0103997b in maybe_gc () at lisp.h:3637
#8  0x01036105 in Ffuncall (nargs=3, args=0x82cf88) at eval.c:2747
#9  0x010e0e77 in exec_byte_code (bytestr=67280609, vector=67239301, maxdepth=24, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#10 0x01037624 in funcall_lambda (fun=67239357, nargs=0, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#11 0x01036dfe in apply_lambda (fun=67239357, args=56346650) at eval.c:2905
#12 0x01034dd4 in eval_sub (form=79425814) at eval.c:2202
#13 0x010340a8 in Feval (form=79425814, lexical=56346650) at eval.c:2022
#14 0x0103670a in Ffuncall (nargs=2, args=0x82d454) at eval.c:2799
#15 0x010e0e77 in exec_byte_code (bytestr=71034417, vector=71022485, maxdepth=32, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#16 0x010e023e in Fbyte_code (bytestr=71034417, vector=71022485, maxdepth=32) at bytecode.c:474
#17 0x01034a57 in eval_sub (form=70955758) at eval.c:2163
#18 0x010325bd in internal_lisp_condition_case (var=56346650, bodyform=70955758, handlers=70955926) at eval.c:1262
#19 0x010e1ab4 in exec_byte_code (bytestr=71034369, vector=71022589, maxdepth=12, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:1095
#20 0x01037624 in funcall_lambda (fun=71022613, nargs=1, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#21 0x01036dfe in apply_lambda (fun=71022613, args=67929502) at eval.c:2905
#22 0x01034dd4 in eval_sub (form=67929486) at eval.c:2202
#23 0x01034733 in eval_sub (form=84414334) at eval.c:2121
#24 0x01034733 in eval_sub (form=84414350) at eval.c:2121
#25 0x0103087a in Fprogn (args=84414366) at eval.c:369
#26 0x0103453b in eval_sub (form=84414374) at eval.c:2105
#27 0x0103487a in eval_sub (form=84412438) at eval.c:2142
#28 0x0103087a in Fprogn (args=84411326) at eval.c:369
#29 0x01031cc1 in Flet (args=84409350) at eval.c:923
---Type <return> to continue, or q <return> to quit---
#30 0x0103453b in eval_sub (form=84409358) at eval.c:2105
#31 0x010340a8 in Feval (form=84409358, lexical=56346650) at eval.c:2022
#32 0x0103670a in Ffuncall (nargs=2, args=0x82e36c) at eval.c:2799
#33 0x010e0e77 in exec_byte_code (bytestr=71134625, vector=71117565, maxdepth=132, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#34 0x01037624 in funcall_lambda (fun=71118221, nargs=1, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#35 0x01036abd in Ffuncall (nargs=2, args=0x82e6d4) at eval.c:2845
#36 0x010e0e77 in exec_byte_code (bytestr=71038513, vector=71023373, maxdepth=28, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#37 0x01037624 in funcall_lambda (fun=71023453, nargs=0, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#38 0x01036abd in Ffuncall (nargs=1, args=0x82e9d4) at eval.c:2845
#39 0x010e0e77 in exec_byte_code (bytestr=71040785, vector=71022861, maxdepth=28, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#40 0x01037624 in funcall_lambda (fun=71023261, nargs=6, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#41 0x01036abd in Ffuncall (nargs=7, args=0x82ecd4) at eval.c:2845
#42 0x010e0e77 in exec_byte_code (bytestr=71040385, vector=71022757, maxdepth=32, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#43 0x01037624 in funcall_lambda (fun=71022829, nargs=7, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#44 0x01036abd in Ffuncall (nargs=8, args=0x82efe4) at eval.c:2845
#45 0x010e0e77 in exec_byte_code (bytestr=70285329, vector=70251517, maxdepth=36, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#46 0x01037624 in funcall_lambda (fun=70251629, nargs=2, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#47 0x01036abd in Ffuncall (nargs=3, args=0x82f2f4) at eval.c:2845
#48 0x010e0e77 in exec_byte_code (bytestr=70285777, vector=70251661, maxdepth=12, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#49 0x01037624 in funcall_lambda (fun=70251693, nargs=1, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#50 0x01036abd in Ffuncall (nargs=2, args=0x82f5e4) at eval.c:2845
#51 0x010e0e77 in exec_byte_code (bytestr=62647201, vector=78606245, maxdepth=8, args_template=56346650, nargs=0, args=0x0)
    at bytecode.c:899
#52 0x01037624 in funcall_lambda (fun=74156789, nargs=1, arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#53 0x01036abd in Ffuncall (nargs=2, args=0x82f920) at eval.c:2845
#54 0x010e6918 in Fcall_interactively (function=70102834, record_flag=56346650, keys=56368045) at callint.c:852
#55 0x0103677b in Ffuncall (nargs=4, args=0x82fb50) at eval.c:2803
#56 0x01035edb in call3 (fn=56457962, arg1=70102834, arg2=56346650, arg3=56346650) at eval.c:2621
#57 0x010207b2 in Fcommand_execute (cmd=70102834, record_flag=56346650, keys=56346650, special=56346650) at keyboard.c:10319
#58 0x010067de in command_loop_1 () at keyboard.c:1615
#59 0x0103269f in internal_condition_case (bfun=0x1005a97 <command_loop_1>, handlers=56397234, hfun=0x100526a <cmd_error>)
    at eval.c:1308
#60 0x010056c4 in command_loop_2 (ignore=56346650) at keyboard.c:1182
#61 0x010320bb in internal_catch (tag=56387090, func=0x10056a0 <command_loop_2>, arg=56346650) at eval.c:1069
#62 0x0100567e in command_loop () at keyboard.c:1161
#63 0x01004c27 in recursive_edit_1 () at keyboard.c:782
#64 0x01004f54 in Frecursive_edit () at keyboard.c:846
#65 0x01002b68 in main (argc=1, argv=0xa43e18) at emacs.c:1655

Lisp Backtrace:
"format-time-string" (0x82cf8c)
---Type <return> to continue, or q <return> to quit---
"gnus-seconds-year" (0x82d1e0)
"eval" (0x82d458)
"byte-code" (0x82d6dc)
"gnus-user-date" (0x82daa0)
"format" (0x82dce4)
"insert" (0x82de04)
"progn" (0x82df34)
"gnus-add-text-properties" (0x82e034)
"let" (0x82e204)
"eval" (0x82e370)
"gnus-summary-prepare-threads" (0x82e6d8)
"gnus-summary-prepare" (0x82e9d8)
"gnus-summary-read-group-1" (0x82ecd8)
"gnus-summary-read-group" (0x82efe8)
"gnus-group-read-group" (0x82f2f8)
"gnus-group-select-group" (0x82f5e8)
"gnus-topic-select-group" (0x82f924)
"call-interactively" (0x82fb54)
(gdb) xbacktrace
"format-time-string" (0x82cf8c)
"gnus-seconds-year" (0x82d1e0)
"eval" (0x82d458)
"byte-code" (0x82d6dc)
"gnus-user-date" (0x82daa0)
"format" (0x82dce4)
"insert" (0x82de04)
"progn" (0x82df34)
"gnus-add-text-properties" (0x82e034)
"let" (0x82e204)
"eval" (0x82e370)
"gnus-summary-prepare-threads" (0x82e6d8)
"gnus-summary-prepare" (0x82e9d8)
"gnus-summary-read-group-1" (0x82ecd8)
"gnus-summary-read-group" (0x82efe8)
"gnus-group-read-group" (0x82f2f8)
"gnus-group-select-group" (0x82f5e8)
"gnus-topic-select-group" (0x82f924)
"call-interactively" (0x82fb54)
(gdb)

HTH!

Best regards,
Fabrice