I'm using XEmacs 21.4.9 (compiled from source) as well as 21.5beta4
(installed from source by fink) on my MacOS 10.2 Powerbook (both built with
'gcc 3.1 20020420 (prerelease)' - what came with the box). When I use VM to
visit one specific mailbox the garbage collector gets into an infinite loop.
I can visit, edit and save many other mailboxes. Only this one mailbox
exhibits this problem (so far).
In 21.5beta4 the beginning of the gdb traceback looks like:
#0 0x00009ed0 in mark_cons (obj=33512220) at alloc.c:846
#1 0x001b5308 in mark_symbol (obj=0) at symbols.c:95
#2 0x0000a3a8 in mark_vector (obj=33504592) at alloc.c:2426
#3 0x0000a3a8 in mark_vector (obj=33504544) at alloc.c:2426
#4 0x0000a084 in mark_cons (obj=19935652) at alloc.c:2426
#5 0x000094f4 in mark_object (obj=19935652) at alloc.c:2426
#6 0x001b5308 in mark_symbol (obj=33505108) at symbols.c:95
#7 0x0000a3a8 in mark_vector (obj=33504848) at alloc.c:2426
#8 0x0000a3a8 in mark_vector (obj=33504800) at alloc.c:2426
#9 0x0000a084 in mark_cons (obj=19935556) at alloc.c:2426
#10 0x000094f4 in mark_object (obj=19935556) at alloc.c:2426
The end looks like:
#5576 0x000094f4 in mark_object (obj=15753972) at alloc.c:2426
#5577 0x001b5310 in mark_symbol (obj=14738688) at symbols.c:96
#5578 0x000094f4 in mark_object (obj=14738688) at alloc.c:2426
#5579 0x001b5310 in mark_symbol (obj=14738808) at symbols.c:96
#5580 0x000094f4 in mark_object (obj=14738808) at alloc.c:2426
#5581 0x001b5310 in mark_symbol (obj=14739168) at symbols.c:96
#5582 0x0000a3a8 in mark_vector (obj=15754176) at alloc.c:2426
#5583 0x00005c3c in garbage_collect_1 () at alloc.c:2426
#5584 0x0004f134 in Ffuncall (nargs=20511832, args=0xbfffccc4) at eval.c:3425
#5585 0x00017e9c in execute_optimized_program (program=0x138fc58 "\006\215=be=ef\002\003=ef0\0018=fc=a0\006\r=be=ef", stack_depth=2385428, constants_data=0x1275d30) at bytecode.c:744
#5586 0x000176dc in funcall_compiled_function (fun=20182500, nargs=1, args=0x134a6b0) at opaque.h:36
#5587 0x0004f5a4 in Ffuncall (nargs=20511832, args=0xbfffcf14) at eval.c:3512
#5588 0x00017e9c in execute_optimized_program (program=0x138fc58 "\006\215=be=ef\002\003=ef0\0018=fc=a0\006\r=be=ef", stack_depth=2385428, constants_data=0x129d350) at bytecode.c:744
#5589 0x000176dc in funcall_compiled_function (fun=20127592, nargs=4, args=0x134a290) at opaque.h:36
#5590 0x0004f5a4 in Ffuncall (nargs=20511832, args=0xbfffd154) at eval.c:3512
#5591 0x00017e9c in execute_optimized_program (program=0x138fc58 "\006\215=be=ef\002\003=ef0\0018=fc=a0\006\r=be=ef", stack_depth=2385428, constants_data=0x12a6b10) at bytecode.c:744
#5592 0x00019b7c in Fbyte_code (instructions=20511832, constants=19557136, stack_depth=19) at lisp.h:1521
#5593 0x0004e834 in Feval (form=18837980) at eval.c:3279
#5594 0x0004c4a4 in internal_catch (tag=20511832, func=0x4df18 <Feval>, arg=18837980, threw=0x0) at eval.c:1317
#5595 0x00018ccc in execute_rare_opcode (stack_ptr=0xbfffdf64, program_ptr=0x246614 "", opcode=2397152) at bytecode.c:1250
#5596 0x00017c18 in execute_optimized_program (program=0x138fc58 "\006\215=be=ef\002\003=ef0\0018=fc=a0\006\r=be=ef", stack_depth=2385428, constants_data=0x24c3e0) at bytecode.c:654
#5597 0x000176dc in funcall_compiled_function (fun=19331496, nargs=3, args=0x134f250) at opaque.h:36
#5598 0x0004f5a4 in Ffuncall (nargs=20511832, args=0xbfffe194) at eval.c:3512
#5599 0x00017e9c in execute_optimized_program (program=0x138fc58 "\006\215=be=ef\002\003=ef0\0018=fc=a0\006\r=be=ef", stack_depth=2385428, constants_data=0x12a75e0) at bytecode.c:744
#5600 0x000176dc in funcall_compiled_function (fun=19331608, nargs=2, args=0x134f1f0) at opaque.h:36
#5601 0x0004f5a4 in Ffuncall (nargs=20511832, args=0xbfffe3d0) at eval.c:3512
#5602 0x0004fa74 in Fapply (nargs=14739120, args=0x23f7bc) at eval.c:3753
#5603 0x00050388 in apply1 (fn=19331608, arg=2385428) at eval.c:4106
#5604 0x0001c4d4 in Fcall_interactively (function=17168940, record_flag=14734824, keys=2407492) at callint.c:465
#5605 0x0004dbf8 in Fcommand_execute (cmd=17168940, record_flag=14738040, keys=14739120) at eval.c:2918
#5606 0x0004f404 in Ffuncall (nargs=20511832, args=0x4f3a4) at eval.c:3477
#5607 0x00017e9c in execute_optimized_program (program=0x138fc58 "\006\215=be=ef\002\003=ef0\0018=fc=a0\006\r=be=ef", stack_depth=2385428, constants_data=0xef047c) at bytecode.c:744
#5608 0x000176dc in funcall_compiled_function (fun=15846576, nargs=1, args=0x128bdf0) at opaque.h:36
#5609 0x0004f5a4 in Ffuncall (nargs=20511832, args=0xbfffeac0) at eval.c:3512
#5610 0x0001de68 in Fcall_interactively (function=0, record_flag=14739120, keys=3217504) at callint.c:1008
#5611 0x0004dbf8 in Fcommand_execute (cmd=14619648, record_flag=14739120, keys=14739120) at eval.c:2918
#5612 0x00099b6c in execute_command_event (command_builder=0x10938e0, event=20414152) at event-stream.c:3902
#5613 0x00094780 in Fdispatch_event (event=19191524) at event-stream.c:4234
#5614 0x0002516c in Fcommand_loop_1 () at cmdloop.c:583
#5615 0x0004c648 in condition_case_1 (handlers=0, bfun=0x2550c <command_loop_1>, barg=14739120, hfun=0x25580 <cmd_error>, harg=14739120) at eval.c:1692
#5616 0x00025804 in command_loop_2 (dummy=20511832) at cmdloop.c:256
#5617 0x0004c4a4 in internal_catch (tag=20511832, func=0x25788 <command_loop_2>, arg=14739120, threw=0x0) at eval.c:1317
#5618 0x00024af8 in initial_command_loop (load_me=20511832) at cmdloop.c:305
#5619 0x0004912c in sort_args (argc=1, argv=0x8) at emacs.c:2358
#5620 0x00009ec8 in mark_cons (obj=-1073742980) at alloc.c:846
#5621 0x000094f4 in mark_object (obj=-1035222635) at alloc.c:2426
#5622 0x000019d0 in start ()
In 21.4.9 the backtrace looks similar (last call before the thousands of
mark_* functions is garbage_collect_1).
I tried removing all the VM special headers and running VM over that mailbox
again (being careful to properl delete continuation lines). That simply
delayed the problem by delaying the need for a garbage collection.
Is this a known problem? Is there something else I can try which will help
you debug this problem?
Thx,
--
Skip Montanaro - skip(a)pobox.com
"Airplanes don't fly until the paperwork equals the weight of the
aircraft. Same with i18N." - from the "Perl, Unicode and i18N FAQ"
================================================================
System Info to help track down your bug:
---------------------------------------
uname -a: Darwin Skip-Montanaros-Computer.local. 6.0 Darwin Kernel Version 6.0: Sat Jul 27 13:18:52 PDT 2002; root:xnu/xnu-344.obj~1/RELEASE_PPC Power Macintosh powerpc
./configure '--prefix=/sw' '--with-dialogs=athena' '--with-widgets=athena' '--with-sound=none' '--with-database=no' '--without-ldap' '--without-postgresql' '--with-athena=3d'
XEmacs 21.5-b4 "bamboo" configured for `powerpc-apple-darwin6.0'.
Compilation / Installation:
Source code location: /sw/src/xemacs-21.5.4-3/xemacs-21.5.4
Installation prefix: /sw
Operating system description file: `s/darwin.h'
Machine description file: `m/powerpc.h'
Compiler: gcc -g -O3 -Wall -Wno-switch -Winline -Wmissing-prototypes -Wsign-compare -Wshadow -Wpointer-arith
Relocating allocator for buffers: no
GNU version of malloc: no
- The GNU allocators don't work with this system configuration.
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/Xaw3d
- Athena library to link: Xaw3d
Using Lucid menubars.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
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.
Sound:
Databases:
Internationalization:
Mail:
Compiling in support for "dot-locking" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new portable dumper.
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:
----------------------
(/Users/skip/emacs/macedit /sw/lib/xemacs/xemacs-packages/lisp/calc/macedit
/Users/skip/emacs/pdb /sw/lib/xemacs/xemacs-packages/lisp/debug/pdb
/Users/skip/emacs/tempo /sw/lib/xemacs/xemacs-packages/lisp/edit-utils/tempo
/Users/skip/emacs/tramp/lisp/format-spec
/sw/lib/xemacs/xemacs-packages/lisp/gnus/format-spec
/Users/skip/emacs/python-mode
/sw/lib/xemacs/xemacs-packages/lisp/prog-modes/python-mode
/Users/skip/emacs/slider /sw/lib/xemacs/xemacs-packages/lisp/slider/slider
/Users/skip/emacs/color-selector
/sw/lib/xemacs/xemacs-packages/lisp/slider/color-selector
/Users/skip/emacs/po-mode
/sw/lib/xemacs/xemacs-packages/lisp/text-modes/po-mode
/Users/skip/emacs/tramp/lisp/trampcache
/sw/lib/xemacs/xemacs-packages/lisp/tramp/trampcache
/Users/skip/emacs/tramp/lisp/tramp
/sw/lib/xemacs/xemacs-packages/lisp/tramp/tramp
/Users/skip/emacs/tramp/lisp/tramp-vc
/sw/lib/xemacs/xemacs-packages/lisp/tramp/tramp-vc
/Users/skip/emacs/tramp/lisp/tramp-util
/sw/lib/xemacs/xemacs-packages/lisp/tramp/tramp-util /Users/skip/emacs/imenu
/sw/lib/xemacs/xemacs-packages/lisp/xemacs-base/imenu /Users/skip/emacs/ffap
/sw/lib/xemacs/xemacs-packages/lisp/xemacs-base/ffap
/Users/skip/emacs/isearch-mode /sw/lib/xemacs-21.5-b4/lisp/isearch-mode)
Installed XEmacs Packages:
-------------------------
((zenirc:version 1.13 :type regular)
(xslt-process :version 1.1 :type regular)
(xslide :version 1.02 :type regular)
(xemacs-devel :version 1.47 :type single-file)
(xemacs-base :version 1.66 :type regular)
(w3 :version 1.25 :type regular)
(vm :version 7.07 :type regular)
(viper :version 1.34 :type regular)
(view-process :version 1.11 :type regular)
(vhdl :version 1.15 :type regular)
(vc-cc :version 1.21 :type regular)
(vc :version 1.33 :type regular)
(tramp :version 1.05 :type regular)
(tpu :version 1.12 :type regular)
(tooltalk :version 1.13 :type regular)
(tm :version 1.34 :type regular)
(time :version 1.11 :type regular)
(textools :version 1.12 :type regular)
(text-modes :version 1.48 :type single-file)
(texinfo :version 1.2 :type regular)
(supercite :version 1.19 :type regular)
(strokes :version 1.08 :type regular)
(speedbar :version 1.23 :type regular)
(sounds-wav :version 1.1 :type regular)
(sounds-au :version 1.1 :type regular)
(slider :version 1.13 :type regular)
(sieve :version 1.07 :type regular)
(sh-script :version 1.15 :type regular)
(sgml :version 1.08 :type regular)
(semantic :version 1.12 :type regular)
(scheme :version 1.11 :type regular)
(rmail :version 1.13 :type regular)
(reftex :version 1.25 :type regular)
(psgml :version 1.28 :type regular)
(ps-print :version 1.04 :type regular)
(prog-modes
:version
1
.6
:type
single-file)
(pcomplete :version 1.01 :type regular)
(pcl-cvs :version 1.63 :type regular)
(pc :version 1.25 :type single-file)
(os-utils :version 1.28 :type single-file)
(net-utils :version 1.27 :type single-file)
(mmm-mode :version 1.0 :type regular)
(misc-games :version 1.15 :type single-file)
(mine :version 1.14 :type regular)
(mh-e :version 1.14 :type regular)
(mew :version 1.17 :type regular)
(mailcrypt :version 2.11 :type regular)
(mail-lib :version 1.47 :type regular)
(jde :version 1.35 :type regular)
(ispell :version 1.24 :type regular)
(ilisp :version 1.27 :type regular)
(igrep :version 1.08 :type regular)
(idlwave :version 1.25 :type regular)
(ibuffer :version 1.08 :type regular)
(hm--html-menus :version 1.18 :type regular)
(haskell-mode :version 1.04 :type regular)
(gnus :version 1.62 :type regular)
(gnats :version 1.15 :type regular)
(games :version 1.13 :type regular)
(fsf-compat :version 1.11 :type single-file)
(frame-icon :version 1.09 :type regular)
(forms :version 1.14 :type regular)
(footnote :version 1.15 :type regular)
(eudc :version 1.36 :type regular)
(eterm :version 1.13 :type regular)
(ess :version 1.02 :type regular)
(eshell :version 1.03 :type regular)
(emerge :version 1.09 :type regular)
(elib :version 1.1 :type single-file)
(eieio :version 1.02 :type regular)
(efs :version 1.29 :type regular)
(edt :version 1.12 :type regular)
(edit-utils :version 1.89 :type single-file)
(ediff :version 1.41 :type regular)
(edebug :version 1.14 :type regular)
(dired :version 1.12 :type regular)
(dictionary :version 1.11 :type regular)
(debug :version 1.15 :type regular)
(crisp :version 1.12 :type regular)
(cookie :version 1.14 :type regular)
(clearcase :version 1.04 :type regular)
(cc-mode :version 1.28 :type regular)
(calendar :version 1.18 :type regular)
(calc :version 1.23 :type regular)
(c-support :version 1.16 :type single-file)
(build :version 1.06 :type regular)
(bbdb :version 1.21 :type regular)
(auctex :version 1.32 :type regular)
(apel :version 1.24 :type regular)
(ada :version 1.1 :type regular))
Features:
--------
(mail-abbrevs xemacsbug shadow sendmail font disp-table cus-face paren
blink-paren gnuserv complete mailcrypt rfc822 timezone supercite mail-extr
regi filladapt edmacro tramp-util compile tramp-vc tramp advice
advice-preload shell format-spec timer efs-x19.15 efs-fnh efs-ovwrt efs-cu
efs-netrc efs-defun comint efs vc ring vc-hooks zenirc-autoloads
xslt-process-autoloads xslide-autoloads xemacs-devel-autoloads
xemacs-base-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 slider-autoloads sieve-autoloads
sh-script-autoloads sgml-autoloads semantic-autoloads scheme-autoloads
rmail-autoloads reftex-autoloads psgml-autoloads ps-print-autoloads
prog-modes-autoloads pcomplete-autoloads pcl-cvs-autoloads pc-autoloads
os-utils-autoloads net-utils-autoloads mmm-mode-autoloads
misc-games-autoloads mine-autoloads mh-e-autoloads mew-autoloads
mailcrypt-autoloads mail-lib-autoloads jde-autoloads ispell-autoloads
ilisp-autoloads igrep-autoloads idlwave-autoloads ibuffer-autoloads
hm--html-menus-autoloads haskell-mode-autoloads gnus-autoloads
gnats-autoloads games-autoloads fsf-compat-autoloads frame-icon-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 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
src-autoloads loadhist auto-show fontl-hooks x-iso8859-1 gutter-items
menubar-items x-menubar mode-motion mouse itimer auto-save lisp-mode
easymenu iso8859-1 page buff-menu lib-complete help-nomule cus-file derived
frame text-props obsolete cus-start custom widget cl-extra mini-cl cl cl-19
packages backquote very-early-lisp lucid-scrollbars cut-buffer
lucid-menubars athena-dialogs x c-balloon-help tty-frames tty toolbar
scrollbar unix-processes multicast network-streams subprocesses modules
menu-accelerator-support menubar md5 xemacs gutter tiff png gif jpeg xpm xbm
lisp-float-type darwin dialog devices window-system base64)