Subject: bug#16299: 24.3.50; Crash on Windows XP when saving buffer to file

From: Eli Zaretskii <[email-masked]>
Date: Mon, 30 Dec 2013 19:54:03 +0200

> Date: Mon, 30 Dec 2013 10:20:26 +0100
> From: martin rudalics <[email-masked]>
> 
> With trunk saving a file on Windows XP currently runs into the following
> crash (I have backup-by-copying set to t).
> 
> martin
> 
> 
> (gdb) bt
> #0  terminate_due_to_signal (sig=22, backtrace_limit=2147483647) at emacs.c:351
> #1  0x011644fb in die (msg=0x1492938 "oldumask == oldrealmask", file=0x1492227 "fileio.c", line=3173) at alloc.c:6760
> #2  0x0113541c in Fset_default_file_modes (mode=...) at fileio.c:3173

Should be fixed now (trunk revision 115810), please try again.

(The problem was that Emacs was using non-portable mode_t values, but
no one ever cared until Paul added an assertion.)