[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bash dumps stack after writing to /etc

From: Axel Svensson
Subject: Bash dumps stack after writing to /etc
Date: Fri, 21 Sep 2012 14:24:59 +0200

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'
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

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.

Running the attached example scripts

Attachment: bashbug-reproduced_zip
Description: Binary data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]