From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.bugs Subject: bug#716: Bug in buffer-swap-text (was Re: bug#716: 23.0.60; opening tgz file causes emacs crash) Date: Mon, 01 Sep 2008 20:12:23 +0800 Message-ID: <48BBDC27.1090601@f2s.com> References: <48A3E7C9.8050509@tnei.co.uk> <48AEACC4.2000300@gnu.org> <48AEE576.4000606@gnu.org> Reply-To: Jason Rumney , 716@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220272089 3519 80.91.229.12 (1 Sep 2008 12:28:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 12:28:09 +0000 (UTC) To: Jason Rumney , 716@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 01 14:29:03 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ka8Wd-0004cG-Ue for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 14:28:56 +0200 Original-Received: from localhost ([127.0.0.1]:41182 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka8Ve-0005Jq-Hm for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Sep 2008 08:27:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ka8VV-0005E4-7E for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 08:27:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ka8VQ-000596-Hd for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 08:27:42 -0400 Original-Received: from [199.232.76.173] (port=34193 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ka8VP-00058i-P8 for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 08:27:39 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40056) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ka8VP-0007bz-9W for bug-gnu-emacs@gnu.org; Mon, 01 Sep 2008 08:27:39 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m81CRUhl032045; Mon, 1 Sep 2008 05:27:30 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m81CK3Ys029141; Mon, 1 Sep 2008 05:20:03 -0700 X-Loop: don@donarmstrong.com Resent-From: Jason Rumney Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , don@donarmstrong.com Resent-Date: Mon, 01 Sep 2008 12:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 716 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 716-submit@emacsbugs.donarmstrong.com id=B716.122027120227161 (code B ref 716); Mon, 01 Sep 2008 12:20:03 +0000 Original-Received: (at 716) by emacsbugs.donarmstrong.com; 1 Sep 2008 12:13:22 +0000 Original-Received: from mk-outboundfilter-5.mail.uk.tiscali.com (mk-outboundfilter-5.mail.uk.tiscali.com [212.74.114.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m81CDHJp027155 for <716@emacsbugs.donarmstrong.com>; Mon, 1 Sep 2008 05:13:20 -0700 Original-X-Trace: 76910195/mk-outboundfilter-5.mail.uk.tiscali.com/F2S/$F2S-INTERNET-ACCEPTED/None/124.82.236.150 X-SBRS: None X-RemoteIP: 124.82.236.150 X-IP-MAIL-FROM: jasonr@f2s.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj8BADx4u0h8UuyW/2dsb2JhbAAIsm6BaQ X-IronPort-AV: E=Sophos;i="4.32,307,1217804400"; d="scan'208";a="76910195" X-IP-Direction: OUT Original-Received: from unknown (HELO [172.16.0.12]) ([124.82.236.150]) by smtp.f2s.tiscali.co.uk with ESMTP; 01 Sep 2008 13:13:07 +0100 User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <48AEE576.4000606@gnu.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 01 Sep 2008 08:27:41 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19965 Archived-At: I've managed to reduce this to a small test case that shows that the bug is in new function buffer-swap-text. Create the following new buffers: ---- test1.txt ---- This is buffer 1 (buffer-swap-text "test2.txt") ---- test2.txt ---- This is buffer 2 (buffer-swap-text "test2.txt") After creating these buffers, switch to test1.txt buffer and press C-x C-e at the end of the second line. This works fine, and you can swap the two buffers without problem repeatedly. Now, still in test1.txt buffer, C-x RET f binary Now try C-x C-e on the second line again. Perhaps not on the first try, but sooner or later Emacs crashes.