Pine crashes with "inconsistent header size"

Joseph Tam <[email protected]> Fri, 22 Jul 2011 18:04:28 -0700 (PDT)
Newsgroups gmane.mail.pine.general
Message-ID <Pine.GSO.4.64.1107221803220.9928@nodomain>
Problem

 	- run pine, open INBOX
 	- send a few message from another shell
 	- in pine, do 'x' to force refresh of INBOX
 	-> pine halts with "Problem detected: inconsistent header size"
 	message.  It also leaves a .lock file that has to be removed.

Environment

 	pine 4.61 (yes, I should update) with NFS/NetApp mounted INBOX
 		(Solaris/Ubuntu clients)
 	sendmail MTA / dovecot LDA (Solaris10), also NFS mounted INBOXs.

Process trace leading up to crash

 	... bunch of sigaction() calls ...
 	sigaction(SIGINT, 0xFFBFE1E8, 0xFFBFE288)       = 0
 	    new: hand = 0x00000001 mask = 0 0 0 0 flags = 0x0004
 	    old: hand = 0x00000001 mask = 0 0 0 0 flags = 0x0000
 	fstat64(2, 0xFFBFD1F8)                          = 0
 	    d=0x043C0000 i=12582924 m=0020620 l=1  u=10587 g=7     rdev=0x00600004
 		at = Jul 21 15:39:46 PDT 2011  [ 1311287986.000000000 ]
 		mt = Jul 21 15:39:46 PDT 2011  [ 1311287986.000000000 ]
 		ct = Jul 21 15:04:17 PDT 2011  [ 1311285857.000000000 ]
 	    bsz=8192  blks=0     fs=devfs
 	write(2, "\n\n", 2)                             = 2
 	write(2, " P r o b l e m   d e t e".., 59)      = 59
 	write(2, "\n", 1)                               = 1
 	llseek(9, 0xFFFFFFFFFFFFFFFF, SEEK_CUR)         = 2739
 	_exit(-1)

Partial fix

 	This problem didn't happen when I used Solaris' mail.local LDA,
 	but started after switching to dovecot's LDA.  Investigating why
 	it only happened for some users led to me discover that having
 	the pine/uw-imapd pseudo-message (i.e. Subject: DON'T DELETE
 	THIS MESSAGE -- FOLDER INTERNAL DATA) at the head of the INBOX
 	prevented this crash.

 	Pine complains about UIDVALIDITY changes whenever new mail
 	arrives, but recovers.	These messages also never happended
 	before the LDA change.

It's obvious that dovecot-lda is changing the mailbox in a way that
hopelessly confuses pine.  What I don't understand is why it's a problem
now and not before, and why the addition of the pseudo-message helps
matters.

I've minimizes NFS problems by setting attribute caching off
(noac,actimeo=0).  This setting has not changed with the change
of LDA.  There seems to be something else going on.  Ideas?

Thanks,
Joseph Tam <[email protected]>
_______________________________________________
Pine-info mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/pine-info