delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/01/06/17:45:16

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: <loom.20100106T220554-749@post.gmane.org>
References: <4B421BD3 DOT 4040005 AT gmx DOT net> <loom DOT 20100106T220554-749 AT post DOT gmane DOT org>
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 <andy DOT koppe AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
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

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019