delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/07/24/08:22:31

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=UjAUKwrILcHnj7AmHrZlCzh/tJm2RmPfUVhE7pyu8aH
yiaHC/Dcb2cfic0BGKwzcppMKChcXt1M8zXFkI5uZ1I9EYnjpDqLev80DUFeXehT
fYbQBFSlojpSBrbC2VIXVAlayJfTLHiR4BfjF00r/8w50ZGTV7hroioQ8Tc4Gzy8
=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=WFw+lQdrr9zEx0n30E0bNsc22XQ=; b=JsY9t0MkhJOJZa8Qp
krB7Mr1hxCMoSLjS0DEuHq+ZAvlaR7tsXaDQZcdwgfFWQFGVQnfhr/26aR8pE9qN
R45oHs2jhl0TCB5h+wNZZj/eBOeiRkatlAfKCyzgq9joee2enlC4CIcaSXWnd8Ca
jbs4t1rT11vQc4md6xKoeXRwq4=
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=-0.7 required=5.0 tests=BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-we0-f169.google.com
X-Received: by 10.194.200.3 with SMTP id jo3mr11934524wjc.110.1406204527202; Thu, 24 Jul 2014 05:22:07 -0700 (PDT)
Message-ID: <53D0FA68.6040807@gmail.com>
Date: Thu, 24 Jul 2014 14:22:00 +0200
From: jdzstz <jdzstz AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: Bug executing "write" at Cygwin 1.7.31-2
References: <CA+wAnvyrB2ecwdJsvzqmMNjPFTnW6rT0rYdNcXRbK4z5WJqwyg AT mail DOT gmail DOT com>
In-Reply-To: <CA+wAnvyrB2ecwdJsvzqmMNjPFTnW6rT0rYdNcXRbK4z5WJqwyg@mail.gmail.com>
X-IsSubscribed: yes

Hello,

I am preparing the new version 4.0.1 of Varnish.
I am using a Windows 8.1 machine, with all hotfix installed.

I have updated cygwin to 1.7.31-2 and launch Varnish package tests and 
some failed at "write" function.

After some investigations downloading snapshots, I have verified that:

  * Varnish tests works fine using 20140625 snapshot, downloaded from
    http://cygwin.com/snapshots/x86_64/cygwin1-20140625.dll.xz
  * Varnish tests fails using the next snapshot: 20140707, downloaded
    from http://cygwin.com/snapshots/x86_64/cygwin1-20140707.dll.xz

When installing 20140707 snapshot or 1.7.31-2 release, all the 
problematic tests fails with similar messages:

 1. ---- s1    1.5 Write failed: (212992 vs 1048234) No error
 2. *    s1    1.7 Write failed: (212992 vs 1572908) No error
 3. *    s1    1.7 Write failed: (212992 vs 500009) No error


This message is written by following code, at vtc_http.c file:

    /**********************************************************************
      * Finish and write the vsb to the fd
      */

    static void
    http_write(const struct http *hp, int lvl, const char *pfx)
    {
         ssize_t l;

         AZ(VSB_finish(hp->vsb));
         vtc_dump(hp->vl, lvl, pfx, VSB_data(hp->vsb), VSB_len(hp->vsb));
         l = write(hp->fd, VSB_data(hp->vsb), VSB_len(hp->vsb));
         if (l != VSB_len(hp->vsb))
             vtc_log(hp->vl, hp->fatal, "Write failed: (%zd vs %zd) %s",
                 l, VSB_len(hp->vsb), strerror(errno));
    }



hp->fd is a TCP socket and it seems that "write" function is only 
writing 212992 bytes for some strange reason

I will continue doing some investigations, but it seems that the problem 
is caused by some modification of that 20140707 snapshot: 
https://cygwin.com/snapshots/x86_64/winsup-diffs-20140625-20140707

Thank you,
Jorge




---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com


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