From monnier@iro.umontreal.ca Wed Mar 12 09:11:02 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.1 required=4.0 tests=AWL,FOURLA,HAS_PACKAGE autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Mar 2008 16:11:03 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2CGAskU006010 for ; Wed, 12 Mar 2008 09:10:55 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ar8FAHOd10fO+JwVUGdsb2JhbACQaQEBJxKXFYEG X-IronPort-AV: E=Sophos;i="4.25,489,1199682000"; d="scan'208";a="15929239" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 12 Mar 2008 12:10:28 -0400 Received: from pastel.home ([206.248.156.21]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id STW11828 for ; Wed, 12 Mar 2008 12:10:28 -0400 Received: by pastel.home (Postfix, from userid 20848) id E47EE7FD8; Wed, 12 Mar 2008 12:10:27 -0400 (EDT) From: Stefan Monnier To: submit@debbugs.gnu.org Subject: insert-file-contents-literally + md5 unstable in multibyte buffers Date: Wed, 12 Mar 2008 12:10:27 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Package: Emacs Version: 23.0.60 Owner: Kenichi Handa Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Run emacs -Q and then in the *scratch* buffer do: M-: (progn (erase-buffer ) (insert-file-contents-literally "/usr/lib/clisp-2.43/full/regexp.dvi") (md5 (current-buffer))) Do it a few times: you should see that you do not always get the same result. If you do not have that dvi file, try with another one, preferably not tiny ones. If you rerun only the md5 call, you'll get the same result each time, so it seems that md5 is looking at data that insert-file-contents-literally does not always set up in the same way. Maybe an off-by-one somewhere that causes md5 to look at bytes within the gap or something? If this is run in a unibyte buffer, the problem disappears. Stefan If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /home/monnier/src/emacs/work/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-03-12 on pastel Windowing system distributor `The X.Org Foundation', version 11.0.10300000 configured using `configure 'CFLAGS=-Wall -DSYNC_INPUT -DENABLE_CHECKING -g -O2' 'CPPFLAGS=-I/home/monnier/src/Xaw3d' 'LDFLAGS=-L/home/monnier/src/Xaw3d' '--with-x-toolkit=athena' '--enable-font-backend'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_CH.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: minibuffer Minor modes in effect: url-handler-mode: t global-reveal-mode: t reveal-mode: t auto-insert-mode: t savehist-mode: t minibuffer-electric-default-mode: t cua-mode: t mouse-wheel-mode: t partial-completion-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: f ~ / . e m . d a s e s 6 M-x d e l - f i M-n C-x C-v C-e C-/ M-x M-p M-n C-x k C-x k C-x 5 0 f C-g M-x r e p o r t - e m Recent messages: Loading /home/monnier/src/elisp/haskell-mode/haskell-site-file.el (source)...done Loading /usr/share/emacs21/site-lisp/bbdb/bbdb-autoloads...done Loading /home/monnier/src/elisp/ProofGeneral/generic/proof-site.el (source)...done Warning: set-coding-priority is obsolete! Loading /home/monnier/src/elisp/sml-mode/sml-mode-startup.el (source)...done Loading /home/monnier/etc/emacs/X11.el (source)...done Loading /home/monnier/etc/emacs/custom.el (source)...done Starting new Ispell process [default] ... For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... [4 times] Quit From monnier@iro.umontreal.ca Tue Mar 18 19:35:34 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: *** X-Spam-Status: No, score=3.1 required=4.0 tests=AWL,LOCALPART_IN_SUBJECT, ONEWORD autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 19 Mar 2008 02:35:34 +0000 Received: from ironport2-out.pppoe.ca (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m2J2ZVT9030049 for ; Tue, 18 Mar 2008 19:35:32 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAHcY4EdMCrTo/2dsb2JhbACpMoEJ X-IronPort-AV: E=Sophos;i="4.25,521,1199682000"; d="scan'208";a="16217369" Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 18 Mar 2008 22:34:57 -0400 Received: from pastel.home ([76.10.180.232]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id ZFB98757; Tue, 18 Mar 2008 22:34:57 -0400 Received: by pastel.home (Postfix, from userid 20848) id B11F580C6; Tue, 18 Mar 2008 22:34:57 -0400 (EDT) From: Stefan Monnier To: control@debbugs.gnu.org Subject: control Message-ID: Date: Tue, 18 Mar 2008 22:34:57 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii close 53 thanks From unknown Sat Aug 09 12:59:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: $requester Subject: Internal Control Message-Id: bug archived. Date: Wed, 16 Apr 2008 14:24:02 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A log time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 29 14:06:48 2010 Received: (at control) by debbugs.gnu.org; 29 Jan 2010 19:06:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NawB6-0006Th-CT for submit@debbugs.gnu.org; Fri, 29 Jan 2010 14:06:48 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NawB3-0006TR-9S for control@debbugs.gnu.org; Fri, 29 Jan 2010 14:06:47 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1NawAz-0008CX-1L; Fri, 29 Jan 2010 14:06:41 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19299.12736.832508.282592@fencepost.gnu.org> Date: Fri, 29 Jan 2010 14:06:40 -0500 From: Glenn Morris To: control Subject: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: blue X-Ran: VO&ud[`?6f;MPwH!mdZU0Da5EQb;q|^:M@[G'\N`mS1c#>^/W4D}F4Lh'i,;0o1zMzi=T& X-Debbugs-No-Ack: yes X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) noowner 644 noowner 193 noowner 341 noowner 523 noowner 299 noowner 50 unarchive 113 noowner 113 reassign 113 emacs,cc-mode unarchive 512 noowner 512 unarchive 13 noowner 13 reassign 13 emacs,cc-mode unarchive 17 unmerge 17 noowner 16 unarchive 343 noowner 343 reassign 343 emacs,cc-mode unarchive 145 noowner 145 unarchive 45 noowner 45 unarchive 53 noowner 53 From unknown Sat Aug 09 12:59:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 27 Feb 2010 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator