Machine: i686
OS: cygwin on Windows 7 Professional SP1
Compiler: gcc-4
Compilation CFLAGS: -DPROGRAM='bash.exe' -DCONF_HOSTTYPE='i686'
-DCONF_OSTYPE='cygwin' -DCONF_MACHTYPE='i686-pc-cygwin' -DCONF_VENDOR='pc'
-DLOCALEDIR='/usr/$
uname output: CYGWIN_NT-6.1 Machine-name 1.7.16(0.262/5/3) 2012-07-20 22:55
i686 Cygwin
Machine Type: i686-pc-cygwin
Bash Version and Patch Level: See attached
Description:
Bash dumps stack on exit if all of the following requirements are true:
- Bash was started from a windows batch script
- Bash was started in non-interactive mode to execute a script
- The script includes an attempt to write (pipe) data to a file in /etc
- The write attempt is enclosed by an if clause.
Repeat-By:
Running the attached example scripts