http://bugs.winehq.org/show_bug.cgi?id=19800
Summary: cygwin's tar -cz crashes when run from a shell script Product: Wine Version: 1.1.27 Platform: PC OS/Version: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
To reproduce, create a dummy tar file, e.g. echo foo > foo then create the one-line shell script bad.sh containing tar -czvf foo.tar.gz foo then run bad.sh in a cygwin shell. It crashes, and leaves behind the file tar.exe.stacktrace containing
Exception: STATUS_ACCESS_VIOLATION at eip=2D313133 eax=00000000 ebx=36313637 ecx=00851682 edx=FFFFFFFB esi=32313232 edi=39372D31 ebp=38353136 esp=0064C640 program=C:\cygwin\bin\tar.exe, pid 46, thread main cs=0023 ds=002B es=002B fs=0063 gs=006B ss=002B Stack trace: Frame Function Args 12 [main] tar 46 _cygtls::handle_exceptions: Error while dumping state (probably corrupted stack)
Switching to bsdtar (another package in cygwin) gives same results, so it's not a bug in tar per se.
tar -xz crashes similarly when given a large input file, and when that happens, one also sees 'gzip: stdout: Communication error on send'
Found by trying to automate the chromium build setup instructions, http://dev.chromium.org/developers/how-tos/install-gclient