🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189399

Problem with movemail and MMDF mailbox

#189399
From: Jason Merrill
Date: Tue, 05 Mar 1991 03:29
21 lines
1621 bytes
Ever since I built Emacs (18.57) on a local SPARCstation, whenever I try to
run vm it seems to load fine, then says, "Getting new mail from
~/mailbox...", and hangs.  I have set vm-spool-files to '("~/mailbox").

Pulling out dbx (gotta install gdb sometime), I found that the mailbox
filename expands to "/remote/jarthur/hmc2/hmc_1993/jmerrill/mailbox", which
runs six characters over movemail's 40-char definition for tempname.

movemail properly(?) creates a lockfile such as Ea11539 in my home directory
(should it be somewhere else?), but tempname has overflowed its bounds,
writing randomly into other parts of memory.  In my case, it is overwriting
lockname (which had previously been properly set to .../jmerrill/mailbox.lock).

Therefore, link(tempname,lockname) on line 157 never succeeds, and I find
myself in an infinite loop.

Now, the obvious solution to this problem is to increase the size of
tempname in movemail.c.  Is there a better way to get around this problem?

Jason Merrill
jmerrill@jarthur.claremont.edu
Technical Details
Message-ID: <JMERRILL.91Mar4192952@graydon.Claremont.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!decwrl!elroy.jpl.nasa.gov!jarthur!jmerrill

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,6ad5d53ad62d1928,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-03-05 19:46:48 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!olivea!decwrl!elroy.jpl.nasa.gov!jarthur!jmerrill
From: jmerrill@jarthur.claremont.edu (Jason Merrill)
Newsgroups: gnu.emacs.help
Subject: Problem with movemail and MMDF mailbox
Message-ID: <JMERRILL.91Mar4192952@graydon.Claremont.EDU>
Date: 5 Mar 91 03:29:52 GMT
Sender: news@jarthur.Claremont.EDU
Distribution: gnu
Organization: M.Y.T.H. Inc.
Lines: 21