From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27698 invoked by alias); 8 Sep 2015 04:41:05 -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 27689 invoked by uid 89); 8 Sep 2015 04:41:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.9 required=5.0 tests=BAYES_50,KAM_COUK,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 X-HELO: smtpout.wanadoo.co.uk Received: from smtpout3.wanadoo.co.uk (HELO smtpout.wanadoo.co.uk) (80.12.242.59) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 08 Sep 2015 04:41:02 +0000 Received: from [192.168.15.105] ([85.210.49.154]) by mwinf5d45 with ME id EUgy1r00S3KcezZ03UgzT4; Tue, 08 Sep 2015 06:40:59 +0200 X-ME-Helo: [192.168.15.105] X-ME-Auth: ZHdhbGluQGZzbmV0LmNvLnVr X-ME-Date: Tue, 08 Sep 2015 06:40:59 +0200 X-ME-IP: 85.210.49.154 Subject: Re: Question about flock - potential memory corruption? To: cygwin@cygwin.com References: From: Sam Edge X-Enigmail-Draft-Status: N1110 Message-ID: <55EE66E1.3000908@dwalin.fsnet.co.uk> Date: Tue, 08 Sep 2015 04:41:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2015-09/txt/msg00118.txt.bz2 On 07/09/2015 19:45, Qian Hong wrote: > 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! > Hi, Erm ... slight technical hitch? Your example flock.c doesn't call fork(), nor does it use your two macros MAX_ITER & CHILDREN. -- Sam Edge -- 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