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

From: "Fabrice Niessen" <[email-masked]>
Date: Fri, 12 Oct 2012 14:20:04 +0200

Hello Eli,

I've been running Emacs 24.2 for 1.5 day so far with no crash... This is with
the version I got from
ftp://ftp.gnu.org/gnu/emacs/windows/emacs-24.2-bin-i386.zip, dated 7th of
October. So, clearly, one of the most often occurring reason for crashing has
been fixed. That's pretty good news.

Now, I just got an infloop with that version, when I was using helm-for-files,
from Helm version:

--8<---------------cut here---------------start------------->8---
commit a6da05c96da1dbf9f3591060880b2801e5503500
Author: Thierry Volpiatto <[email-masked]>
Date:   Fri Aug 31 08:45:28 2012 +0200
--8<---------------cut here---------------end--------------->8---

Here the backtrace, and the short "finish" dance:

--8<---------------cut here---------------start------------->8---
$ gdb -p 7864
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 7864
[New Thread 7864.0x17ac]
[New Thread 7864.0x1e6c]
[New Thread 7864.0x8a4]
[New Thread 7864.0x12d8]
[New Thread 7864.0x18d0]
[New Thread 7864.0x14e0]
[New Thread 7864.0x690]
Reading symbols from /cygdrive/c/Program Files/Emacs-24.2/bin/emacs.exe...done.
(gdb) thread apply all backtrace

Thread 7 (Thread 7864.0x690):
#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  0x72f8ffd0 in ?? ()
#6  0x00000000 in ?? ()

Thread 6 (Thread 7864.0x14e0):
#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  0x00000650 in ?? ()
#4  0x00000000 in ?? ()

Thread 5 (Thread 7864.0x18d0):
#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  0x000006e0 in ?? ()
#4  0x00000000 in ?? ()

Thread 4 (Thread 7864.0x12d8):
#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  0x725c402b in ?? () from /cygdrive/c/WINDOWS/System32/mswsock.dll
#3  0x725c57c9 in ?? () from /cygdrive/c/WINDOWS/System32/mswsock.dll
#4  0x724b67de in WSACancelAsyncRequest () from /cygdrive/c/WINDOWS/system32/Ws2_32.dll
#5  0x0102f9f2 in _sys_read_ahead ()
#6  0x0105dc16 in reader_thread@4 ()
#7  0x7c80b729 in KERNEL32!GetModuleFileNameA () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#8  0x00000000 in ?? ()

Thread 3 (Thread 7864.0x8a4):
#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  0x00000584 in ?? ()
#4  0x00000000 in ?? ()

Thread 2 (Thread 7864.0x1e6c):
#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  0x7e3a776b in USER32!GetMessageA () from /cygdrive/c/WINDOWS/system32/USER32.dll
#3  0x010bb5b3 in w32_msg_pump.isra.14 ()
---Type <return> to continue, or q <return> to quit---
#4  0x010bbc23 in w32_msg_worker@4 ()
#5  0x7c80b729 in KERNEL32!GetModuleFileNameA () from /cygdrive/c/WINDOWS/system32/kernel32.dll
#6  0x00000000 in ?? ()

Thread 1 (Thread 7864.0x17ac):
#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  0x00a41fe0 in ?? ()
#5  0x77bfd114 in msvcrt!_close () from /cygdrive/c/WINDOWS/system32/msvcrt.dll
#6  0x00000005 in ?? ()
#7  0x013deddc in fd_info ()
#8  0x013df250 in child_procs ()
#9  0x00000005 in ?? ()
#10 0x0141f81a in __register_frame_info ()
#11 0x0102f72b in sys_close ()
#12 0x010c2b6c in emacs_close ()
#13 0x0101204c in deactivate_process ()
#14 0x010141f2 in status_notify ()
#15 0x010147cc in Fdelete_process ()
#16 0x0100e4b4 in eval_sub ()
#17 0x0100e810 in Fprogn ()
#18 0x0100eaff in funcall_lambda ()
#19 0x0100ed43 in Ffuncall ()
#20 0x0100f1fe in call1 ()
#21 0x0104c4cd in mapcar1 ()
#22 0x0104f6db in Fmapc ()
#23 0x0100e4a4 in eval_sub ()
#24 0x0100e810 in Fprogn ()
#25 0x0100eaff in funcall_lambda ()
#26 0x0100dfa2 in apply_lambda ()
#27 0x0100e216 in eval_sub ()
#28 0x0100e810 in Fprogn ()
#29 0x0100eaff in funcall_lambda ()
#30 0x0100dfa2 in apply_lambda ()
#31 0x0100e216 in eval_sub ()
#32 0x0100e810 in Fprogn ()
#33 0x0100e60d in eval_sub ()
#34 0x0100e3a7 in eval_sub ()
#35 0x0100e810 in Fprogn ()
#36 0x0100eaff in funcall_lambda ()
#37 0x0100dfa2 in apply_lambda ()
#38 0x0100e216 in eval_sub ()
#39 0x0100e810 in Fprogn ()
#40 0x0100e60d in eval_sub ()
#41 0x0101120e in Funwind_protect ()
---Type <return> to continue, or q <return> to quit---
#42 0x0100e60d in eval_sub ()
#43 0x0100e810 in Fprogn ()
#44 0x010430e4 in Fsave_current_buffer ()
#45 0x0100e60d in eval_sub ()
#46 0x0100e810 in Fprogn ()
#47 0x0101145d in Flet ()
#48 0x0100e60d in eval_sub ()
#49 0x0100e3a7 in eval_sub ()
#50 0x0100e810 in Fprogn ()
#51 0x0100e60d in eval_sub ()
#52 0x0101111b in internal_lisp_condition_case ()
#53 0x010111c8 in Fcondition_case ()
#54 0x0100e60d in eval_sub ()
#55 0x0100e810 in Fprogn ()
#56 0x0101145d in Flet ()
#57 0x0100e60d in eval_sub ()
#58 0x0100e3a7 in eval_sub ()
#59 0x0100e810 in Fprogn ()
#60 0x0100eaff in funcall_lambda ()
#61 0x0100ed43 in Ffuncall ()
#62 0x0100fd11 in Fapply ()
#63 0x0100ef7d in Ffuncall ()
#64 0x0107139d in exec_byte_code ()
#65 0x01071f9a in Fbyte_code ()
#66 0x0100e48d in eval_sub ()
#67 0x0101111b in internal_lisp_condition_case ()
#68 0x01070ae5 in exec_byte_code ()
#69 0x0100e9ec in funcall_lambda ()
#70 0x0100ed43 in Ffuncall ()
#71 0x0100f1fe in call1 ()
#72 0x0101f040 in timer_check ()
#73 0x0101f1e5 in readable_events ()
#74 0x0101fcce in get_input_pending.constprop.15 ()
#75 0x01021698 in detect_input_pending_run_timers ()
#76 0x01015b49 in wait_reading_process_output ()
#77 0x0105c7e4 in sit_for ()
#78 0x01023219 in read_char ()
#79 0x01024005 in read_key_sequence.constprop.14 ()
#80 0x01025879 in command_loop_1 ()
#81 0x0100d5b1 in internal_condition_case ()
#82 0x0101cf14 in command_loop_2 ()
#83 0x0100d4fb in internal_catch ()
#84 0x0101dc03 in recursive_edit_1 ()
#85 0x01085ca8 in read_minibuf ()
#86 0x0100e3eb in eval_sub ()
#87 0x0100e810 in Fprogn ()
#88 0x0101145d in Flet ()
---Type <return> to continue, or q <return> to quit---
#89 0x0100e60d in eval_sub ()
#90 0x0100e810 in Fprogn ()
#91 0x0100e60d in eval_sub ()
#92 0x0100e810 in Fprogn ()
#93 0x01011638 in FletX ()
#94 0x0100e60d in eval_sub ()
#95 0x0100e810 in Fprogn ()
#96 0x010430e4 in Fsave_current_buffer ()
#97 0x0100e60d in eval_sub ()
#98 0x0100e3a7 in eval_sub ()
#99 0x0100e810 in Fprogn ()
#100 0x0100eaff in funcall_lambda ()
#101 0x0100dfa2 in apply_lambda ()
#102 0x0100e216 in eval_sub ()
#103 0x0101120e in Funwind_protect ()
#104 0x0100e60d in eval_sub ()
#105 0x0100e810 in Fprogn ()
#106 0x0100e60d in eval_sub ()
#107 0x0101120e in Funwind_protect ()
#108 0x0100e60d in eval_sub ()
#109 0x0100e810 in Fprogn ()
#110 0x0101145d in Flet ()
#111 0x0100e60d in eval_sub ()
#112 0x0100e3a7 in eval_sub ()
#113 0x0100e810 in Fprogn ()
#114 0x0101145d in Flet ()
#115 0x0100e60d in eval_sub ()
#116 0x0101111b in internal_lisp_condition_case ()
#117 0x010111c8 in Fcondition_case ()
#118 0x0100e60d in eval_sub ()
#119 0x0101120e in Funwind_protect ()
#120 0x0100e60d in eval_sub ()
#121 0x0100e810 in Fprogn ()
#122 0x0101145d in Flet ()
#123 0x0100e60d in eval_sub ()
#124 0x0100e810 in Fprogn ()
#125 0x0100d4fb in internal_catch ()
#126 0x0100e6b9 in Fcatch ()
#127 0x0100e60d in eval_sub ()
#128 0x0100e810 in Fprogn ()
#129 0x0100eaff in funcall_lambda ()
#130 0x0100ed43 in Ffuncall ()
#131 0x0100fcd5 in Fapply ()
#132 0x0100e5db in eval_sub ()
#133 0x0100e810 in Fprogn ()
#134 0x0100e60d in eval_sub ()
#135 0x0100e810 in Fprogn ()
---Type <return> to continue, or q <return> to quit---
#136 0x0100e60d in eval_sub ()
#137 0x0100e810 in Fprogn ()
#138 0x0101145d in Flet ()
#139 0x0100e60d in eval_sub ()
#140 0x0100e810 in Fprogn ()
#141 0x0100eaff in funcall_lambda ()
#142 0x0100ed43 in Ffuncall ()
#143 0x0100fcd5 in Fapply ()
#144 0x0100e5db in eval_sub ()
#145 0x0100e810 in Fprogn ()
#146 0x0100eaff in funcall_lambda ()
#147 0x0100ed43 in Ffuncall ()
#148 0x0100e5db in eval_sub ()
#149 0x0101120e in Funwind_protect ()
#150 0x0100e60d in eval_sub ()
#151 0x0100e810 in Fprogn ()
#152 0x0100eaff in funcall_lambda ()
#153 0x0100dfa2 in apply_lambda ()
#154 0x0100e216 in eval_sub ()
#155 0x0100e60d in eval_sub ()
#156 0x0100e810 in Fprogn ()
#157 0x0100e60d in eval_sub ()
#158 0x0100e810 in Fprogn ()
#159 0x0101145d in Flet ()
#160 0x0100e60d in eval_sub ()
#161 0x0100e810 in Fprogn ()
#162 0x0100eaff in funcall_lambda ()
#163 0x0100dfa2 in apply_lambda ()
#164 0x0100e216 in eval_sub ()
#165 0x0100e810 in Fprogn ()
#166 0x0100eaff in funcall_lambda ()
#167 0x0100dfa2 in apply_lambda ()
#168 0x0100e216 in eval_sub ()
#169 0x0100e810 in Fprogn ()
#170 0x0101145d in Flet ()
#171 0x0100e60d in eval_sub ()
#172 0x0100e810 in Fprogn ()
#173 0x0100eaff in funcall_lambda ()
#174 0x0100ed43 in Ffuncall ()
#175 0x0100f2e7 in apply1 ()
#176 0x0107230b in Fcall_interactively ()
#177 0x0100eed9 in Ffuncall ()
#178 0x0100f1a0 in call3 ()
#179 0x010259e5 in command_loop_1 ()
#180 0x0100d5b1 in internal_condition_case ()
#181 0x0101cf14 in command_loop_2 ()
#182 0x0100d4fb in internal_catch ()
---Type <return> to continue, or q <return> to quit---
#183 0x0101dc8c in recursive_edit_1 ()
#184 0x0101df14 in Frecursive_edit ()
#185 0x011a1c47 in main ()
(gdb)
(gdb) xbactrace
(gdb) Undefined command: "xbactrace".  Try "help".
(gdb) finish
Run till exit from #0  0x7c91120f in ntdll!DbgUiConnectToDbg () from /cygdrive/c/WINDOWS/system32/ntdll.dll
0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll
(gdb) finish
Run till exit from #0  0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll
Warning:
(gdb) Cannot insert breakpoint 0.
Error accessing memory address 0x5: Input/output error.

Run till exit from #0  0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll
(gdb) Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x5: Input/output error.

finish
Run till exit from #0  0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x5: Input/output error.

(gdb) finish
Run till exit from #0  0x7c962119 in ntdll!KiIntSystemCall () from /cygdrive/c/WINDOWS/system32/ntdll.dll
Warning:
Cannot insert breakpoint 0.
Error accessing memory address 0x5: Input/output error.

(gdb) q
A debugging session is active.

        Inferior 1 [process 7864] will be detached.

Quit anyway? (y or n) y
Detaching from program: /cygdrive/c/Program Files/Emacs-24.2/bin/emacs.exe, Pid 7864
--8<---------------cut here---------------end--------------->8---

Is this what you need?

BTW, you asked me to go there, to find the .gdbinit file in some /src
directory; but I don't find where... Could you show me where?

Best regards,
Fabrice

-- 
Fabrice Niessen
Pre-sales, Network and Software Engineer
M i s s i o n   C r i t i c a l   I T
✉ [email-masked]
☎ +32 2-757.10.15