From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.50; Crash in ediff-regions-linewise Date: Sun, 14 Oct 2007 15:05:16 -0400 Message-ID: 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 1192388797 6832 80.91.229.12 (14 Oct 2007 19:06:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Oct 2007 19:06:37 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, rms@gnu.org To: Toby Allsopp Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 14 21:06:27 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 1Ih8mS-0001BF-3N for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2007 21:05:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ih8mK-0003eD-F4 for ged-emacs-devel@m.gmane.org; Sun, 14 Oct 2007 15:05:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ih8mH-0003dv-IO for emacs-devel@gnu.org; Sun, 14 Oct 2007 15:05:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ih8mE-0003dG-B3 for emacs-devel@gnu.org; Sun, 14 Oct 2007 15:05:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ih8mE-0003dD-6K for emacs-devel@gnu.org; Sun, 14 Oct 2007 15:05:26 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ih8mD-0001wh-7y for emacs-devel@gnu.org; Sun, 14 Oct 2007 15:05:26 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ih8mB-0008MD-8m for emacs-pretest-bug@gnu.org; Sun, 14 Oct 2007 15:05:23 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ih8m6-0001vr-In for emacs-pretest-bug@gnu.org; Sun, 14 Oct 2007 15:05:22 -0400 Original-Received: from tomts25.bellnexxia.net ([209.226.175.188] helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ih8m6-0001va-0j; Sun, 14 Oct 2007 15:05:18 -0400 Original-Received: from pastel.home ([70.55.141.81]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20071014190516.BVRL19497.tomts25-srv.bellnexxia.net@pastel.home>; Sun, 14 Oct 2007 15:05:16 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A109C7F80; Sun, 14 Oct 2007 15:05:16 -0400 (EDT) In-Reply-To: <87wstq5cr6.fsf@candyboy.here> (Toby Allsopp's message of "Sun\, 14 Oct 2007 21\:19\:57 +1300") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.50 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (1) 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:80860 gmane.emacs.pretest.bugs:20129 Archived-At: >>>>> "Toby" == Toby Allsopp writes: > [I apologise if this is a duplicate message; my ISP bounced my first > attempt.] > Richard Stallman writes: >> The crash occurred trying to print some Lisp data. Probably some data >> is invalid -- but which data? Please look at the data to see what if >> anything is invalid. > 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? BTW recompiling with -DENABLE_CHECKING should catch these problems earlier and with a more explicit failure. Stefan --- buffer.c 10 oct 2007 11:29:34 -0400 1.535 +++ buffer.c 14 oct 2007 15:03:35 -0400 @@ -568,6 +568,7 @@ b = (struct buffer *) allocate_buffer (); b->size = sizeof (struct buffer) / sizeof (EMACS_INT); + XSETPVECTYPE (b, PVEC_BUFFER); if (XBUFFER (base_buffer)->base_buffer) b->base_buffer = XBUFFER (base_buffer)->base_buffer;