2017-10-10 18:30 GMT+02:00 Eli Zaretskii <eliz@gnu.org>:
> From: Fabrice Popineau <fabrice.popineau@gmail.com>
> Date: Tue, 10 Oct 2017 18:13:19 +0200
> Cc: Emacs developers <emacs-devel@gnu.org>
>
> (gdb) p stack_pos
> $3 = {__max_align_ll = 0, __max_align_ld = 3.587554638101247699761989924457637e-4943}

What is &stack_pos, the address of stack_pos?  Is it properly aligned?


(gdb) p &stack_pos
$1 = (max_align_t *) 0xbc1fec0
(gdb) p (char *)&stack_pos
$2 = 0xbc1fec0 "" 

I don't see anything wrong here ?

Also, can you tell what Windows exception was translated into SIGSEGV?
I think GDB will show that information if you issue the following
command before running the segfaulting program:

  (gdb) set debugexceptions 1

[New Thread 1144.0x5860]
gdb: Target exception EXCEPTION_ACCESS_VIOLATION at 0x4001ecb07

Fabrice