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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=x7cN29nHh/1Y128nTHRUF1sUOGPDX5gp0GXT8N3t1hdDF1FHcGy8J LspHx5V7c8nD0BfjX6eKMLeJw5YoX84CiNY7fe7rAHSI7BHFCecoqrbLUvfhxSat Oa1usKbwWlH6N9WTIB0NHzaiuVa22RlC7Oc+96evycjvzSY+BgZ5rs= 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:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=/rWMIKml2c/mCN+gUC5rJ9UDZPk=; b=rWvVXtuYThaDLcsw1QysMVfbK7XF UyjB0/F6Q7t/MFddfMtruZkD6pnQc68UkTDMO55wb7kimaLgmUrJazaukTJyBIlP /uo77g430EpN3U+62QEOpWcdNqPaEt8cz/kM7EBj2yt/gG+nEojLE8TqAw3iMKs6 VOQrFfQM2mJ3o8c= 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=-4.5 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Date: Fri, 21 Aug 2015 10:31:25 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Processes randomly get stuck Message-ID: <20150821083125.GC19683@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20150727075946 DOT GF7535 AT calimero DOT vinschen DOT de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 21 08:09, Ismail Donmez wrote: > Hi, >=20 > Corinna Vinschen writes: >=20 > >=20 > > On Jul 26 12:56, Ismail Donmez wrote: > > > Hi, > > >=20 > > > $ uname -a > > > CYGWIN_NT-10.0 ux31a 2.2.0(0.289/5/3) 2015-07-23 20:41 x86_64 Cygwin > > >=20 > > > For the last week or so ssh/zsh processes are randomly gets into=20 > defunct=20 > > > state, that is > > >=20 > > > $ cat /proc/7232/cmdline > > > > > > $ cat /proc/7232/status > > > Name: zsh > > > State: S (sleeping) > > > Tgid: 7232 > > > Pid: 7232 > > > PPid: 5172 > > > Uid: 197609 197609 197609 197609 > > > Gid: 197609 197609 197609 197609 > > > VmSize: 7556 kB > > > VmLck: 0 kB > > > VmRSS: 10860 kB > > > VmData: 2140 kB > > > VmStk: 0 kB > > > VmExe: 0 kB > > > VmLib: 4644 kB > > > SigPnd: 0000000000000000 > > > SigBlk: 0000000000000000 > > > SigIgn: 0000000000000000 > > >=20 > > > Same happens with ssh, and after some time like 5 minutes or so it=20 > goes=20 > > > back to the normal state. I wonder if anyone has been experiencing=20 > > > something similar? > >=20 > > There's no change in 2.2.0 which might explain this, but still, did > > you try to downgrade to 2.1.0? >=20 > I tried to see the patterns of this problem before replying again. Becaus= e=20 > the bug randomly appears I can't conclude if 2.1.0 was any better (though= =20 > I couldn't reproduce the problem with it.) >=20 > I have an idea why this might be happening and want to ask what happens= =20 > each time one does read /proc//cmdline, does the function=20 > _pinfo::commune_request called everytime, or just once? Every time. There's no caching mechanism for data fetched from /proc files and the command line is only available inside the process itself. > This might explain some behaviour I am seeing because tmux is reading tha= t=20 > file every 20 seconds or something like that. Oops. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJV1uHdAAoJEPU2Bp2uRE+gU7AP/33hoakBdbwfi7OaU2IcL/EZ cAkj0gigLhhIeaVelpHh+XFapDjOOW7ZcXDQr54h0G/AyM8bPEZbS3XBnUp16W6y SLDf4MajR51qH+kY0IYveqpWrWEClU0SQi9EfVMjQ8QKeb+V2QSgssoJOoZUhzTW i5/MJc67XYz8nTeig0Oq4/zC8eszlSvaGwkRAG8j5EnfYr8YjvpYX9y5nV1OvrJx gvQtyGYbjxdtridFow5/10wUOP3H7Y87a3MlxeMURRQZJ0KDW1jSrRVNRxP4ryyz kG94VT/LdsTJUJKjaxVUeIS9Z75AS30uorhDLOuRuZt52gptS6WJikZyir+4JRzY b3eqLNY4yBKdmo7c6m/6t4H661NchcG3Pfu1g2F17mrrRFoUqA3E4f6qW6XPjaTN mGbL/AYRyiGsNYqhq4nAgL7jl+5e2z40N6cW+rresaQds7z+AJaySA+eNXPWvUwb EVL/QAvOsYG3E9dZtsHOJDYcCiQKV7DBKhPXagMds7hQ/56owZ+m+Pau5lU/lhdW vs7tfZk7pvJHvAlRu4skkv535PO9tbphJstqR2/Mg4O/XeihVd2515ExK722Xtfy tb6S+Fekd0xARuCOVLF+6G07+G3PWDVMFE9nf1qYEhpU8Z8QjIhR97aU1MjJaqf6 ESQKQMqnss1yYRSrKG8U =K9an -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--