Bug: Cygwin crashes when bash is called repeatedly from a .bat fi le
craig.hayes@lmco.com
craig.hayes@lmco.com
Wed Nov 29 17:17:00 GMT 2000
Situation:
I have a DOS script that has run reliably for over a year. I had to add some functionality that DOS couldn't support, so I created Unix shell scripts to do the additional functions, then modified the DOS script to execute the Unix shell scripts by using bash. An example of the addition to the DOS script would be:
bash <Unix shell script name> <arguments>
Result:
Everything works wonderfully for several hours, but then Cygwin crashes. The DOS script can no longer call the Unix shell scripts. I cannot start Cygwin from the desktop icon. System message boxes appear saying something to the effect that the DLL cannot be initialized (sorry, I didn't write down the exact message). Apparently some system resource is used up, but I couldn't identify what. To recover I have to uninstall Cygwin and reboot my machine.
Details:
I was able to reproduce the problem with the script files which are attached to this email.
I have included the bash stack dump.
I installed Cygwin using the installation GUI and the following files which I have copied to my machine:
cygwin-1_1_5-4.tar.gz
bash-2_04-3.tar.gz
If you know of a work around to this problem, please let me know.
Thanks.
Craig Hayes
Lockheed Martin Corporation
(719)277-4507 craig.hayes@lmco.com
<<mainDosScript.bat>>
<<subUnixScript>>
<<bash.exe.stackdump>>
-------------- next part --------------
Exception: STATUS_ACCESS_VIOLATION at eip=6100B6C8
eax=0247F934 ebx=610827D8 ecx=00000000 edx=00080006 esi=00000014 edi=0041B31C
ebp=1405F9F8 esp=1405FC98 program=C:\Progra~1\Cygwin\bin\bash.exe
cs=001B ds=0023 es=0023 fs=0038 gs=0000 ss=0023
Stack trace:
Frame Function Args
1405F9F8 6100B6C8 (00000000, 00000000, 00000000, 00000000)
1405FC9C 6100B6C8 (610827D8, 00000000, 00000000, 00000000)
1405FCCC 6100C8F6 (0247F7C4, 00000014, 1405FEEC, 0041B31C)
1405FDDC 6100CD26 (00000014, 1405FEEC, 0041B31C, 00000000)
1405FEFC 6100D416 (00000014, 00000014, 00000000, 000001F4)
1405FF6C 61040F66 (00000000, 1405FFB8, 61004040, 1405FFB0)
1405FFB8 61004062 (61082474, 00000104, 61045933, 61082474)
1405FFEC 77F04EDE (61004018, 6108B010, 77366377, 000009BB)
End of stack trace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mainDosScript.bat
Type: text/x-msdos-batch
Size: 677 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20001129/41a9d586/attachment.bin>
-------------- next part --------------
#!bash
echo "`date` Entered $0, args=$1"
echo "`date` Entered $0, args=$1" >> $1
exit 0
More information about the Cygwin
mailing list