delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/25/13:33:06

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:date:from:reply-to:to:subject:message-id
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=jEhlwW0ysCqby6eiaM+RKUiluoTo0Mw/S9s0C9ogn+Os6JQ7P5NzK
CL/slTvD4KYzhNim06GME5pl65hrG0N6J2XCEV/0K8KyWotRHqMcVoQuZL3eBcFr
jlFI7W14FjyZqQ/gGxREHw6a6a3P5yiDpZ4x8h5gFnjfubbsv+ROU4=
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:date:from:reply-to:to:subject:message-id
:mime-version:content-type:content-transfer-encoding; s=default;
bh=RP3VC1x33nJoOOl0AmXHEo54v6M=; b=X3GUO814TL8Ss6pUKFiCyZnptvt6
rZ8LMFd+DlWzJOIAtAFOEDcrIMu/C9W2D3bZfNVLQOSYL7XefDztuLwMqAn+mJ/L
fYL6xNHB+H8k/0qZfFZ70WEuHSQjHpZhNLhtl4yE1x4oYopnfO8ucYcHaW5B5IrS
+TqrxeD9hYYPE28=
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-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=Howard, howard, H*UA:Win32, killing
X-HELO: zmcc-2-mx.zmailcloud.com
Date: Thu, 25 Jul 2019 10:32:09 -0700
From: Quanah Gibson-Mount <quanah AT symas DOT com>
Reply-To: Quanah Gibson-Mount <quanah AT symas DOT com>
To: cygwin AT cygwin DOT com
Subject: Bug report: Killing a native process may not actually kill it
Message-ID: <D2D1E09243A3854178C12845@[192.168.1.39]>
MIME-Version: 1.0
X-IsSubscribed: yes

As found and reported to the MSYS team back in 2006 by Howard Chu, if a 
native process is spawned, control-C, the kill command, etc, may not 
actually kill the process.  Details are here:

<http://mingw.5.n7.nabble.com/Re-Ctrl-Break-handler-td28010.html>

as well as here:

<https://sourceforge.net/p/mingw/bugs/1783/>

Given that there is now 64-bit windows, the issue would be a bit more 
complex to resolve, as an updated patch would need to query first to see if 
the target process is 32-bit or 64-bit, and then a 64-bit version of the 
patch needs to be created.

The inability to properly kill such a spawned process can lead to things 
like the dreaded "Device or resource busy" error, since the process that is 
using the related file has actually never terminated.

It's fairly trivial to reproduce this in the OpenLDAP test suite, 
particularly test001, which spawns a slapd process, kills it, then spawns 
another slapd process, which will fail because the original slapd never 
actually got killed.

Regards,
Quanah

--

Quanah Gibson-Mount
Product Architect
Symas Corporation
Packaged, certified, and supported LDAP solutions powered by OpenLDAP:
<http://www.symas.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