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

From: Eli Zaretskii <[email-masked]>
Date: Fri, 12 Oct 2012 17:41:42 +0200

> From: "Fabrice Niessen" <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked],  [email-masked]
> Date: Fri, 12 Oct 2012 14:20:04 +0200
> 
> 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 ()

We are again in delete-process.

> (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?

Yes, but unfortunately it looks like GDB is unable to get out of the
system calls where Emacs is stuck.

> 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?

In the source distribution.  Where that is depends on what binary you
use.  Where did you get the binary?