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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=aU1Zv29ZYT+KJEmt TnrrOH4tlGgHtlvj8inVkzZmyWZVJwO+QbyVtYgkxD4CbuTkPsLGnzSWe4cThvyR sxYkHcUsAHiElz7pkoUETehw7z3HQ8VAQaeqnvMbHo/LllWzo+wEJQKDrZRo35O2 ypqrjpTFmJ3NsktePR9JhpGrV7c= 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:reply-to:subject:to:references:from:message-id :date:mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=smmjeY5wFkL4ukPR7ADY8r uwPQs=; b=q7ipWUv2ph9L0QcSVuQA64YhMvcazXeXbGkJUBaFD92wAcsT4xWmA9 cuSXQ8IR7dZWf7ZZgxmMI8URjTs7FHdD0oHbssW/xSOAfXMLmpyapsdA9jqpNwKW xSSUY/FSIhyrA+wUV+Zu11FqBYxXON+zoihAb+ZWwKQ2AIHxHOy90= 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,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=calgary, Alberta, inglis, Inglis X-HELO: smtp-out-no.shaw.ca X-Authority-Analysis: v=2.3 cv=X6B81lbe c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=AEYJc7BtiPUt30FSn6wA:9 a=QEXdDO2ut3YA:10 Reply-To: Brian DOT Inglis AT SystematicSw DOT ab DOT ca Subject: Re: Odd hang in python waiting for child; strace wakes hung process? To: cygwin AT cygwin DOT com References: <877eq5fedf DOT fsf AT Rainer DOT invalid> From: Brian Inglis Message-ID: Date: Wed, 21 Mar 2018 23:41:07 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfDddLVZSTHU+W02vOKTUhIDmCJdnQUX14dDSbOTla8l7fp3wWf3v5yq9KW9vPYwq/0yPztc9MgVTsuviq+eDTfXfhOuavJZ741x+zBWvCwdiv+7bemoX +gOSqoJHAHyAMnJU3nZj6/rGl74GyyLkHR4//zQzVM92p6j4I4ndN45mEcEgMj5Ly/BpO5SKGrWKTA== X-IsSubscribed: yes On 2018-03-21 16:07, Dan Kegel wrote: > On Wed, Mar 21, 2018 at 11:54 AM, Achim Gratz wrote: >> Well, with the sporadic hanging/defunct processes at work my routine is >> to send CONT to all Cygwin processes, then HUP/KILL to anything that's >> still not live or gone and then another round of CONT. This works >> _most_ of the time, anything more stubborn I /bin/kill -f usually. > > Since I wrote, both bots hung again. This time I verified: > 0) both had the defunct git process as expected > 1) kill -CONT the-pid doesn't do anything, nor does kill -9. It's truly wedged. > 2) the process stays in its spin hang until you ^C strace -p the-pid > 3) ^C-ing the strace causes the process to terminate (strace alone doesn't) > 4) taskkill /pid the-task /f also kills the process successfully. > > So I could write a script that watched for defunct git processes > and taskkilled their parent. Build jobs would fail, but at least > the bot would stay up. Of course it would be much nicer if > the cygwin python process didn't get wedged. > > Alternately, I suppose I could try running native python... > or cygwin's python3... but dangit, kill -9 should work. Seems to be looping on access failure to a Windows mailslot; not sure what this feature is normally used for: dmesg/syslog messages/AF_UNIX sockets? -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada -- 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