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=W9Rj4XsQsypU/2TeYtWAI2pztQMmq2rCs1llIhHbHYI JzULTwhS0sMO6K35rD9zNyQULIPABZBZprM+dFlpISLqWGWGuRkhAllI6G+5q9eG yPEvfksPsC4LwdsBrBtiXYvJ6moGKKqsByQSKfbkxc6X+0UuF8JlmsaZyMOzh2tw = 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=D+x1jEDwzJ4uhdKA5q4A/+ohG+E=; b=LodmidzTkVPMvHMza qoCOl+Umk9N/ajMvtgKeztqC7PdETQZeO3UN/2tp6FT3kehXAVJ1nHPntvG2/XIK dpSrvn78tJZtZaiF9pf8PwD5OS+SGT/e7ZKmxoiUA1UMiM6Ds+fKD0yl6cb7J9Dx gCtoTGLoK8EaA1eZ7TYGmr/5Zk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.8 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-la0-f44.google.com X-Received: by 10.112.156.10 with SMTP id wa10mr33217348lbb.68.1409657554502; Tue, 02 Sep 2014 04:32:34 -0700 (PDT) Message-ID: <5405AACD.5050600@gmail.com> Date: Tue, 02 Sep 2014 13:32:29 +0200 From: Marco Atzeri User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: mktime call hangs on Cygwin 1.7.30, Windows 7 32 bit References: <20140902111045 DOT GA5860 AT ashu-win7> In-Reply-To: <20140902111045.GA5860@ashu-win7> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes On 02/09/2014 13:10, Alexey Shumkin wrote: > Prelude. > I use "self-compiled" Git (v2.x) on Cygwin (v1.7.30). > Sometimes Git v2.0.4 hung while performing > git prune --expire 2.weeks.ago > > I have investigated while debugging that `mktime` call hung. > But that was an avoidable bug (skip prune - and all is ok). So, I've not > reported it. > > But after updating Git to v2.1.0 > git commit --amend -C HEAD --date='' > hangs, too. And now it is the often used operation by me. > So, I've made a simple example (copied from Git sources) to reproduce > the error. > > $ cat cygwin-mktime-bug.c > #include > #include > #include > > int main(int argc, char **argv) > { > struct tm tm; > > memset(&tm, 0, sizeof(tm)); > tm.tm_year = -1; > tm.tm_mon = -1; > tm.tm_mday = -1; > tm.tm_isdst = -1; > tm.tm_hour = -1; > tm.tm_min = -1; > tm.tm_sec = -1; > > printf("Working...\n"); > time_t temp_time = mktime(&tm); > printf("Worked"); - printf("Worked"); - printf("Worked\n"); > } > > $ gcc cygwin-mktime-bug.c -o cygwin-mktime-bug -I/usr/include -g > $ ./cygwin-mktime-bug.exe > Working... > no issue on my side. $ LIMIT=1000 $ for ((a=1 ; a <= LIMIT ; a++ )); do ./cygwin-mktime-bug.exe ; done Working... Worked ... Working... Worked $ > > So, there is a question: how to fix it? > Nota bene: I do not want to use Cygwin x64 (there were no exim when I've tested it). 32 bit here. $ uname -svr CYGWIN_NT-6.1-WOW64 1.7.32(0.274/5/3) 2014-08-13 23:03 please update to 1.7.32 and than follows: https://cygwin.com/problems.html Regards Marco -- 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