X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=sFXGeJODGw7Nk18c
	kcHdREpZ5Msdmfq/SyjMlOoByJSsak/2CnYOoYlcgbq9KodunJoYy07PYDjHvCj+
	mXtProTOSBDb8lwHmsKASP+U6fr0uUPTE4K3++wSSyin35eNTb8Xr+IMRIJvJPvN
	aCP10jI/r5Tj0lahEva7CP+rcaE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=seNU9EPyz/J9KFCUzc0RpL
	6N2Kc=; b=XEk0gg/5PyglR2uaR8j73c4SDWPokoxq1L2tK+TW9Sok5gsXFDwhQi
	iVn9cJBpwfi2s9kWAtw58HYdOp+6pGhagyr96OpQe8OoY8x6isjmOsNQm+OgyV4C
	8cEM/t+VoW0MOdC/l7u26aNYrbKjBJ2ULj29InmqgTG6tdVgNy1Bg=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=Our, communication, our
X-HELO: mail-io0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:subject:to:references:from:message-id:date         :user-agent:mime-version:in-reply-to:content-transfer-encoding;        bh=HboPg7dqtPLL1LfpwKXlNQw+O0mncTXnjjvE+S2CeZQ=;        b=gelxl4sz4TbVlgquHY53Vmp5b0wKyLhbyuSMRhCRIprAZzL+PDGTuLJJbuecJuey32         WBR1wDBFttkFZJgDqix6SrjymlMj0+wi/F190g1iXrBodO4hB9XCtl0STpYAmdRDACrJ         VnKjmi5OYrbu5RZ8nxiwR3B72WREoPmehNb9rWCHk/GPGkJ3GlFa+xuG66AeG0xxkI3X         dQ1TsbdvHgRXNaWTfgIVl8Ea6+/8hpJTu/yiry3Bs8x3ANVJBlb6s1GbkdEpHOJMEYJq         izjWZ8/oZrSlCBC5CYiG9O5o1pSJQ4jGNGViJbMaZ8gmv/fiNW2xWkMxSAqFIezQaSRi         IsRg==
X-Gm-Message-State: AIkVDXI6rAxgPAuywmGwHTk1Ps6Fre4LuECHrOS4yXwLe8zWSzGte4OHfXQFgRWN/trqiA==
X-Received: by 10.107.27.68 with SMTP id b65mr13336129iob.150.1484240020218;        Thu, 12 Jan 2017 08:53:40 -0800 (PST)
Subject: Re: borgbackup test fail on cygwin (only) - cygwin pipe issues?
To: cygwin AT cygwin DOT com
References: <8d66dac6-689d-972f-d06a-f4c1869b6b87 AT waldmann-edv DOT de>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <6d5d6289-ea61-cd18-fb48-c5053f292e0f@gmail.com>
Date: Thu, 12 Jan 2017 11:53:36 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <8d66dac6-689d-972f-d06a-f4c1869b6b87@waldmann-edv.de>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On 1/10/2017 10:47 PM, Thomas Waldmann wrote:
> Hi,
> 
> borgbackup uses a RPC protocol via a ssh pipe to implement client/server
> communication.
> 
> borg client --pipe-- ssh --tcp-- sshd --pipe-- borg serve
> 
> This works very reliable, we have tests running on linux, freebsd,
> netbsd, openbsd, OS X. It even works on win10 linux subsystem.
> 
> But on Cygwin, only the local tests work, but the remote tests (which
> need the pictured ssh pipe) fail or hang.
> 
> When trying to find out what's going wrong, I noticed corrupted data
> coming over the pipe.
> 
> I've found some other pipe issues on the cygwin mailing list, maybe this
> is related?
> 
> Our issue about this:
> 
> https://github.com/borgbackup/borg/issues/1268
> 

Are your pipe handles in open in binary mode or text mode?  You should
always ensure they are in binary mode.

-- 
cyg Simple

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