delorie.com/archives/browse.cgi | search |
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:mime-version:reply-to:in-reply-to:references | |
:from:date:message-id:subject:to:content-type; q=dns; s=default; b= | |
bSKdAZaQu61YurktrYTH5ISBvQ1UW0z34Dg6Ygt336QW49C6zuP33939Xv1Ib27h | |
t6pv6GhhPMkpO2E5bkEcT9KMi0po1azXr8qNNVfRZvtOTVLGfFMFs2TSHc3sD8TR | |
WT3v3EZ9x7KuSLL0PnVAyeloFmRZ5E4jzr+BBMNUGrE= | |
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:mime-version:reply-to:in-reply-to:references | |
:from:date:message-id:subject:to:content-type; s=default; bh=joM | |
RkoDTtJxX9XCtT2l2KI37NeA=; b=GKeFRLwwxrli4iRBLzN4JP8mIh9JFHBiJDZ | |
q/sfuwn9VMbVOvCUhYNoCaYiPOvoDNk7O0jHw9L0sdN7Py6jmVQsIZgbLBv3iI74 | |
mX1uwuNLszg8QfCPZCdOYyPCDjZHh1Wn69jk/lOV70vxuSplCAslSC0RNlJksTH/ | |
JRjRSFvQ= | |
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.1 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | mail-wi0-f172.google.com |
X-Received: | by 10.180.184.134 with SMTP id eu6mr10629671wic.77.1441651560055; Mon, 07 Sep 2015 11:46:00 -0700 (PDT) |
MIME-Version: | 1.0 |
Reply-To: | fracting AT gmail DOT com |
In-Reply-To: | <CALd+sZSUAt6_fdHkgdKqefz1Wv-ijShSo82qJKUcCkZH9v5KzA@mail.gmail.com> |
References: | <CALd+sZRo_Nyv=adF5DeeHiShJsxGD+KUPqkDMKb3q47a2Nm=8Q AT mail DOT gmail DOT com> <CALd+sZSUAt6_fdHkgdKqefz1Wv-ijShSo82qJKUcCkZH9v5KzA AT mail DOT gmail DOT com> |
From: | Qian Hong <fracting AT gmail DOT com> |
Date: | Tue, 8 Sep 2015 02:45:20 +0800 |
Message-ID: | <CALd+sZQUy=Yn6UJ74N4Bvxd_wi++v+kOU5MehAkW7oaLO+NVbw@mail.gmail.com> |
Subject: | Re: Question about flock - potential memory corruption? |
To: | cygwin <cygwin AT cygwin DOT com> |
X-IsSubscribed: | yes |
--001a11c34ade20a6fa051f2ca903 Content-Type: text/plain; charset=UTF-8 Hi, Attach is the simple test case I use to reproduce the valgrind warning and random failures. Compile the test case in Cygwin with below command line: $ gcc -g -O0 flock.c -o flock.exe Thanks! --001a11c34ade20a6fa051f2ca903 Content-Type: text/x-csrc; charset=US-ASCII; name="flock.c" Content-Disposition: attachment; filename="flock.c" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ieaa1xuy0 LyoqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqCiAqIFRoaXMgaXMgYSBTVEMg dGhhdCBjYXVzZXMgdGhlIGZvbGxvd2luZyBlcnJvciBvbiBteSB0ZXN0IG1h Y2hpbmU6CiAqICAgTnRDcmVhdGVFdmVudChsb2NrKTog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wb3JhcnkgZmlsZS4gKi8K ICAgIGZkID0gbWtzdGVtcCh0bXBmaWxlbmFtZSk7CiAgICBpZiAoZmQgPCAw KSB7CiAgICAgICAgcGVycm9yKCJvcGVuIGZhaWxlZCIpOwogICAgICAgIGV4 aXQoMSk7CiAgICB9CiAgICBjbG9zZShmZCk7CglpbnQgZmQyID0gb3Blbih0 bXBmaWxlbmFtZSwgT19SRE9OTFkpOwoJaW50IHJjOwoJaW50IGk7CglyYyA9 IGZsb2NrKGZkMiwgTE9DS19FWCk7CglyZXR1cm4gMDsKfQo= --001a11c34ade20a6fa051f2ca903 Content-Type: text/plain; charset=us-ascii -- 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 --001a11c34ade20a6fa051f2ca903--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |