On Mon, 16 Dec 2002, Pitts Jarvis wrote:
The Carbon version of XEmacs sets the size of the stack explicitly.
(see run.c: int stack_size = 0x800000; /* moby */)
The Carbon version is two cooperative threads. The main thread fields
Carbon events. The second thread is XEmacs. The line of code above
sets the stack size of the second thread (XEmacs).
I recently set the stack size to 8MB per Royar's suggestion. Carbon
XEmacs no longer crashes with a segmentation fault in the regex code
when opening a file in shell-mode (my .tcshrc file for example).
Rather than crashing with a segmentation fault it fails with a warning.
I can ignore the warning and proceed to edit my .tcshrc file, but only
in fundamental mode.
The warning is:
(1) (file-mode-spec/warning) Error in File mode specification: sh-mode
I can load /etc/rc in XEmacs (carbon) with automatic sh-mode loading and
font lock. The sh-script.el file is in
xemac/xemacs-packages/lisp/sh-script/sh-script.el and may be an old version
(2.0e). Since package updates do not work under the carbon version, I can't
easily check that. The xemacs directory contains
xemacs/macintosh/XEmacs.app. I had to compile the terminal version with the
package directory in place so that the packages would be available. I
copied most of the packages from a working and up-to-date X11 version.
Before copying those files over to the xemacs directory, a number of modes
did not work properly.
Here is my system's return from M-x 'describe-installation'
uname -a: Darwin Grendal 6.2 Darwin Kernel Version 6.2: Tue Nov 5 22:00:03
PST 2002; root:xnu/xnu-344.12.2.obj~1/RELEASE_PPC Power Macintosh powerpc
./configure '--with-x11=no' '--pdump'
'--cppflags=-DREGEX_MALLOC'
'--error_checking=none' '--debug=no'
XEmacs 21.5-b9 "brussels sprouts" no debug for MAC configured for
`powerpc-apple-darwin6.2'.
Compilation / Installation:
Source code location: /Users/royar/Desktop/stuff/xemacs
Installation prefix: /usr/local
Operating system description file: `s/darwin.h'
Machine description file: `m/powerpc.h'
Compiler: gcc -no-cpp-precomp
Relocating allocator for buffers: no
GNU version of malloc: no
- The GNU allocators don't work with this system configuration.
Window System:
TTY:
Compiling in support for ncurses.
Images:
Sound:
Databases:
Compiling in support for Berkeley database.
Compiling in support for DBM.
Compiling in support for LDAP.
Internationalization:
Mail:
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Using the new portable dumper.