unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Piet van Oostrum <piet@cs.uu.nl>
Subject: Re: Possible memory corruption problem
Date: Thu, 16 Feb 2006 14:21:24 +0100	[thread overview]
Message-ID: <m264nf30dn.fsf@ordesa.cs.uu.nl> (raw)
In-Reply-To: <E1F9ESJ-00023i-VK@fencepost.gnu.org> (Richard M. Stallman's message of "Tue, 14 Feb 2006 23:39:55 -0500")

>>>>> "Richard M. Stallman" <rms@gnu.org> (RMS) wrote:

>RMS> Does this change do the job?  (Of course, we would put HAVE_GETRLIMIT
>RMS> under the control of configure.)

I think under normal circumstances this would generate the warnings.
However, man getrlimit in Mac OS X says:


     RLIMIT_DATA     The maximum size (in bytes) of the data segment for a
                     process; this defines how far a program may extend its
                     break with the sbrk(2) system call.

I don't know if this is to be taken literally, because as I wrote in a
previous message sbrk() isn't used at all.
Also I doubt that this will give a warning if the memory shortage is caused
by depletion of swap space rather than running out of address space.

Moreover I think this patch does not solve the problem at hand, as these
are only warnings. My assessment of the situation was that Emacs got an
unsuccessful malloc or realloc and didn't notice it. When Emacs gets NULL
on these it should abort or some such whether there has been a low memory
warning or not, and apparently it just continued.

-- 
Piet van Oostrum <piet@cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet@vanoostrum.org

  reply	other threads:[~2006-02-16 13:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2006-02-20 18:42               ` Richard M. Stallman
2006-02-14 22:17       ` Richard M. Stallman

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=m264nf30dn.fsf@ordesa.cs.uu.nl \
    --to=piet@cs.uu.nl \
    /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).