delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.9 required=5.0 tests=AWL,BAYES_40,RCVD_IN_DNSWL_NONE |
X-Spam-Check-By: | sourceware.org |
X-Mail-Handler: | MailHop Outbound by DynDNS |
X-Report-Abuse-To: | abuse AT dyndns DOT com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) |
X-MHO-User: | U2FsdGVkX1/pCm5oBJBnLKTIeNDS2VKt |
Date: | Wed, 11 Jan 2012 10:20:21 -0500 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: "Bad address" error with redirection (stdout and stderr) in background process |
Message-ID: | <20120111152021.GB5264@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <loom DOT 20120111T154138-434 AT post DOT gmane DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <loom.20120111T154138-434@post.gmane.org> |
User-Agent: | Mutt/1.5.20 (2009-06-14) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 Wed, Jan 11, 2012 at 03:05:26PM +0000, Heiko Elger wrote: >Hello, > >I'm using latest snapshot and updated cygwin installation. > >$ uname -a >CYGWIN_NT-6.1-WOW64 PCFX166 1.7.10s(0.259/5/3) 20120111 01:45:50 i686 Cygwin > >I've done rebaseall and peflagsall. > >I've found the following problem using make in parallel (-j) with multiple >commands joined with semicolon (;) using cygwin and non-cygwin(cross compiler) >commands. > ># just an example >test.o: test.c > echo compile ; cross-gcc -c test.c -o test.o > >Having multiple targets like this and using for example >$ make -j8 |& tee make.log > >you will get a "bad address" error. >/bin/sh: cross-gcc.exe: Bad address >makefile:10: recipe for target `test.o' failed > >I stripped down the problem to the following testcase: > >$ cat ./testcase.sh >#!/bin/sh >(( echo 123 ; cmd /c echo 456 ) |& tee tee.log ) & > >executing the testcase will produce thr following output: >$ ./testcase.sh >$ 123 >./testcase.sh: line 2: /cygdrive/c/Windows/system32/cmd: Bad address > >If only redirecting stdout to tee all works fine. > >The problem occurs ony while mixing cygwin and non cygwin programs. > >Using snapshot 20110829 all works fine. > >Any ideas? Do I infer from the above that you rigorously tried all snapshots through August and that was the first that worked or (more likely) you haven't tried a snapshot since August and now noticed a problem? 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |