all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Possible memory corruption problem
@ 2006-02-06 15:36 Piet van Oostrum
  2006-02-06 19:13 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Piet van Oostrum @ 2006-02-06 15:36 UTC (permalink / raw)


I have had a few occasions when my mailboxes got corrupted.
I read my normal email with VM, and mail from mailing lists with gnus. I
have CVS emacs compiled about a month ago, running on Mac OS X 10.4.4.

A few cases now, the last of which was last weekend, the mailboxes that I
had open got completely mixed up. I lost my INBOX (primary VM mailbox)
completely last night, and some of its messages where found in the middle
of another mailbox that I had open. The mixup also occurred around last
Christmas with VM and gnus mailboxes mixed up. Sometimes the corrupted
mailboxes appeared to contain garbage text from other files.

My mailboxes are usually the largest files that I have open in Emacs, a few
MB each.

I have tried to find the common circumstances when this happens and it
aeems to me that it happens when the machine is low on virtual memory
(including swap space). So I suspect that some part of Emacs' buffer and
memory management fails to check the result of malloc calls or something
similar. I have written a test program and it appears that Mac OS X's
malloc and realloc correctly return NULL when the process runs out of
memory. 

I am sorry I can't give any more details at the moment. However I can add
that Emacs did not crash in the cases mentioned.
-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-02-20 18:42 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-06 15:36 Possible memory corruption problem Piet van Oostrum
2006-02-06 19:13 ` Eli Zaretskii
2006-02-06 22:14   ` Piet van Oostrum
2006-02-13  4:40   ` Richard M. Stallman
2006-02-14  4:35     ` Eli Zaretskii
2006-02-14  7:56       ` Piet van Oostrum
2006-02-14  9:29         ` Aidan Kehoe
2006-02-15  4:39           ` Richard M. Stallman
2006-02-16 13:21             ` Piet van Oostrum
2006-02-20 18:42               ` Richard M. Stallman
2006-02-14 22:17       ` Richard M. Stallman

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.