Subject: PINE uses 99.5% CPU and/or coredumps.

From: "Mike A. Harris" <[email-masked]>
Date: Sun, 1 Apr 2001 07:45:30 -0400 (EDT)

A user just sent me a 402 message PINE folder which causes PINE
to core when sorting by thread.  Enter each folder one at a time
then hit $H to sort by thread and with pinecrash-core she cores,
with pinecrash-99-cpu she sits infinitely looping.

I ran gdb on the corefile and I get:

#0  0x8167f96 in ?? ()
#1  0x8168009 in ?? ()
#2  0x8167fca in ?? ()
#3  0x8168009 in ?? ()
#4  0x8167fca in ?? ()
#5  0x8168009 in ?? ()
#6  0x8167fca in ?? ()
#7  0x8168009 in ?? ()
#8  0x8167fca in ?? ()
#9  0x8168009 in ?? ()
#10 0x8167fca in ?? ()

ad infinitum.  I'm going to rebuild pine without stripping
symbols and see if I can track it down.  If this is something
that has been fixed already, or something someone has a patch
for, please send me a patch.  I'll post one if I get to it first.

-- 
Mike A. Harris                  Shipping/mailing address:
OS Systems Engineer             190 Pittsburgh Ave., Sault Ste. Marie,
Red Hat Inc.                    Ontario, Canada, P6C 5B3
http://www.redhat.com           Phone: (705)949-2136

---

From: Mark Crispin <[email-masked]>
Date: Tue, 3 Apr 2001 13:21:49 -0700 (PDT)

On Sun, 1 Apr 2001, Mike A. Harris wrote:
> to core when sorting by thread.

I may have fixed this bug.  If it's the bug that I'm thinking about, it is
caused by a message that is its own grandparent.  The code is supposed to
check for such circularities but it didn't handle one particular case
properly.

Try rebuilding Pine 4.33 with the latest beta snapshot of imap-2001, on:
	ftp://ftp.cac.washington.edu/mail/imap.tar.Z

Just delete the current pine4.33/imap thenrename imap-2001.BETA.SNAP-.....
to pine4.33/imap and then rebuild Pine (making sure that all of c-client
is rebuilt).

	"I'm my own grandpa,
	 I'm my own grandpa;
	 It sounds funny I know,
	 But it really is so;
	 I'm my own grandpa..."
			-- Mr. Whitekeys & the Fabulous SPAMtones

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.

---

From: "Mike A. Harris" <[email-masked]>
Date: Tue, 3 Apr 2001 16:28:57 -0400 (EDT)

>to pine4.33/imap and then rebuild Pine (making sure that all of c-client

Thanks for the quick reply Mark.  I'll try your suggestion, and
let you know if it works after doing some QA on it.

Take care,
TTYL