From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3402 invoked by alias); 12 Jan 2017 16:53:52 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3391 invoked by uid 89); 12 Jan 2017 16:53:52 -0000 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 Received: from mail-io0-f177.google.com (HELO mail-io0-f177.google.com) (209.85.223.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 12 Jan 2017 16:53:42 +0000 Received: by mail-io0-f177.google.com with SMTP id j18so22959938ioe.2 for ; Thu, 12 Jan 2017 08:53:42 -0800 (PST) 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) Received: from [192.168.0.6] (d27-96-48-76.nap.wideopenwest.com. [96.27.76.48]) by smtp.gmail.com with ESMTPSA id f187sm1336890ita.7.2017.01.12.08.53.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 08:53:39 -0800 (PST) Subject: Re: borgbackup test fail on cygwin (only) - cygwin pipe issues? To: cygwin@cygwin.com References: <8d66dac6-689d-972f-d06a-f4c1869b6b87@waldmann-edv.de> From: cyg Simple Message-ID: <6d5d6289-ea61-cd18-fb48-c5053f292e0f@gmail.com> Date: Thu, 12 Jan 2017 16:53:00 -0000 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 X-SW-Source: 2017-01/txt/msg00126.txt.bz2 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