From: pot@fly.cnuce.cnr.it (Francesco Potorti`)
Subject: rmail makes emacs dump core
Reply-To: pot@cnuce.cnr.it
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 15 Apr 1992 17:43:00 GMT

This happens on emacs-18.58 on usg-unix-v on a Motorola Delta.  The
bug is the same for emacs-18.57, but it is not present in emacs-18.55.
Anyway, emacs-18.55 does not fully understand the rmail format of
18.58, so its behavior is somewhat different.  The bug is not apparent
on a SUN running 18.57.

Following is a test case: an RMAIL file that makes emacs fill up all
the available memory and then dump core with a `bus error' error.  The
RMAIL file is composed by three messages.  The second message is
unseen, and it is very long (more than 400k).  The message is made of
similar lines each more than 110 characters long.  The bug does not
manifest if the message is shorter.

To reproduce the bug:

   write to a file named badRMAIL.Z.uu the last part of this mail,
uudecode badRMAIL.Z.uu, uncompress it, visit the file badRMAIL and
search for `*****' (five asterisks).
   It is the point where 3611 lines have been deleted.  Delete the
comment line closed between [].
   Mark the previous line, copy-region-as-kill, then yank it 3611
times.  {btw, why C-u 3 6 1 1 C-y does not work?  I had to do C-x (
C-y C-u 3 6 1 1 C-x ) }. Save the file.
   Execute (rmail "badRMAIL").  You will see the header of the third
message.  If you press `p' emacs will begin to eat memory and
eventually will die and dunp core, if you don't stop it with ^G.

If you cannot reproduce the bug, please mail me any action I should
take to identify the bug location.  Thanks.

		    Francesco Potorti`	| pot@cnuce.cnr.IT (Internet)
				 	| 39369::pot       (DECnet)
					| (39)(50)593203   (voice)
------------- RMAIL file compressed and uuencoded --------------------
begin 664 badRMAIL.Z
M'YV00H((R<($Q!,H5)(\<3)%AP(K9>3,2?/&C0X0-10P"2.F#)LY.MRD8<-"
M3IDP9%BL6:G`R1LZ92Z"`$$%39HY(&Z"H(.F#(B>*".">&,&1!@W(.2T"3,2
MA)F195RT?!ES)H@D1?.\J6/4)(@Y9<JD<7,F)YV<2)4R)3D5ILR9:<ZV.>D&
M)T^?3]GX1!,&IYLW(.;.F1/F3!F<8\U*_<!`00P6+!1,J=-FJ9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