X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Mail-Handler: Dyn Standard SMTP by Dyn X-Report-Abuse-To: abuse AT dyndns DOT com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/Y0DuN6zVm2nWi/QmsemWa Date: Sun, 23 Sep 2012 15:53:46 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Bash dumps stack after writing to /etc Message-ID: <20120923195346.GB24693@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Sat, Sep 22, 2012 at 12:21:40AM +0200, meingbg wrote: >A bug is found that might be located in cygwin or bash. > >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. Try a recent snapshot. Corinna fixed this a while ago. http://cygwin.com/snapshots/ cgf -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple