Stack dumps from sh.exe (from within make)

Jim Reisert AD1C
Wed Nov 10 06:50:00 GMT 2010

I'm having a recurring problem with Cygwin.  I'm running Windows 7
Pro, 64-bit.  My cygcheck output is attached.

I am running my build environment in Cygwin-X (latest 1.9.2) but I can
reproduce the same symptoms in mintty.  When I call make to build and
run my C program, I get stack dumps from sh.exe (my default [login]
shell is tcsh, so it must be make which is invoking sh).  It doesn't
happen all the time, but once it starts, it seems the only way to make
it go away is to kill the X environment and restart. Since I can
reproduce the problem in mintty, I'm assuming this is a Cygwin issue
and not an X problem.

Here is some of the console output:

# make wintest

g++ -g -Wall   -c -o writelog.o writelog.c
g++   ctyfiles.o library.o csv.o ct8.o ct9.o mwl.o n3fjp.o na.o
wintest.o wpxloc.o writelog.o   -o ctyfiles
pushd .. ; make cty/entities.csv
/cygdrive/e/unified /cygdrive/e/unified/cty
      0 [main] sh 5372 exception::handle: Exception: STATUS_ACCESS_VIOLATION
    645 [main] sh 5372 open_stackdumpfile: Dumping stack trace to
      0 [main] sh 2224 child_copy: linked dll data write copy failed,
0x3BD000..0x3C14A4, done 0, windows pid 2608, Win32 error 487

The stackdump from sh.exe appears in the directory that's pushed into.
Here's what's contained therein:

Exception: STATUS_ACCESS_VIOLATION at eip=61020137
eax=00AADEB8 ebx=6123B904 ecx=76630D06 edx=003C41B8 esi=00000000 edi=0028F9E4
ebp=61020890 esp=0028C7B4 program=D:\Cygwin\bin\sh.exe, pid 260, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
End of stack trace

I did run across this posting on

Without making registry changes, I get this result:

    5fffe000 bytes (1536.0Mb)

Is that link the solution to the problem, or could something else
going on here?  It's a pain to have several windows open, then have to
shut down the whole environment and restart when this problem occurs.

Thanks - Jim

Jim Reisert AD1C, <>,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 87353 bytes
Desc: not available
URL: <>
-------------- next part --------------
Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list