https://bugs.winehq.org/show_bug.cgi?id=21424
--- Comment #14 from Joel Holdsworth joel@airwebreathe.org.uk ---
May be a cygwin bug...for me on Win7, on first login: 1 [main] bash 4360 exception::handle: Exception: STATUS_ACCESS_VIOLATION 1123 [main] bash 4360 open_stackdumpfile: Dumping stack trace to bash.exe.sta ckdump
Sounds like UPSTREAM
I have encountered a similar issue testing a legacy 32-bit build of cygwin.
32-bit cygwin has now been deprecated, and the code has been removed from the runtime. However, it is still possible to download legacy versions of cygwin from the Cygwin Time Machine:
http://www.crouchingtigerhiddenfruitbat.org/cygwin/timemachine.html
The cygwin runtime (cygwin1.dll) had code which parses ntdll dll code to extract the FAST_CWD pointer both on 32-bit and 64-bit. Here is the (now removed) 32-bit implementation of find_fast_cwd_pointer:
https://github.com/mirror/newlib-cygwin/blob/cygwin-3_1_2-release/winsup/cyg...
Obviously this cannot work correctly in Wine, and the code crashes with a NULL-pointer derefence exception dereferencing the pushedi/movedi pointer without first checking it.
This was later fixed in the cygwin runtime by this patch:
https://github.com/mirror/newlib-cygwin/commit/4ddf5903fd
...which was released in cygwin-3_1_3-release.
So, a possible workabout is to upgrade to the final 32-bit version of cygwin which is built with the cygwin-3_3_6-release version of the runtime.