From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toby Allsopp Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; Crash in ediff-regions-linewise Date: Tue, 16 Oct 2007 09:39:33 +1300 Message-ID: <87ejfw15a2.fsf@candyboy.here> References: <87wstq5cr6.fsf@candyboy.here> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1192484049 18015 80.91.229.12 (15 Oct 2007 21:34:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Oct 2007 21:34:09 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rms@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 15 23:33:59 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IhWjT-0004NG-1V for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2007 22:40:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhWjM-0000Om-4f for ged-emacs-devel@m.gmane.org; Mon, 15 Oct 2007 16:40:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IhWjA-0000L7-5V for emacs-devel@gnu.org; Mon, 15 Oct 2007 16:39:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IhWj8-0000KT-Ct for emacs-devel@gnu.org; Mon, 15 Oct 2007 16:39:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IhWj8-0000KN-9G for emacs-devel@gnu.org; Mon, 15 Oct 2007 16:39:50 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhWj7-0003yG-To for emacs-devel@gnu.org; Mon, 15 Oct 2007 16:39:50 -0400 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IhWj7-00029W-H5 for emacs-pretest-bug@gnu.org; Mon, 15 Oct 2007 16:39:49 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IhWj3-0003wg-Hv for emacs-pretest-bug@gnu.org; Mon, 15 Oct 2007 16:39:49 -0400 Original-Received: from loadbalancer1.orcon.net.nz ([219.88.242.3] helo=mx5.orcon.net.nz) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IhWj2-0003ub-JI for emacs-pretest-bug@gnu.org; Mon, 15 Oct 2007 16:39:45 -0400 Original-Received: from Debian-exim by mx5.orcon.net.nz with local (Exim 4.67) (envelope-from ) id 1IhWiu-0004JP-JN for emacs-pretest-bug@gnu.org; Tue, 16 Oct 2007 09:39:36 +1300 Original-Received: from 60-234-130-144.bitstream.orcon.net.nz ([60.234.130.144] helo=cecil.here) by mx5.orcon.net.nz with smtp (Exim 4.67) (envelope-from ) id 1IhWir-0004H7-SZ for emacs-pretest-bug@gnu.org; Tue, 16 Oct 2007 09:39:35 +1300 Original-Received: (qmail 21546 invoked from network); 16 Oct 2007 09:39:33 +1300 Original-Received: from unknown (HELO candyboy.here) (192.168.3.170) by cecil.here with SMTP; 16 Oct 2007 09:39:33 +1300 Original-Received: from toby by candyboy.here with local (Exim 4.67) (envelope-from ) id 1IhWir-0000QB-AV; Tue, 16 Oct 2007 09:39:33 +1300 User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-DSPAM-Check: by mx5.orcon.net.nz on Tue, 16 Oct 2007 09:39:36 +1300 X-DSPAM-Processed: Tue Oct 16 09:39:36 2007 X-DSPAM-Improbability: 1 in 3196 chance of being spam X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80965 gmane.emacs.pretest.bugs:20140 Archived-At: Stefan Monnier writes: >>>>>> "Toby" == Toby Allsopp writes: > >> It appears that Fmake_indirect_buffer creates a buffer object that is >> invalid in some way. This then fails a bufferp check and results in >> an error containing the invalid buffer object. > > Can you try the patch below? This patch fixes the problem for me (with both ediff-regions-linewise and clone-indirect-buffer-other-window). Yay! > BTW recompiling with -DENABLE_CHECKING should catch these problems earlier > and with a more explicit failure. This makes temacs die due to a failed assertion. See below for details. I'm out of time to look into this further at the moment. Toby. Starting program: /usr/local/src/emacs-cvs/build/src/temacs -batch -l loadup [Thread debugging using libthread_db enabled] [New Thread 0x2b82085ac560 (LWP 32544)] Loading loadup.el (source)... Using load-path (/usr/local/src/emacs-cvs/emacs/lisp) Loading emacs-lisp/byte-run... Loading emacs-lisp/backquote... Loading subr... Loading version.el (source)... Loading widget... Loading custom... Loading emacs-lisp/map-ynp... Loading cus-start... Loading international/mule... Loading international/mule-conf.el (source)... Loading env... Loading format... Loading bindings... Loading files... Loading cus-face... Loading faces... Loading button... Loading startup... Lists of integers (garbage collection statistics) are normal output while building Emacs; they do not indicate a problem. ((11339 . 8589) (4943 . 0) (586 . 12) 15720 20090 (11 . 7) (18 . 0) (821 . 1938)) Loading loaddefs.el (source)... ((29345 . 10742) (7911 . 0) (595 . 10) 41809 20090 (37 . 33) (18 . 0) (3687 . 1304)) Loading simple... Loading help... Loading jka-cmpr-hook... Loading international/mule-cmds... Loading case-table... Loading international/utf-8... Loading international/utf-16... Loading international/characters... Loading international/latin-1.el (source)... Loading international/latin-2.el (source)... Loading international/latin-3.el (source)... Loading international/latin-4.el (source)... Loading international/latin-5.el (source)... Loading international/latin-8.el (source)... Loading international/latin-9.el (source)... Loading language/chinese... Loading language/cyrillic... Loading language/indian... Loading language/devanagari.el (source)... Loading language/malayalam.el (source)... Loading language/tamil.el (source)... Loading language/kannada.el (source)... Loading language/english.el (source)... Loading language/ethiopic... Loading language/european... Loading language/czech.el (source)... Loading language/slovak.el (source)... Loading language/romanian.el (source)... Loading language/greek.el (source)... Loading language/hebrew.el (source)... Loading language/japanese.el (source)... Loading language/korean.el (source)... Loading language/lao.el (source)... Loading language/thai.el (source)... Loading language/tibetan... Loading language/vietnamese... Loading language/misc-lang.el (source)... Loading language/utf-8-lang.el (source)... Loading language/georgian.el (source)... Loading international/ucs-tables... Loading indent... Loading window... Loading frame... Loading term/tty-colors... Loading font-core... Loading facemenu... Loading emacs-lisp/syntax... Loading font-lock... Loading jit-lock... Loading mouse... Loading scroll-bar... Loading select... Loading emacs-lisp/timer... Loading isearch... Loading rfn-eshadow... ((49538 . 11102) (10858 . 0) (632 . 28) 63071 164121 (67 . 3) (19 . 12) (4954 . 1494)) Loading menu-bar... Loading paths.el (source)... Loading emacs-lisp/lisp... Loading textmodes/page... Loading register... Loading textmodes/paragraphs... Loading emacs-lisp/lisp-mode... Loading textmodes/text-mode... Loading textmodes/fill... ((56002 . 4638) (11387 . 0) (634 . 26) 75252 166051 (67 . 3) (19 . 12) (5461 . 1514)) Loading replace... Loading abbrev... Loading buff-menu... Loading fringe... Loading image... Loading international/fontset... Loading dnd... Loading mwheel... Loading tool-bar... Emacs fatal error: /usr/local/src/emacs-cvs/emacs/src/alloc.c:4967: assertion failed: (XVECTOR (obj)->size & (PSEUDOVECTOR_FLAG | PVEC_TYPE_MASK)) == (PSEUDOVECTOR_FLAG | (PVEC_COMPILED)) Program received signal SIGABRT, Aborted. [Switching to Thread 0x2b82085ac560 (LWP 32544)] 0x00002b82079a9ac7 in kill () from /lib/libc.so.6 (gdb) bt #0 0x00002b82079a9ac7 in kill () from /lib/libc.so.6 #1 0x0000000000590f75 in abort () at /usr/local/src/emacs-cvs/emacs/src/emacs.c:431 #2 0x000000000064a7d6 in die (msg=0x799d78 "assertion failed: (XVECTOR (obj)->size & (PSEUDOVECTOR_FLAG | PVEC_TYPE_MASK)) == (PSEUDOVECTOR_FLAG | (PVEC_COMPILED))", file=0x799160 "/usr/local/src/emacs-cvs/emacs/src/alloc.c", line=4967) at /usr/local/src/emacs-cvs/emacs/src/alloc.c:6302 #3 0x0000000000646b17 in Fpurecopy (obj=17537668) at /usr/local/src/emacs-cvs/emacs/src/alloc.c:4967 #4 0x00000000006469f0 in Fpurecopy (obj=17448324) at /usr/local/src/emacs-cvs/emacs/src/alloc.c:4965 #5 0x0000000000643a0f in Fmake_byte_code (nargs=4, args=0x10a3f90) at /usr/local/src/emacs-cvs/emacs/src/alloc.c:3172 #6 0x00000000006a6fe1 in read1 (readcharfun=12988177, pch=0x7fffa7c2103c, first_in_list=0) at /usr/local/src/emacs-cvs/emacs/src/lread.c:2270 #7 0x00000000006a9132 in read_list (flag=-1, readcharfun=12988177) at /usr/local/src/emacs-cvs/emacs/src/lread.c:3166 #8 0x00000000006a4c76 in readevalloop (readcharfun=12988177, stream=0x1043960, sourcename=17016467, evalfun=0x671a52 , printflag=0, unibyte=12847505, readfun=12847505, start=12847505, end=12847505) at /usr/local/src/emacs-cvs/emacs/src/lread.c:1529 #9 0x00000000006a2c6b in Fload (file=13905283, noerror=12847505, nomessage=12847505, nosuffix=12847505, must_suffix=12847505) at /usr/local/src/emacs-cvs/emacs/src/lread.c:1029 #10 0x0000000000672791 in Feval (form=15964597) at /usr/local/src/emacs-cvs/emacs/src/eval.c:2376 #11 0x000000000066d844 in Fprogn (args=15964645) at /usr/local/src/emacs-cvs/emacs/src/eval.c:450 #12 0x0000000000672053 in Feval (form=15964037) at /usr/local/src/emacs-cvs/emacs/src/eval.c:2309 #13 0x000000000066d6a3 in Fif (args=15963685) at /usr/local/src/emacs-cvs/emacs/src/eval.c:398 #14 0x0000000000672053 in Feval (form=15941957) at /usr/local/src/emacs-cvs/emacs/src/eval.c:2309 #15 0x00000000006a4e84 in readevalloop (readcharfun=12988177, stream=0xcabea0, sourcename=13276531, evalfun=0x671a52 , printflag=0, unibyte=12847505, readfun=12847505, start=12847505, end=12847505) at /usr/local/src/emacs-cvs/emacs/src/lread.c:1562 #16 0x00000000006a2c6b in Fload (file=13276275, noerror=12847505, nomessage=12847505, nosuffix=12847505, must_suffix=12847505) at /usr/local/src/emacs-cvs/emacs/src/lread.c:1029 #17 0x0000000000672791 in Feval (form=13153013) at /usr/local/src/emacs-cvs/emacs/src/eval.c:2376 #18 0x0000000000595bbe in top_level_2 () at /usr/local/src/emacs-cvs/emacs/src/keyboard.c:1405 #19 0x000000000066fd86 in internal_condition_case (bfun=0x595bae , handlers=12961697, hfun=0x59566a ) at /usr/local/src/emacs-cvs/emacs/src/eval.c:1493 #20 0x0000000000595bed in top_level_1 () at /usr/local/src/emacs-cvs/emacs/src/keyboard.c:1413 #21 0x000000000066f685 in internal_catch (tag=12935537, func=0x595bc0 , arg=12847505) at /usr/local/src/emacs-cvs/emacs/src/eval.c:1229 #22 0x0000000000595b38 in command_loop () at /usr/local/src/emacs-cvs/emacs/src/keyboard.c:1368 #23 0x0000000000594c48 in recursive_edit_1 () at /usr/local/src/emacs-cvs/emacs/src/keyboard.c:984 #24 0x00000000005951e4 in Frecursive_edit () at /usr/local/src/emacs-cvs/emacs/src/keyboard.c:1046 #25 0x0000000000592dfe in main (argc=4, argv=0x7fffa7c226f8) at /usr/local/src/emacs-cvs/emacs/src/emacs.c:1778 Lisp Backtrace: "load" (0xa7c21520) "progn" (0xa7c21798) "if" (0xa7c21948) "load" (0xa7c21df0)