unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* lim_data too narrow
@ 2003-12-18  0:58 James Van Artsdalen
  0 siblings, 0 replies; only message in thread
From: James Van Artsdalen @ 2003-12-18  0:58 UTC (permalink / raw)


This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

In GNU Emacs 21.3 (amd64--freebsd)

lim_data is too narrow to hold the size of the process data segment.
On my system (with 8 GB of RAM) the rlimit is by default (in KB):

$ ulimit -d
8388608

lim_data needs to be at least as wide as the rlimit .rlim_cur field or
truncation occurs.

I'm not sure what the right cross-platform portable way to detect this
situation is.  The patch below is an example.

Note that this change is not sufficient to build emacs for amd64.

*** mem-limits.h.~1~    Wed Mar  8 12:49:46 2000
--- mem-limits.h        Wed Dec 17 03:15:24 2003
***************
*** 98,104 ****
  static POINTER data_space_start;
  
  /* Number of bytes of writable memory we can expect to be able to get */
! static unsigned long lim_data;
  
  #ifdef NO_LIM_DATA
  static void
--- 98,104 ----
  static POINTER data_space_start;
  
  /* Number of bytes of writable memory we can expect to be able to get */
! static rlim_t lim_data;
  
  #ifdef NO_LIM_DATA
  static void

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-18  0:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-18  0:58 lim_data too narrow James Van Artsdalen

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).