================================================================
Dear Bug Team!
temacs crashed due to lim_data being only 32-bits wide.
On my system with 8 GB of RAM the rlimits are 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.
With the patch below temacs runs correctly. I'm not sure what the
right cross-platform portable way to detect this situation is.
xemacs itself seems to run fine with a minor unexelf.c change: I'll
submit it once the FreeBSD guys tell me how to test for it correctly.
*** mem-limits.h.~1~ Wed Aug 27 12:26:21 2003
--- mem-limits.h Tue Dec 16 22:10:00 2003
***************
*** 108,114 ****
static POINTER data_space_start;
/* Number of bytes of writable memory we can expect to be able to get */
! extern unsigned int lim_data;
#if defined (HEAP_IN_DATA) && !defined(PDUMP)
extern unsigned long static_heap_size;
--- 108,114 ----
static POINTER data_space_start;
/* Number of bytes of writable memory we can expect to be able to get */
! extern rlim_t lim_data;
#if defined (HEAP_IN_DATA) && !defined(PDUMP)
extern unsigned long static_heap_size;
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: FreeBSD
opteron.jrv.org 5.2-CURRENT FreeBSD 5.2-CURRENT #0: Mon Dec 15 21:01:55
CST 2003 jamesīŧ opteron.jrv.org:/usr/src/sys/amd64/compile/GENERIC amd64
./configure '--with-clash-detection' '--with-sound=native,nonas,noesd'
'--site-includes=/usr/local/include' '--site-libraries=/usr/local/lib'
'--with-ldap=no' '--with-postgresql=no' '--with-site-lisp'
'--with-database=berkdb' '--x-libraries=/usr/X11R6/lib'
'--x-includes=/usr/X11R6/include' '--prefix=/usr/local'
'amd64--freebsd'
XEmacs 21.5-b15 "celery" configured for `amd64--freebsd'.
Compilation / Installation:
Source code location: /usr/ports/editors/xemacs-devel/work/xemacs-21.5.15
Installation prefix: /usr/local
Additional header files: /usr/local/include
Additional libraries: /usr/local/lib
Runtime library search path: /usr/local/lib:/usr/X11R6/lib
Operating system description file: `s/freebsd.h'
Not using any machine description file
Compiler: cc -Wall -Wno-switch -Winline -Wmissing-prototypes
-Wsign-compare -Wundef -Wstrict-prototypes -Wpacked -Wshadow -Wmissing-declarations
-Wpointer-arith -O -pipe
Relocating allocator for buffers: yes
GNU version of malloc: yes
Linking with `-z nocombreloc'.
- Consider configuring with --pdump.
Window System:
Compiling in support for the X window system:
- X Windows headers location: /usr/X11R6/include
- X Windows libraries location: /usr/X11R6/lib
- Handling WM_COMMAND properly.
Using Lucid menubars.
Using Lucid scrollbars.
TTY:
Compiling in support for ncurses.
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Databases:
Compiling in support for Berkeley database.
Internationalization:
Mail:
Compiling in support for "flock" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Compiling in support for extra debugging code.
WARNING: ---------------------------------------------------------
WARNING: Compiling in support for runtime error checking.
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
Load-Path Lisp Shadows:
----------------------
(/usr/local/lib/xemacs/xemacs-packages/lisp/build/build-report
/usr/local/lib/xemacs-21.5-b15/lisp/build-report)
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.14 :author-version "2.112" :type regular)
(xslt-process :version 1.11 :type regular)
(xslide :version 1.09 :author-version "0.2.2" :type regular)
(xemacs-devel :version
1
.6
:author-version
"No-Upstream-Ver
" :type
single-file)
(xemacs-base :version 1.82 :author-version "No-Upstream-Ver" :type regular)
(x-symbol :version 1.07 :author-version "4.5.1" :type regular)
(w3 :version 1.29 :author-version "4.0pre47" :type regular)
(vm :version 7.18 :author-version "7.17" :type regular)
(viper :version 1.37 :author-version "3.09" :type regular)
(view-process :version 1.13 :author-version "2.4" :type regular)
(vhdl :version 1.18 :author-version "3.31.20" :type regular)
(vc-cc :version 1.22 :author-version "No-Upstream-Ver" :type regular)
(vc :version 1.38 :author-version "No-Upstream-Ver" :type regular)
(tramp :version 1.16 :type regular)
(tpu :version 1.14 :author-version "4.2X" :type regular)
(tooltalk :version 1.15 :author-version "No-Upstream-Ver" :type regular)
(tm :version 1.37 :author-version "No-Upstream-Ver" :type regular)
(time :version 1.14 :author-version "1.17" :type regular)
(textools :version 1.15 :author-version "No-Upstream-Ver" :type regular)
(text-modes :version
1
.71
:author-version
"No-Upstream-Ver
" :type
single-file)
(texinfo :version 1.25 :author-version "No-Upstream-Ver" :type regular)
(supercite :version 1.2 :author-version "3.55x3" :type regular)
(strokes :version 1.1 :author-version "No-Upstream-Ver" :type regular)
(speedbar :version 1.27 :author-version "0.14beta4" :type regular)
(sounds-wav :version 1.12 :author-version "No-Upstream-Ver" :type regular)
(sounds-au :version 1.12 :author-version "No-Upstream-Ver" :type regular)
(sml-mode :version 0.1 :author-version "3.9.5" :type regular)
(slider :version 1.15 :author-version "0.3x1" :type regular)
(sieve :version 1.14 :author-version "No-Upstream-Ver" :type regular)
(sh-script :version 1.18 :author-version "2.0e" :type regular)
(sgml :version 1.1 :author-version "No-Upstream-Ver" :type regular)
(semantic :version 1.18 :author-version "1.4.2" :type regular)
(scheme :version 1.14 :author-version "No-Upstream-Ver" :type regular)
(sasl :version 1.14 :author-version "1.14.4" :type regular)
(ruby-modes :version 1.02 :author-version "1.6.8" :type regular)
(rmail :version 1.14 :author-version "No-Upstream-Ver" :type regular)
(riece :version 1.12 :author-version "0.1.5" :type regular)
(reftex :version 1.33 :author-version "4.21" :type regular)
(python-modes :version
1
.03
:author-version
"No-Upstream-Ver
" :type
single-file)
(psgml-dtds :version 1.03 :author-version "No-Upstream-Ver" :type regular)
(psgml :version 1.41 :type regular)
(ps-print :version 1.09 :author-version "6.5.6" :type regular)
(prog-modes
:version
1
.91
:author-version
"No-Upstream-Ver
" :type
single-file)
(pgg :version 1.04 :author-version "0.1" :type regular)
(perl-modes :version
1
.05
:author-version
"No-Upstream-Ver
" :type
single-file)
(pcomplete :version 1.03 :author-version "1.1.6" :type regular)
(pcl-cvs :version 1.65 :author-version "R-2_9_9" :type regular)
(pc :version 1.26 :author-version "No-Upstream-Ver" :type single-file)
(os-utils :version 1.34 :author-version "No-Upstream-Ver" :type single-file)
(oo-browser :version 1.04 :author-version "4.08" :type regular)
(ocaml :version 0.05 :author-version "3.06" :type regular)
(net-utils :version
1
.33
:author-version
"No-Upstream-Ver
" :type
single-file)
(mmm-mode :version 1.01 :author-version "0.4.7" :type regular)
(misc-games :version
1
.18
:author-version
"No-Upstream-Ver
" :type
single-file)
(mine :version 1.16 :author-version "1.9" :type regular)
(mh-e :version 1.27 :author-version "7.4.2" :type regular)
(mew :version 1.18 :author-version "1.94.2" :type regular)
(mailcrypt :version 2.13 :author-version "3.5.8" :type regular)
(mail-lib :version 1.63 :author-version "No-Upstream-Ver" :type regular)
(liece :version 1.12 :type regular)
(jde :version 1.46 :type regular)
(ispell :version 1.26 :author-version "3.3" :type regular)
(ilisp :version 1.33 :author-version "5.12.0" :type regular)
(igrep :version 1.12 :author-version "2.95" :type regular)
(idlwave :version 1.31 :author-version "5.1" :type regular)
(ibuffer :version 1.09 :author-version "No-Upstream-Ver" :type regular)
(hyperbole :version 1.13 :author-version "4.18" :type regular)
(hm--html-menus :version 1.23 :author-version "5.9" :type regular)
(haskell-mode :version 1.06 :author-version "1.44" :type regular)
(gnus :version 1.73 :type regular)
(gnats :version 1.16 :author-version "3.101" :type regular)
(general-docs :version 1.01 :author-version "No-Upstream-Ver" :type regular)
(games :version 1.15 :author-version "1.04" :type regular)
(fsf-compat :version
1
.13
:author-version
"No-Upstream-Ver
" :type
single-file)
(frame-icon :version 1.11 :author-version "No-Upstream-Ver" :type regular)
(fortran-modes :version
1
.03
:author-version
"No-Upstream-Ver
" :type
single-file)
(forms :version 1.15 :author-version "2.37" :type regular)
(footnote :version 1.16 :author-version "0.18x" :type regular)
(eudc :version 1.39 :author-version "1.32" :type regular)
(eterm :version 1.15 :author-version "No-Upstream-Ver" :type regular)
(ess :version 1.06 :author-version "5.1.21" :type regular)
(eshell :version 1.06 :author-version "2.4.1" :type regular)
(emerge :version 1.11 :author-version "No-Upstream-Ver" :type regular)
(elib :version 1.11 :author-version "1.0" :type single-file)
(eieio :version 1.05 :author-version "0.17" :type regular)
(efs :version 1.32 :author-version "1.22" :type regular)
(edt :version 1.13 :author-version "No-Upstream-Ver" :type regular)
(edit-utils :version
2
.1
:author-version
"No-Upstream-Ver
" :type
single-file)
(ediff :version 1.49 :author-version "2.75" :type regular)
(edebug :version 1.2 :author-version "No-Upstream-Ver" :type regular)
(ecrypto :version 0.14 :author-version "2.0" :type regular)
(ecb :version 1.13 :author-version "1.96" :type regular)
(docbookide :version
0
.07000000000000001
:author-version
"0
.1
" :type
regular)
(dired :version 1.15 :author-version "7.11" :type regular)
(dictionary :version 1.12 :type regular)
(debug :version 1.17 :author-version "No-Upstream-Ver" :type regular)
(crisp :version 1.14 :author-version "1.34" :type regular)
(cookie :version 1.15 :author-version "No-Upstream-Ver" :type regular)
(clearcase :version 1.08 :author-version "No-Upstream-Ver" :type regular)
(cc-mode :version 1.41 :author-version "5.30.7" :type regular)
(calendar :version 1.22 :author-version "No-Upstream-Ver" :type regular)
(calc :version 1.24 :author-version "2.02fX3" :type regular)
(c-support :version
1
.18
:author-version
"No-Upstream-Ver
" :type
single-file)
(build :version 1.14 :author-version "2.02" :type regular)
(bbdb :version 1.24 :author-version "2.34" :type regular)
(auctex :version 1.35 :type regular)
(apel :version 1.27 :author-version "10.2" :type regular)
(ada :version 1.14 :author-version "2.27" :type regular)
(Sun :version 1.15 :author-version "No-Upstream-Ver" :type regular))
Installed Modules:
-----------------
Features:
--------
(mail-abbrevs cc-mode cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs regexp-opt efs-cu xemacsbug shadow sendmail rfc822
time cus-face zenirc-autoloads xslt-process-autoloads xslide-autoloads
xemacs-devel-autoloads xemacs-base-autoloads x-symbol-autoloads
w3-autoloads vm-autoloads viper-autoloads view-process-autoloads
vhdl-autoloads vc-cc-autoloads vc-autoloads tramp-autoloads
tpu-autoloads tooltalk-autoloads tm-autoloads time-autoloads
textools-autoloads text-modes-autoloads texinfo-autoloads
supercite-autoloads strokes-autoloads speedbar-autoloads
sounds-wav-autoloads sounds-au-autoloads sml-mode-autoloads
slider-autoloads sieve-autoloads sh-script-autoloads sgml-autoloads
semantic-autoloads scheme-autoloads sasl-autoloads
ruby-modes-autoloads rmail-autoloads riece-autoloads reftex-autoloads
python-modes-autoloads psgml-dtds-autoloads psgml-autoloads
ps-print-autoloads prog-modes-autoloads pgg-autoloads
perl-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads
pc-autoloads os-utils-autoloads oo-browser-autoloads ocaml-autoloads
net-utils-autoloads mmm-mode-autoloads misc-games-autoloads
mine-autoloads mh-e-autoloads mew-autoloads mailcrypt-autoloads
mail-lib-autoloads liece-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads ibuffer-autoloads
hyperbole-autoloads hm--html-menus-autoloads haskell-mode-autoloads
gnus-autoloads gnats-autoloads general-docs-autoloads games-autoloads
fsf-compat-autoloads frame-icon-autoloads fortran-modes-autoloads
forms-autoloads footnote-autoloads eudc-autoloads eterm-autoloads
ess-autoloads eshell-autoloads emerge-autoloads elib-autoloads
eieio-autoloads efs-autoloads edt-autoloads edit-utils-autoloads
ediff-autoloads edebug-autoloads ecrypto-autoloads ecb-autoloads
docbookide-autoloads dired-autoloads dictionary-autoloads
debug-autoloads crisp-autoloads cookie-autoloads clearcase-autoloads
cc-mode-autoloads calendar-autoloads calc-autoloads
c-support-autoloads build-autoloads bbdb-autoloads auctex-autoloads
apel-autoloads ada-autoloads Sun-autoloads modules-autoloads
auto-autoloads loadhist rsz-minibuf auto-show fontl-hooks x-iso8859-1
code-cmds gutter-items menubar-items x-menubar mode-motion mouse
behavior itimer auto-save lisp-mode easymenu iso8859-1 page buff-menu
lib-complete cus-file derived newcomment env text-props frame obsolete
cus-start custom widget cl-extra mini-cl cl cl-19 packages backquote
unicode lucid-scrollbars cut-buffer lucid-menubars x c-balloon-help
tty-frames tty toolbar native-sound scrollbar unix-processes multicast
network-streams subprocesses modules menu-accelerator-support menubar
berkeley-db md5 xemacs gutter tiff png gif jpeg xface xpm xbm
lisp-float-type file-coding berkeley-unix devices window-system
base64)
Recent keystrokes:
-----------------
M-x r e p o r t - x e m SPC b SPC RET C-g C-x C-f /
u s r / o BS p o TAB x BS e d i TAB x e m TAB - d e
TAB w BS w BS TAB TAB / w TAB x TAB s TAB m m e C-t
TAB RET C-s l i m _ e C-a M-x r e p o t r BS BS r t
- x SPC v SPC BS b SPC RET
Recent messages (most recent first):
-----------------------------------
Auto save file for draft message exists; consider M-x mail-recover
Parsing /home/james/.mailrc... done
Parsing /home/james/.mail_aliases... done
Parsing /home/james/.mail_aliases...
Parsing /home/james/.mailrc...
Loading cc-mode...done
Loading cc-mode...
Loading efs-cu...done
Loading efs-cu...
Note: file is write protected
Making completion list...
Quit
Loading xemacsbug...done
Loading xemacsbug...
Loading time...done
Loading cus-face...done
Loading cus-face...
Loading time...