Subject: bug#14569: 24.3.50; bootstrap fails on Cygwin

From: Eli Zaretskii <[email-masked]>
Date: Sat, 15 Jun 2013 13:42:37 +0300

> From: Jan Djärv <[email-masked]>
> Date: Sat, 15 Jun 2013 11:54:16 +0200
> Cc: Ken Brown <[email-masked]>,
>  [email-masked]
> 
> > What are the difficulties of catching this when Emacs is run under
> > GDB?
> 
> Its not difficult, but takes some time.  The error happens when make compiles one lisp file at the time with emacs.  It appears to be random so it does not crash in the same lisp-file.  Thus, you have to start emacs from gdb, and repet run, quit in gdb for each lisp file until it crashes.  Running in gdb is slow with cygwin, and running in gdb makes the bug appear less often.
> 
> The make rule is in lisp/Makefile, compile-onefile.

Would it make things easier if compile-onefile is modified to invoke
Emacs under GDB to begin with, using the --args switch to GDB?