From owner-freebsd-questions Fri Mar 29 11:36:18 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA14709 for questions-outgoing; Fri, 29 Mar 1996 11:36:18 -0800 (PST) Received: from itsdsv1.enc.edu (itsdsv1.enc.edu [199.93.252.241]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA14699 for ; Fri, 29 Mar 1996 11:36:11 -0800 (PST) Received: from dingo.enc.edu (dingo.enc.edu [199.93.252.229]) by itsdsv1.enc.edu (8.6.12/8.6.9) with SMTP id OAA19206; Fri, 29 Mar 1996 14:35:03 -0500 Date: Fri, 29 Mar 1996 14:35:43 -0500 (EST) From: owensc To: Guy Helmer cc: questions list FreeBSD Subject: Re: orphaned proccess hogging CPU (e.g. pine) In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 29 Mar 1996, Guy Helmer wrote: > On Fri, 29 Mar 1996, owensc wrote: > > Is this CPU-chewing a result of a programming boo-boo in Pine itself? Or > > is there something system-wide that I should tweak to fix this? I don't > > mind digging through the source but could use a pointer or two. > > Yes, there are a couple of problems in Pine 3.91 where it will hang in a > loop and eat CPU. One well-known problem was in pine/ttyin.c, where it > would loop and look for incoming data from the terminal. Another of the > problems was particularly nasty: pine would set the signal handler for > SIGSEGV to SIG_IGN (ignore) as it was preparing to exit, and then a bug (I > hadn't taken the time to track down) made pine SIGSEGV over and over... I > changed the relevant code in pine/signals.c to never ignore SIGSEGV or > SIGTERM. I wasn't using the patches provided in the FreeBSD port of pine > 3.91, so maybe those would have solved my SIGSEGV problem. Could you possibly post diffs for these modifications, or describe them at least? (haven't done much signals programming) thanks very much, --- ------------------------------------------------------------------------- Charles Owens Email: owensc@enc.edu "I read somewhere to learn is to Information Technology Services remember... and I've learned that Eastern Nazarene College we've all forgot..." - King's X -------------------------------------------------------------------------