unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Evil Boris <evilborisnet@netscape.net>
Subject: Re: RMAIL file locking problem?
Date: Thu, 28 Apr 2005 00:03:25 -0400	[thread overview]
Message-ID: <uhdhrfsz6.fsf@boris.laptop> (raw)
In-Reply-To: E1DOGdB-0004Vm-DN@fencepost.gnu.org


Richard Stallman <rms@gnu.org> writes:

> I don't know how to debug this remotely, but if you run
> under GDB, you can put a breakpoint at lock_file and see
> when and where it locks the file.  Using the xbacktrace
> GDB command at that point would give us a lot of info
> about the reason, probably enough to figure out what's
> happening.

I played with it a bit.  Emacs locks many files, so this gets quite
tedious.  As far as I can tell, this always happens here:
==========
(gdb) xbacktrace
"insert-file-contents"
"rmail-insert-inbox-text"
"rmail-get-new-mail"
"call-interactively"
(gdb) cont
==========

As far as I can tell, it is the following code:

		  (if file-name
		      (rmail-insert-inbox-text files nil)
		    (setq delete-files (rmail-insert-inbox-text files t)))

On my machine the locking trouble seems to happen when there is no new
mail.  My understanding is that RMAIL reads in the contents of the
(empty!) mailbox (by the way, would it make sense to check for 0
length and just skip the rest of jumping through hoops in this
case---no locking, no inserting of zero bytes, no testing for having
inserted zero bytes?)  

Any ideas of what else I can check?  It seems like one way the
lockfile appears (but not consistently!?!?!?) when I type "g" to get
new mail, while there isn't any in the mail box.

Any and all ideas welcome.
    --Boris

  reply	other threads:[~2005-04-28  4:03 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 16:16 RMAIL file locking problem? Evil Boris
2005-04-20 14:56 ` Richard Stallman
2005-04-28  4:03   ` Evil Boris [this message]
2005-04-29  0:13     ` Richard Stallman
2005-04-30 20:05       ` Evil Boris
2005-05-01 23:37         ` Richard Stallman
2005-05-10  3:03           ` Evil Boris
2005-05-11 16:28             ` Richard Stallman
2005-05-12  0:32               ` Evil Boris
2005-05-12 14:54                 ` Richard Stallman
2005-05-14  3:46                   ` Evil Boris
2005-05-14 15:13                     ` Richard Stallman
2005-05-14  4:17                   ` Evil Boris

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uhdhrfsz6.fsf@boris.laptop \
    --to=evilborisnet@netscape.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).