What is your stack size? The default for OS X is 512 KB. On my machine
(512M G4), XEmacs crashes consistently with a stack less than 8M. I have
seen crashes in the same routine (find-file), but most of them occur deep
within the regex routines (for me).
Also, you could turn on core file creation with the ulimit (sh or bash), or
limit (tcsh) command.
For OS X, it might be helpful fot the configure script to save ulimit or
limit -a as part of the intallation information. It would also be good if
the stack size problem were documented officially.
M-x describe-installation
On Fri, 27 Sep 2002, John Carson wrote:
I have a crash of the latest release of Xemacs from the
osxgnu.org
site. The new DLCOMPAT lib is installed on my system. No core file
was created, so I pasted below the information that was dumped. Xemacs
opens when I invoke the command by itself. However, when I attempt to
open a file from within the editor, or when I try an xemacs file.f90
the editor crashes.
Cheers,
John Carson
Navigation Software
NASA - Jet Propulsion Laboratory
--------------------------
[voldemort:~] jmcarson% xemacs-21.5-b9 halt.f90
_XF86BigfontQueryFont: could not attach shm segment
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
If you have access to the PROBLEMS file that came with your
version of XEmacs, please check to see if your crash is described
there, as there may be a workaround available.
Otherwise, please report this bug by running the send-pr
script included with XEmacs, or selecting `Send Bug Report'
from the help menu.
As a last resort send ordinary email to `crashes(a)xemacs.org'.
*MAKE SURE* to include the information in the command
M-x describe-installation.
If at all possible, *please* try to obtain a C stack backtrace;
it will help us immensely in determining what went wrong.
To do this, locate the core file that was produced as a result
of this crash (it's usually called `core' and is located in the
directory in which you started the editor, or maybe in your home
directory), and type
gdb /usr/local/bin/xemacs-21.5-b9 core
then type `where' when the debugger prompt comes up.
(If you don't have GDB on your system, you might have DBX,
or XDB, or SDB. A similar procedure should work for all of
these. Ask your system administrator if you need more help.)
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
string-match("bind (\\(?:.* \\)?__call_trapping_errors_arg__\\(?:.*
\\)?)[ \n]*\\(?:(lambda \\|
#<compiled-function
\\)(__call_trapping_errors_arg__).*\n\\(\\(?:.\\|\n\\)*\\)$" "
backtrace(nil t)
\n # bind (standard-output)\n # (unwind-protect ...)\n # bind
(handler-arg-name)\n backtrace-in-
condition-handler-eliminating-handler(__call_trapping_errors_arg__)\n
# bind (errstr __call_trappin
g_errors_arg__)\n #<compiled-function (__call_trapping_errors_arg__)
\"...(17)\" [__call_trapping_e
rrors_arg__ errstr error-message-string lwarn file-mode-spec warning
\"Error in %s: %s\\n\\nBacktrac
e follows:\\n\\n%s\" \"File mode specification\"
backtrace-in-condition-handler-eliminating-handler]
8>((void-variable allow-remote-paths))\n # bind (file-name)\n
file-remote-p(\"/usr/local/lib/xema
cs-21.5-b9/etc/package-index.LATEST.gpg\")\n # (unwind-protect ...)\n
# (unwind-protect ...)\n #
bind (buf force-current db-file)\n package-get-update-base(nil nil)\n
# bind (force-current)\n pa
ckage-get-require-base(nil)\n # bind (force-current sym)\n
package-get-package-provider(f90-mode)\
n # bind (alist mode name keep-going)\n # (unwind-protect ...)\n #
bind (just-from-file-name)\n
set-auto-mode()\n #<compiled-function nil \"...(5)\" [set-auto-mode t]
1>()\n # (unwind-protect ..
.)\n call-with-condition-handler(#<compiled-function
(__call_trapping_errors_arg__) \"...(17)\" [__
call_trapping_errors_arg__ errstr error-message-string lwarn
file-mode-spec warning \"Error in %s: %
s\\n\\nBacktrace follows:\\n\\n%s\" \"File mode specification\"
backtrace-in-condition-handler-elimi
nating-handler] 8> #<compiled-function nil \"...(5)\" [set-auto-mode t]
1>)\n # (condition-case ...
. ((error)))\n # bind (find-file)\n normal-mode(t)\n # bind
(nomodes after-find-file-from-revert
-buffer noauto warn error)\n after-find-file(nil t)\n
byte-code(\"...\" [buffer-file-number number
truename buffer-file-truename buf buffer-file-name
set-buffer-major-mode erase-buffer nil (byte-cod
e \´á¬ â\\\"â¢
Æ â\\\"‡\" [rawfile filename insert-file-contents-literally t
insert-file-contents] 3) ((file
rror (byte-code \"â\\n!´åÆ\\n!¨áââ«\\nD\\\´
»pâ¢Ã¡â¦Â !¨Ã»pâá\" [rawfile
error filename file-exists-p fil
-p signal file-error \"File is not readable\" t
run-hook-with-args-until-success find-file-not-found
-hooks] 4))) abbreviate-file-name file-name-directory
make-local-variable backup-inhibited t after-find-file
find-file-use-truenames default-directory backup-enable-predicate
rawfile error nowarn] 3)\
n # (condition-case ... . ((t (byte-code \"!â @ A\\\"á\" [buf
data kill-buffer signal] 3))))\n
# (unwind-protect ...)\n # bind (error number truename buf rawfile
nowarn filename)\n find-file-no
select(\"/Users/jmcarson/halt.f90\")\n # bind (codesys filename)\n
find-file(\"/Users/jmcarson/hal
t.f90\")\n # bind (dir file-count line end-of-options file-p arg
tem)\n command-line-1()\n # bind
(command-line-args-left)\n command-line()\n # (condition-case ... .
((t (byte-code \" o‡\
rror-data data nil] 1))))\n # bind (error-data)\n
normal-top-level()\n # (condition-case ... . er
ror)\n # (catch top-level ...)\n")
# (unwind-protect ...)
# bind (match-data bt handler-arg-name)
backtrace-in-condition-handler-eliminating-
handler(__call_trapping_errors_arg__)
# bind (errstr __call_trapping_errors_arg__)
#<compiled-function (__call_trapping_errors_arg__) "...(17)"
[__call_trapping_errors_arg__ errstr
error-message-string lwarn file-mode-spec warning "Error in %s:
%s\n\nBacktrace follows:\n\n%s" "Fil
e mode specification"
backtrace-in-condition-handler-eliminating-handler] 8>((void-variable
allow-re
mote-paths))
# bind (file-name)
file-remote-p("/usr/local/lib/xemacs-21.5-b9/etc/package-
index.LATEST.gpg")
# (unwind-protect ...)
# (unwind-protect ...)
# bind (buf force-current db-file)
package-get-update-base(nil nil)
# bind (force-current)
package-get-require-base(nil)
# bind (force-current sym)
package-get-package-provider(f90-mode)
# bind (alist mode name keep-going)
# (unwind-protect ...)
# bind (just-from-file-name)
set-auto-mode()
#<compiled-function nil "...(5)" [set-auto-mode t] 1>()
# (unwind-protect ...)
call-with-condition-handler(#<compiled-function
(__call_trapping_errors_arg__) "...(17)" [__call_t
rapping_errors_arg__ errstr error-message-string lwarn file-mode-spec
warning "Error in %s: %s\n\nBa
cktrace follows:\n\n%s" "File mode specification"
backtrace-in-condition-handler-eliminating-handler
] 8> #<compiled-function nil "...(5)" [set-auto-mode t] 1>)
# (condition-case ... . ((error)))
# bind (find-file)
normal-mode(t)
# bind (nomodes after-find-file-from-revert-buffer noauto warn error)
after-find-file(nil t)
byte-code("..." [buffer-file-number number truename
buffer-file-truename buf buffer-file-name set-
buffer-major-mode erase-buffer nil (byte-code ´á¬ â\"â¢
Æ â\"‡" [rawfile filename insert-file-contents-literally t
insert-file-contents] 3) ((file-er
r (byte-code "â\n!´åÆ\n!¨áââ«\nD\´
»pâ¢Ã¡â¦Â !¨Ã»pâá" [rawfile error
filename file-exists-p file-readable
file-error "File is not readable" t run-hook-with-args-until-success
find-file-not-found-hooks] 4)))
abbreviate-file-name file-name-directory make-local-variable
backup-inhibited t after-find-file fin
d-file-use-truenames default-directory backup-enable-predicate rawfile
error nowarn] 3)
# (condition-case ... . ((t (byte-code "!â @ A\"á" [buf data
kill-buffer signal] 3))))
# (unwind-protect ...)
# bind (error number truename buf rawfile nowarn filename)
find-file-noselect("/Users/jmcarson/halt.f90")
# bind (codesys filename)
find-file("/Users/jmcarson/halt.f90")
# bind (dir file-count line end-of-options file-p arg tem)
command-line-1()
# bind (command-line-args-left)
command-line()
# (condition-case ... . ((t (byte-code " o‡" [error-data data nil]
1))))
# bind (error-data)
normal-top-level()
# (condition-case ... . error)
# (catch top-level ...)
Segmentation fault
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Dr. Robert D. Royar Morehead State University royar(a)adelphia.net
T r a f f i c expands to exceed the available roadway.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=