From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sho Takemori Newsgroups: gmane.emacs.bugs Subject: bug#20440: reproducible recipe Date: Fri, 11 Sep 2015 13:08:11 +0900 Message-ID: References: <83y4ge40tz.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c355a63a3c2f051f70dde9 X-Trace: ger.gmane.org 1441944562 26493 80.91.229.3 (11 Sep 2015 04:09:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2015 04:09:22 +0000 (UTC) Cc: 20440@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 11 06:09:12 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZaFeB-0002Pd-F6 for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 06:09:11 +0200 Original-Received: from localhost ([::1]:53737 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaFeB-00065s-0Z for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 00:09:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaFe7-00065T-5i for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 00:09:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaFe2-0008U1-TA for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 00:09:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35571) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaFe2-0008Tv-PP for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 00:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZaFe2-0001RG-BO for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 00:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sho Takemori Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Sep 2015 04:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20440 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20440-submit@debbugs.gnu.org id=B20440.14419444975473 (code B ref 20440); Fri, 11 Sep 2015 04:09:02 +0000 Original-Received: (at 20440) by debbugs.gnu.org; 11 Sep 2015 04:08:17 +0000 Original-Received: from localhost ([127.0.0.1]:56014 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaFdI-0001QC-2v for submit@debbugs.gnu.org; Fri, 11 Sep 2015 00:08:16 -0400 Original-Received: from mail-la0-f48.google.com ([209.85.215.48]:34671) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaFdE-0001Q3-Pq for 20440@debbugs.gnu.org; Fri, 11 Sep 2015 00:08:14 -0400 Original-Received: by lahg1 with SMTP id g1so10197474lah.1 for <20440@debbugs.gnu.org>; Thu, 10 Sep 2015 21:08:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=f0R+BCiCOjpTdG73s+oJlhNzaZaJtTwrRuBJdC61apI=; b=eHDrWJENHRnJPud1tWL5/8aGlySVMkzVJS7bPHi/8ELXT59WOBS797lsulv7vwcFEa 3JNWe4/QoMrBqLGAL3NXMQT6P7AFIS5ohA8b1VzAvjaq9yIAIeuiBVAsRRRYlQxZGhaG n8QGYaxSJZ1ErLX2rM/YbtpSuQiwlHI2ynQbXQCVQeLsvjaLrNKr4orBOFnvFu2dPi6h ToX8e5FzR7mEvcRMKpcbfVwdTr76apIWMAGCY5q8GP+xp3YcPiIJoNlWDojLblsfPj2C j+5rq/XgDXXFAuH7ggTXkgRpENzkSS5qeGu001SblFoGkBVEP3lI43N7dZ2jXQbdaKRO NfjA== X-Received: by 10.152.7.210 with SMTP id l18mr4509150laa.86.1441944491931; Thu, 10 Sep 2015 21:08:11 -0700 (PDT) Original-Received: by 10.112.158.228 with HTTP; Thu, 10 Sep 2015 21:08:11 -0700 (PDT) In-Reply-To: <83y4ge40tz.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106393 Archived-At: --001a11c355a63a3c2f051f70dde9 Content-Type: text/plain; charset=UTF-8 I use Ubuntu 15.04. I can reproduce this both in Emacs 24.4 which is installed by "apt-get install emacs24" and in Emacs 24.5 which I built from the source. The corrupted buffer looks like this. https://gist.github.com/stakemori/8c3e1f6e3f73f5db3a7a The output of M-x report-emacs-bug in Emacs 24.4 is as follows: From: sho To: bug-gnu-emacs@gnu.org Subject: 24.4; revert-buffer --text follows this line-- In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9) of 2015-03-21 on kissel, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11701000 System Description: Ubuntu 15.04 Configured using: `configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall' CPPFLAGS=-D_FORTIFY_SOURCE=2 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro'' Important settings: value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-y M-x e v a l 0 - b u M-x r e p o r t - e m a c s Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Can't guess python-indent-offset, using defaults: 4 [2 times] or: Assertion failed: (string= (buffer-string) file-content2) Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils python easymenu json comint ring ansi-color cl-macs gv cl-loaddefs cl-lib time-date japan-util tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 82225 4373) (symbols 48 18572 0) (miscs 40 40 99) (strings 32 12434 4244) (string-bytes 1 367042) (vectors 16 11207) (vector-slots 8 474430 27975) (floats 8 64 67) (intervals 56 262 1) (buffers 960 13) (heap 1024 25157 1072)) 2015-09-11 2:54 GMT+09:00 Eli Zaretskii : > > Date: Thu, 10 Sep 2015 22:33:08 +0900 > > From: Sho Takemori > > > > Here is a reproducible recipe. > > > > https://gist.github.com/stakemori/ccf0e4cfae2fcfafbf0a > > > > I thought this is a bug of emacs-jedi > > (https://github.com/tkf/emacs-jedi/issues/234). > > But I can reproduce it with "emacs -Q". (I use Emacs 24.5). > > > > If I replace (buffer-string) in the body of > my/add-to-after-change-functions > > by (buffer-substring-no-properties (point-min) (point-max)), > > then the same error occurs. > > > > I think this has nothing to do with python-mode. It also occurs in > text-mode. > > FWIW, I don't see any corruption when I load this file. > --001a11c355a63a3c2f051f70dde9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

I use Ubuntu 15.04.
I can reproduce this both in Ema= cs 24.4
which is installed by "apt-get install emacs24"
and= in Emacs 24.5 which I built from the source.

The corrupted buffer looks like this.
https://gist.github.com/stakemori/8c3e1= f6e3f73f5db3a7a

The output of M-x report-emacs-bug in Emacs 24.4 = is as follows:

From: sho <sho@K430-Ubuntu.i-did-not-set--mail-host= -address--so-tickle-me>

To: bug-gnu-emacs@gnu.org

Subject: 24.4; revert-buffer

--tex= t follows this line--





In GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9)

<= p>=C2=A0of 2015-03-21 on kissel, modified by Debian

Windowing system = distributor `The X.Org Foundation', version 11.0.11701000

System = Description: Ubuntu 15.04=


Configured using:

=C2=A0`configure --build x86_64-l= inux-gnu --prefix=3D/usr

=C2=A0--sharedstatedir=3D/var/lib --libexecd= ir=3D/usr/lib

=C2=A0--localstatedir=3D/var/lib --infodir=3D/usr/share= /info

=C2=A0--mandir=3D/usr/share/man --with-pop=3Dyes

=C2=A0--= enable-locallisppath=3D/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.4/= site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.4/site-lisp:= /usr/share/emacs/site-lisp

=C2=A0--build x86_64-linux-gnu --prefix=3D= /usr --sharedstatedir=3D/var/lib

=C2=A0--libexecdir=3D/usr/lib --loca= lstatedir=3D/var/lib

=C2=A0--infodir=3D/usr/share/info --mandir=3D/us= r/share/man --with-pop=3Dyes

=C2=A0--enable-locallisppath=3D/etc/emac= s24:/etc/emacs:/usr/local/share/emacs/24.4/site-lisp:/usr/local/share/emacs= /site-lisp:/usr/share/emacs/24.4/site-lisp:/usr/share/emacs/site-lisp

=C2=A0--with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-toolkit-scroll-bars

=C2=A0'CFLAGS=3D-g -O2 -fstack-protector-strong -Wformat

=C2= =A0-Werror=3Dformat-security -Wall' CPPFLAGS=3D-D_FORTIFY_SOURCE=3D2

=C2=A0'LDFLAGS=3D-Wl,-Bsymbolic-functions -Wl,-z,relro''


Important settings:

=C2=A0 value of $LANG: ja_JP.UTF-8=

=C2=A0 value of $XMODIFIERS: @im=3Dfcitx

=C2=A0 locale-coding-= system: utf-8-unix


Major mode: Python


Min= or modes in effect:

=C2=A0 tooltip-mode: t

=C2=A0 electric-inde= nt-mode: t

=C2=A0 mouse-wheel-mode: t

=C2=A0 tool-bar-mode: t

=C2=A0 menu-bar-mode: t

=C2=A0 file-name-shadow-mode: t

= =C2=A0 global-font-lock-mode: t

=C2=A0 font-lock-mode: t

=C2=A0= blink-cursor-mode: t

=C2=A0 auto-composition-mode: t

=C2=A0 au= to-encryption-mode: t

=C2=A0 auto-compression-mode: t

=C2=A0 li= ne-number-mode: t

=C2=A0 transient-mark-mode: t


Rece= nt input:

C-y M-x e v a l 0 <backspace> - b u <tab> <r= eturn>=C2=A0

M-x r e p o r t - e m a c s <tab> <return>= ;


Recent messages:

For information about GNU Emacs a= nd the GNU system, type C-h C-a.

Mark set

Can't guess pytho= n-indent-offset, using defaults: 4 [2 times]

or: Assertion failed: (s= tring=3D (buffer-string) file-content2)


Load-path shadows:=

None found.


Features:

(shadow sort gnus-util = mail-extr emacsbug message format-spec rfc822 mml

mml-sec mm-decode m= m-bodies mm-encode mail-parse rfc2231 mailabbrev

gmm-utils mailheader= sendmail rfc2047 rfc2045 ietf-drums mm-util

help-fns mail-prsvr mail= -utils python easymenu json comint ring

ansi-color cl-macs gv cl-load= defs cl-lib time-date japan-util tooltip

electric uniquify ediff-hook= vc-hooks lisp-float-type mwheel x-win x-dnd

tool-bar dnd fontset ima= ge regexp-opt fringe tabulated-list newcomment

lisp-mode prog-mode re= gister page menu-bar rfn-eshadow timer select

scroll-bar mouse jit-lo= ck font-lock syntax facemenu font-core frame cham

georgian utf-8-lang= misc-lang vietnamese tibetan thai tai-viet lao

korean japanese hebre= w greek romanian slovak czech european ethiopic

indian cyrillic chine= se case-table epa-hook jka-cmpr-hook help simple

abbrev minibuffer na= dvice loaddefs button faces cus-face macroexp files

text-properties o= verlay sha1 md5 base64 format env code-pages mule

custom widget hasht= able-print-readable backquote make-network-process

dbusbind gfilenoti= fy dynamic-setting system-font-setting

font-render-setting move-toolb= ar gtk x-toolkit x multi-tty emacs)


Memory information:

((conses 16 82225 4373)

=C2=A0(symbols 48 18572 0)

=C2=A0(m= iscs 40 40 99)

=C2=A0(strings 32 12434 4244)

=C2=A0(string-byte= s 1 367042)

=C2=A0(vectors 16 11207)

=C2=A0(vector-slots 8 4744= 30 27975)

=C2=A0(floats 8 64 67)

=C2=A0(intervals 56 262 1)

=

=C2=A0(buffers 960 13)

=C2=A0(heap 1024 25157 1072))


<= /div>

2015-09-11 = 2:54 GMT+09:00 Eli Zaretskii <eliz@gnu.org>:
> Date: Thu, 10 Sep 2015 22:33:08 +0900
> From: Sho Takemori <stakemo= rii@gmail.com>
>
> Here is a reproducible recipe.
>
> https://gist.github.com/stakemori/ccf0e4c= fae2fcfafbf0a
>
> I thought this is a bug of emacs-jedi
> (https://github.com/tkf/emacs-jedi/issues/234).=
> But I can reproduce it with "emacs -Q". (I use Emacs 24.5).<= br> >
> If I replace (buffer-string) in the body of my/add-to-after-change-fun= ctions
> by (buffer-substring-no-properties (point-min) (point-max)),
> then the same error occurs.
>
> I think this has nothing to do with python-mode. It also occurs in tex= t-mode.

FWIW, I don't see any corruption when I load this file.

--001a11c355a63a3c2f051f70dde9--