Subject: 24.3.50; Crash: assertion failed during garbage collect

From: Andy Moreton <[email-masked]>
Date: Mon, 12 Nov 2012 14:32:45 +0000

Emacs built from trunk r110872.

Emacs crashed with an unhandled Win32 exception. This was caused by an 
assertion failure:

(gdb) thread apply 1 bt
Thread 1 (Thread 14900.0x2870):
#0  0x77c47188 in msvcrt!memcpy () from C:\WINDOWS\system32\msvcrt.dll
#1  0x01116a68 in copy_text (from_addr=0x6460afc "nntpd", to_addr=0x76a8269 
"", nbytes=0x80000005, from_multibyte=0x0, to_multibyte=0x0) at insdel.c:517
#2  0x011178a5 in insert_from_string_1 (string=0x3aed2f1, pos=0x0, 
pos_byte=0x0, nchars=0x80000005, nbytes=0x80000005, inherit=0x0, 
before_markers=0x0) at insdel.c:932
#3  0x01117543 in insert_from_string (string=0x3aed2f1, pos=0x0, pos_byte=0x0, 
length=0x80000005, length_byte=0x80000005, inherit=0x0) at insdel.c:871
#4  0x01105ee5 in general_insert_function (insert_func=0x1116c99 <insert>, 
insert_from_string_func=0x11174b1 <insert_from_string>, inherit=0x0, 
nargs=0x1, args=0x789a70) at editfns.c:2256
#5  0x01105f57 in Finsert (nargs=0x1, args=0x789a70) at editfns.c:2297
#6  0x01051b96 in status_notify (deleting_process=0x4f1cd40) at process.c:6718
#7  0x010448c0 in Fdelete_process (process=0x4f1cd45) at process.c:831
#8  0x01052826 in kill_buffer_processes (buffer=0x35bc81a) at process.c:7228
#9  0x010032da in shut_down_emacs (sig=0x16, stuff=0x35bc81a) at emacs.c:2026
#10 0x010014a0 in fatal_error_backtrace (sig=0x16, backtrace_limit=0x7fffffff) 
at emacs.c:314
#11 0x010431b7 in die (msg=0x1526028 "assertion failed: !VECTOR_MARKED_P 
(ptr)", file=0x1524159 "alloc.c", line=0x1544) at alloc.c:6398
#12 0x01040eb9 in mark_vectorlike (ptr=0x4597188) at alloc.c:5444
#13 0x0104181d in mark_object (arg=0x459718d) at alloc.c:5705
#14 0x010419d8 in mark_object (arg=0x3e02152) at alloc.c:5765

[...omitted for brevity ]

#6765 0x01042049 in mark_object (arg=0x41c1a16) at alloc.c:5867
#6766 0x01041968 in mark_object (arg=0x35bc81a) at alloc.c:5762
#6767 0x01040ef9 in mark_vectorlike (ptr=0x16664a0) at alloc.c:5454
#6768 0x0104110a in mark_buffer (buffer=0x16664a0) at alloc.c:5505
#6769 0x0103fefe in Fgarbage_collect () at alloc.c:5136
#6770 0x0103997b in maybe_gc () at lisp.h:3637
#6771 0x010341a8 in eval_sub (form=0x7554026) at eval.c:2054
#6772 0x01034f30 in eval_sub (form=0x7554766) at eval.c:2228
#6773 0x01034f30 in eval_sub (form=0x3a902f6) at eval.c:2228
#6774 0x0103087a in Fprogn (args=0x3b04c26) at eval.c:369
#6775 0x010374ef in funcall_lambda (fun=0x3b04cfe, nargs=0x2, 
arg_vector=0x82d6d8) at eval.c:3021
#6776 0x01036b8f in Ffuncall (nargs=0x3, args=0x82d6d4) at eval.c:2857
#6777 0x010e0e77 in exec_byte_code (bytestr=0x3aefbe1, vector=0x3aee45d, 
maxdepth=0x14, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6778 0x01037624 in funcall_lambda (fun=0x3aee4d5, nargs=0x2, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6779 0x01036abd in Ffuncall (nargs=0x3, args=0x82d9d4) at eval.c:2845
#6780 0x010e0e77 in exec_byte_code (bytestr=0x3aefb51, vector=0x3aee3fd, 
maxdepth=0xc, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6781 0x01037624 in funcall_lambda (fun=0x3aee415, nargs=0x2, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6782 0x01036abd in Ffuncall (nargs=0x3, args=0x82dcc4) at eval.c:2845
#6783 0x010e0e77 in exec_byte_code (bytestr=0x3aefad1, vector=0x3aee39d, 
maxdepth=0xc, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6784 0x01037624 in funcall_lambda (fun=0x3aee3b5, nargs=0x1, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6785 0x01036abd in Ffuncall (nargs=0x2, args=0x82dfb8) at eval.c:2845
#6786 0x01035e61 in call1 (fn=0x3aee3b5, arg1=0x3aa5a6e) at eval.c:2590
#6787 0x0107bf8c in mapcar1 (leni=0x1, vals=0x82e050, fn=0x3aee3b5, 
seq=0x3aa5a76) at fns.c:2318
#6788 0x0107c3d8 in Fmapcar (function=0x3aee3b5, sequence=0x3aa5a76) at fns.c:2388
#6789 0x0103670a in Ffuncall (nargs=0x3, args=0x82e158) at eval.c:2799
#6790 0x010e0e77 in exec_byte_code (bytestr=0x3aefa81, vector=0x3aee3cd, 
maxdepth=0x10, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6791 0x01037624 in funcall_lambda (fun=0x3aee3e5, nargs=0x2, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6792 0x01036abd in Ffuncall (nargs=0x3, args=0x82e454) at eval.c:2845
#6793 0x010e0e77 in exec_byte_code (bytestr=0x3aef731, vector=0x3aee4ed, 
maxdepth=0xc, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6794 0x01037624 in funcall_lambda (fun=0x3aee505, nargs=0x1, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6795 0x01036abd in Ffuncall (nargs=0x2, args=0x82e744) at eval.c:2845
#6796 0x010e0e77 in exec_byte_code (bytestr=0x3ae30b1, vector=0x3ada515, 
maxdepth=0xc, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6797 0x01037624 in funcall_lambda (fun=0x3ada53d, nargs=0x2, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6798 0x01036abd in Ffuncall (nargs=0x3, args=0x82ea34) at eval.c:2845
#6799 0x010e0e77 in exec_byte_code (bytestr=0x3aef661, vector=0x3aee51d, 
maxdepth=0x14, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6800 0x01037624 in funcall_lambda (fun=0x3aee585, nargs=0x1, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6801 0x01036abd in Ffuncall (nargs=0x2, args=0x82ed34) at eval.c:2845
#6802 0x010e0e77 in exec_byte_code (bytestr=0x3ad73c1, vector=0x3ad3f3d, 
maxdepth=0x20, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6803 0x01037624 in funcall_lambda (fun=0x3ad3fe5, nargs=0x2, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6804 0x01036abd in Ffuncall (nargs=0x3, args=0x82f044) at eval.c:2845
#6805 0x010e0e77 in exec_byte_code (bytestr=0x3ad6a11, vector=0x3ad3da5, 
maxdepth=0x18, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6806 0x01037624 in funcall_lambda (fun=0x3ad3e25, nargs=0x2, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6807 0x01036abd in Ffuncall (nargs=0x3, args=0x82f344) at eval.c:2845
#6808 0x010e0e77 in exec_byte_code (bytestr=0x3ae3731, vector=0x3ada70d, 
maxdepth=0xc, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:899
#6809 0x010e023e in Fbyte_code (bytestr=0x3ae3731, vector=0x3ada70d, 
maxdepth=0xc) at bytecode.c:474
#6810 0x01034a57 in eval_sub (form=0x3adb7b6) at eval.c:2163
#6811 0x010325bd in internal_lisp_condition_case (var=0x35bc81a, 
bodyform=0x3adb7b6, handlers=0x3adb7d6) at eval.c:1262
#6812 0x010e1ab4 in exec_byte_code (bytestr=0x3ae36b1, vector=0x3ada735, 
maxdepth=0x10, args_template=0x35bc81a, nargs=0x0, args=0x0) at bytecode.c:1095
#6813 0x01037624 in funcall_lambda (fun=0x3ada75d, nargs=0x0, 
arg_vector=0x35bc81a <__register_frame_info+56346650>) at eval.c:3028
#6814 0x01036abd in Ffuncall (nargs=0x1, args=0x82fa40) at eval.c:2845
#6815 0x01035e2d in call0 (fn=0x3ad67c2) at eval.c:2575
#6816 0x01007c13 in safe_run_hooks_1 () at keyboard.c:1915
#6817 0x0103269f in internal_condition_case (bfun=0x1007b90 
<safe_run_hooks_1>, handlers=0x35bc832, hfun=0x1007c15 <safe_run_hooks_error>) 
at eval.c:1308
#6818 0x0100803a in safe_run_hook_funcall (nargs=0x1, args=0x82fbc0) at 
keyboard.c:1970
#6819 0x01035d22 in run_hook_with_args (nargs=0x1, args=0x82fbc0, 
funcall=0x1007f7a <safe_run_hook_funcall>) at eval.c:2527
#6820 0x0100808e in safe_run_hooks (hook=0x3ad67c2) at keyboard.c:1987
#6821 0x01006825 in command_loop_1 () at keyboard.c:1629
#6822 0x0103269f in internal_condition_case (bfun=0x1005a97 <command_loop_1>, 
handlers=0x35c8db2, hfun=0x100526a <cmd_error>) at eval.c:1308
#6823 0x010056c4 in command_loop_2 (ignore=0x35bc81a) at keyboard.c:1182
#6824 0x010320bb in internal_catch (tag=0x35c6612, func=0x10056a0 
<command_loop_2>, arg=0x35bc81a) at eval.c:1069
#6825 0x0100567e in command_loop () at keyboard.c:1161
#6826 0x01004c27 in recursive_edit_1 () at keyboard.c:782
#6827 0x01004f54 in Frecursive_edit () at keyboard.c:846
#6828 0x01002b68 in main (argc=0x2, argv=0xa425d0) at emacs.c:1655

Lisp Backtrace:
Argument to arithmetic operation not a number or boolean.