>>>> "Marcus" == Marcus Crestani
<crestani(a)informatik.uni-tuebingen.de> writes:
Marcus> Thanks for testing, Malcolm! I'll try to reproduce this crash.
Thanks! Now here are some more!
I've been runninng your patch as my day-to-day XEmacs at work and today
managed to get 4 crashes. After the first I started running it under gdb to
get proper stack traces.
If you need any more data then please let me know.
My configuration was:
---------------------------------------------------------------------------
uname -a: Linux malcolmp.sw.oz.au 2.6.12-1.1380_FC3 #1 Wed Oct 19 20:34:13 EDT 2005 i686
i686 i386 GNU/Linux
../../sandboxen/garbage/configure '--prefix=/home/malcolmp/prefix'
'--enable-mule' '--enable-newgc' '--with-optimization'
XEmacs 21.5-b23 "daikon" (+CVS-20051106) configured for `i686-pc-linux'.
Compilation Environment and Installation Defaults:
Source code location: /home/malcolmp/builds/xemacs/sandboxen/garbage
Installation prefix: /home/malcolmp/prefix
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler version: gcc (GCC) 3.4.4 20050721 (Red Hat 3.4.4-2)
- GCC specs file: /usr/lib/gcc/i386-redhat-linux/3.4.4/specs
- Compiler command: gcc -Wall -Wno-switch -Wundef -Wsign-compare
-Wno-char-subscripts -Wpacked -Wunused-parameter -g -O3
libc version: glibc-2.3.6-0.fc3.1
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
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.
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw
- Athena library to link: Xaw
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
WARNING: -----------------------------------------------------------
WARNING: Compiling without PNG image support.
WARNING: You should strongly consider installing the PNG libraries.
WARNING: Otherwise certain images and glyphs may not display.
WARNING: (a copy may be found in
ftp://ftp.xemacs.org/pub/xemacs/aux)
WARNING: -----------------------------------------------------------
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.
Compiling in support for LDAP.
Internationalization:
Compiling in support for Mule (multi-lingual Emacs).
Compiling in support for XIM (X11R5+ I18N input method).
- Using raw Xlib to provide XIM support.
Mail:
Compiling in support for "file" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new GC algorithms.
WARNING: ---------------------------------------------------------
WARNING: The new algorithms are experimental. They are enabled by
WARNING: default for this release. Use `--disable-kkcc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new allocator.
WARNING: ---------------------------------------------------------
WARNING: The new allocator is experimental. It is enabled by
WARNING: default for this release. Use `--disable-mc-alloc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new incremental garbage collector.
Using sigaction() to install fault handler.
Using the new portable dumper.
Compiling in support for extra debugging code.
Compiling in support for runtime error checking.
WARNING: ---------------------------------------------------------
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
---------------------------------------------------------------------------
1) Crashed while expiring articles in Gnus - No backtrace
Fatal Error: Received SIGSEGV (11) for address 0x34
Fatal error (11).
Your files have been auto-saved.
Use `M-x recover-session' to recover them.
Your version of XEmacs was distributed with a PROBLEMS file that may describe
your crash, and with luck a workaround. Please check it first, but do report
the crash anyway.
Please report this bug by invoking M-x report-emacs-bug, or by selecting
`Send Bug Report' from the Help menu. If that won't work, send ordinary
email to `xemacs-beta(a)xemacs.org'. *MAKE SURE* to include this entire
output from this crash, especially including the Lisp backtrace, as well as
the XEmacs configuration from M-x describe-installation (or equivalently,
the file `Installation' in the top of the build tree).
*Please* try *hard* to obtain a C stack backtrace; without it, we are unlikely
to be able to analyze the problem. Locate the core file produced as a result
of this crash (often called `core' or `core.<process-id>', and located in
the directory in which you started XEmacs or your home directory), and type
gdb /export/home/malcolmp/prefix/bin/xemacs core
then type `where' at the debugger prompt. No GDB on your system? You may
have DBX, or XDB, or SDB. (Ask your system administrator if you need help.)
If no core file was produced, enable them (often with `ulimit -c unlimited')
in case of future recurrance of the crash.
Lisp backtrace follows:
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
("(in garbage collection)" "[internal]")
# (unwind-protect ...)
# (unwind-protect ...)
# (unwind-protect ...)
# bind (end)
# (unwind-protect ...)
# bind (string proc)
imap-arrival-filter(#<process "imap" pid 4523 state:run> "ETCH
(FLAGS (\\Seen)\n* 1048 FETCH")FLAGS (\\Seen))
("execute_internal_event()" "[internal]")
# (unwind-protect ...)
accept-process-output(#<process "imap" pid 4523 state:run> 0 100)
# bind (len message-log-max imap-have-messaged)
# (unwind-protect ...)
# bind (buffer tag)
imap-wait-for-tag(447 nil)
# bind (buffer command)
imap-send-command-wait("UID STORE 1:1384 +FLAGS (\\Seen)")
# (unwind-protect ...)
# bind (buffer silent flags articles)
imap-message-flags-add("1:1384" "\\Seen")
# bind (range what cmdmarks marks action)
# (unwind-protect ...)
# bind (server actions group)
nnimap-request-set-mark("INBOX/archives/aurema/armtech/progs/posix" ((((1 .
1384)) add (read))) "imaps")
# bind (gnus-command-method action group)
gnus-request-set-mark("nnimap+imaps:INBOX/archives/aurema/armtech/progs/posix"
((((1 . 1384)) add (read))))
# bind (range active info entry num articles group)
gnus-group-make-articles-read("nnimap+imaps:INBOX/archives/aurema/armtech/progs/posix"
(1384))
# bind (buffer mark active n article group)
gnus-group-mark-article-read("nnimap+imaps:INBOX/archives/aurema/armtech/progs/posix"
1384)
# bind (group-art nnmail-cache-accepted-message-ids group target)
nnmail-expiry-target-group("nnimap+imaps:INBOX/archives/aurema/armtech/progs/posix"
"INBOX/aurema/armtech/progs/posix")
# bind (nnimap-current-move-article nnimap-current-move-group nnimap-current-move-server
--dolist-temp--25553 art)
# (unwind-protect ...)
# (unwind-protect ...)
# bind (temp-buffer server group arts)
nnimap-expiry-target((250 251 252 253 254 255 256 257)
"INBOX/aurema/armtech/progs/posix" "imaps")
# bind (oldarts imap-fetch-data-hook days)
# (unwind-protect ...)
# bind (artseq force server group articles)
nnimap-request-expire-articles((250 251 252 253 254 255 256 257 258 259 260 261 262 263
264 265 266 267 268 269 270 271 272 273 274 275 276)
"INBOX/aurema/armtech/progs/posix" "imaps" nil)
# bind (gnus-command-method force group articles)
gnus-request-expire-articles((250 251 252 253 254 255 256 257 258 259 260 261 262 263
264 265 266 267 268 269 270 271 272 273 274 275 276)
"nnimap+imaps:INBOX/aurema/armtech/progs/posix")
# (unwind-protect ...)
# bind (es nnmail-expiry-target expiry-wait expirable total now)
gnus-summary-expire-articles()
run-hooks(gnus-summary-expire-articles)
apply(run-hooks gnus-summary-expire-articles)
# (unwind-protect ...)
# bind (funcs)
gnus-run-hooks(gnus-summary-prepare-exit-hook)
# bind (buf group-point mode gnus-group-is-exiting-p quit-config group leave-hidden
temporary)
gnus-summary-exit(t)
# bind (current-group current-buffer entered backward target-group no-article)
gnus-summary-next-group(nil "nnimap+imaps:INBOX/aurema/gnats-admin" nil)
# bind (keystrokes cursor-in-echo-area keve key group ended prompt start backward unread
cmd from-group)
gnus-summary-walk-group-buffer("nnimap+imaps:INBOX/aurema/armtech/progs/posix"
?n t nil 199)
# bind (cmd point group push backward subject unread)
gnus-summary-next-article(t nil)
#<compiled-function nil "...(73)" [gnus-newsgroup-data
gnus-auto-select-same gnus-summary-goto-unread headers to gnus-summary-next-article never
gnus-summary-last-article-p get-text-property gnus-intangible gnus-summary-goto-subject
gnus-number gnus-summary-last-subject 3 vectorp 1] 7
("/home/malcolmp/prefix/lib/xemacs/site-packages/lisp/gnus/gnus-sum.elc" .
206853) nil>()
call-interactively(gnus-summary-next-unread-article)
(dispatch-event "[internal]")
# (condition-case ... . error)
# (catch top-level ...)
---------------------------------------------------------------------------
2) Starting to reply to a message in Gnus.
Fatal error: assertion failed, file
/home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c, line 1462, !LRECORD_FREE_P
(ptr)
Program received signal SIGABRT, Aborted.
[Switching to Thread -1209537920 (LWP 4584)]
0xb7f6a402 in __kernel_vsyscall ()
(gdb) where
#0 0xb7f6a402 in __kernel_vsyscall ()
#1 0x006327d5 in raise () from /lib/tls/libc.so.6
#2 0x00634149 in abort () from /lib/tls/libc.so.6
#3 0x080f56b9 in assert_failed (
file=0x837a118
"/home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c", line=4584,
expr=0x6 <Address 0x6 out of bounds>)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/emacs.c:4652
#4 0x08209e67 in sweep_page (ph=0xb67fb28)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:1462
#5 0x08209ebf in mc_sweep ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:449
#6 0x0820ebfb in gc_1 (incremental=1)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1557
#7 0x0820ed39 in gc_incremental ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1744
#8 0x080fc8b4 in Ffuncall (nargs=2, args=0xbfa6628c)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/eval.c:3822
---------------------------------------------------------------------------
3) Sitting idle while reading a message in Gnus
Fatal Error: Received SIGSEGV (11) for address 0x34
Fatal error (11).
(gdb) where
#0 0xb7f01402 in __kernel_vsyscall ()
#1 0x00632c76 in kill () from /lib/tls/libc.so.6
#2 0x080f5c2b in fatal_error_signal (sig=11)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/emacs.c:3782
#3 <signal handler called>
#4 0x08209c97 in sweep_page (ph=0xbd3b950) at lrecord.h:1779
#5 0x08209ebf in mc_sweep ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:449
#6 0x0820ebfb in gc_1 (incremental=1)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1557
#7 0x0820ed39 in gc_incremental ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1744
#8 0x080fc8b4 in Ffuncall (nargs=2, args=0xbfe00bf8)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/eval.c:3822
#9 0x080fd054 in call1 (fn=0, arg0=0)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/eval.c:4542
#10 0x0811c6d6 in execute_internal_event (event=189848404)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/event-stream.c:2999
#11 0x0811daea in Fdispatch_event (event=189848404)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/event-stream.c:4642
#12 0x080b9854 in Fcommand_loop_1 ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/cmdloop.c:600
#13 0x080b994e in command_loop_1 (unused_dummy=179037264)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/cmdloop.c:505
#14 0x080ffcc6 in condition_case_1 (handlers=179035760,
bfun=0x80b9914 <command_loop_1>, barg=179037264,
hfun=0x80b9298 <cmd_error>, harg=179037264)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/eval.c:1924
#15 0x080b9454 in command_loop_2 (unused_dummy=179037264)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/cmdloop.c:262
#16 0x080fa1ad in internal_catch (tag=0, func=0x80b9420 <command_loop_2>,
arg=179037264, threw=0x0, thrown_tag=0x0, backtrace_before_throw=0x0)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/eval.c:1530
#17 0x080b9532 in initial_command_loop (load_me=179037264)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/cmdloop.c:313
#18 0x080f7a04 in xemacs_21_5_b23_i686_pc_linux (argc=3, argv=0xbfe01124,
unused_envp=0x0, restart=0)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/emacs.c:2656
#19 0x080f7d3e in main (argc=2, argv=0x0, unused_envp=0xbfe01134)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/emacs.c:3161
---------------------------------------------------------------------------
4) I rebuilt XEmacs without optimization and it crashed again while starting
to replay to a message.
Fatal Error: Received SIGSEGV (11) for address 0x34
Fatal error (11).
(gdb) where
#0 0xb7f1d402 in __kernel_vsyscall ()
#1 0x00632c76 in kill () from /lib/tls/libc.so.6
#2 0x080e4dc0 in fatal_error_signal (sig=11)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/emacs.c:3780
#3 <signal handler called>
#4 0x081130e4 in detagged_lisp_object_size (h=0xc048444) at lrecord.h:1781
#5 0x081d3bc1 in remove_cell (ptr=0xc048444, ph=0xb35de58)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:1450
#6 0x081d407b in sweep_page (ph=0xb35de58)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:1616
#7 0x081d2648 in visit_all_used_page_headers (f=0x81d3f4c <sweep_page>)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:449
#8 0x081d40e1 in mc_sweep ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/mc-alloc.c:1632
#9 0x081d7a5e in gc_sweep ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1557
#10 0x081d7eca in gc_1 (incremental=1)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1724
#11 0x081d7f07 in gc (incremental=1)
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1744
#12 0x081d7f4c in gc_incremental ()
at /home/malcolmp/builds/xemacs/sandboxen/garbage/src/gc.c:1759
Malcolm
--
Malcolm Purvis <malcolmp(a)xemacs.org>