delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/07/31/15:42:37

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: cygwin 1.5.20-1, spinning pdksh, 100% CPU
Date: Tue, 31 Jul 2007 15:40:02 -0400
Message-ID: <76087731258D2545B1016BB958F00ADA1234D7@STEELPO.steeleye.com>
From: "Ernie Coskrey" <Ernie DOT Coskrey AT steeleye DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id l6VJgIrm014917

 
I've run into a problem with cygwin 1.5.20-1 and pdksh 5.2.14.  We've
got a pdksh.exe process that is spinning, using all the CPU.
 
This scenario is very hard to reproduce, but has happened on our test
systems occasionally.  It occurred recently, and I currently have gdb
attached to the process and have the symbols loaded.  I see that pdksh
is continually calling "sigsuspend()", which is immediately returning
from cancelable_wait due to the fact that the signal_arrived event is
set.  I also see that pdksh is waiting for a subprocess to complete, and
has a handle to the PID of that process - however the process has long
since terminated.
 
It appears that something went wrong during delivery of SIGCHLD.
 
I've got two questions related to this:
 
- have there been changes between 1.5.20-1 and 1.5.24-2, or the latest
snapshot, that might have fixed this issue?  We've done some limited
testing with 1.5.24-2 and haven't seen this happen yet, but as I said
the it only happens rarely.
- is there anything I can look at in gdb to help identify what the issue
is?
 
Any suggestions would be appreciated!
 
---------
Ernie Coskrey        SteelEye Technology, Inc.      803-808-4275

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019