X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <4B421BD3 DOT 4040005 AT gmx DOT net> Date: Wed, 6 Jan 2010 22:44:59 +0000 Message-ID: <416096c61001061444o76dac3c7g8dd0562b221a9813@mail.gmail.com> Subject: Re: Cygwin 1.7.1-1: problem with pipe to windows programs From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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 2010/1/6 RH: > KJ writes: >> within a cygwin shell I used to pipe some data into a windows program >> (sqlcmd.exe) which used to work pretty well. Since upgrading to version >> 1.7 I get the following error: >> $ echo "select @@version" | sqlcmd >> Sqlcmd: Error: Internal error at ReadTextLine (Reason: Unbekannter Fehle= r). >> >> Is there any option to get the pipe working again? >> > > Any update on this? =C2=A0I am having the same problem, and have had to g= o back to > Cygwin 1.5. What about "Sqlcmd: Error: Internal error" don't you understand? It's a bug in a proprietary tool that's part of a rather expensive software package, so most people here won't even be able to reproduce it never mind debug it. Also, piping commands into other native tools such as cmd.exe or python is working fine. One item in the what's new section at http://cygwin.com/cygwin-ug-net/ov-new1.7.html that looks like it might have something to with this is the following. However, it's not clear at all how such a change in Cygwin would trigger a crash in a native program. - Reworked pipe implementation which uses overlapped IO to create more reliable interruptible pipes and fifos. Bottom line: it's a sqlcmd bug. Report it to Microsoft. Andy -- 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