Thanks Eliot for pushing WIN64 ABI further!
So the failure is this one:
gdb: unknown target exception 0xc0000028 at 0x774c8078
Program received signal ?, Unknown signal.
0x00000000774c8078 in ntdll!RtlRaiseStatus () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
(gdb) where
#0 0x00000000774c8078 in ntdll!RtlRaiseStatus () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#1 0x0000000077467eb6 in ntdll!TpAlpcRegisterCompletionList () from /cygdrive/c/Windows/SYSTEM32/ntdll.dll
#2 0x000007fefe08e5a3 in msvcrt!longjmp () from /cygdrive/c/Windows/system32/msvcrt.dll
#3 0x0000000000419502 in ceReturnToInterpreter (anOop=176164968) at ../../spur64src/vm/gcc3x-cointerp.c:16504
#4 0x000000000a801086 in ?? ()
Backtrace stopped: previous frame inner to this frame (corrupt stack?)
I now suspect the jmp_buf alignment problem that I had to workaround in jpeg plugin: