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 17:57:32 +0900 Message-ID: References: <83y4ge40tz.fsf@gnu.org> <83fv2l4dvu.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c355a6085271051f74e838 X-Trace: ger.gmane.org 1441961911 25640 80.91.229.3 (11 Sep 2015 08:58:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Sep 2015 08:58:31 +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 10:58:21 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 1ZaK9s-0002Xa-0e for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 10:58:12 +0200 Original-Received: from localhost ([::1]:54941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaK9r-0004UN-4E for geb-bug-gnu-emacs@m.gmane.org; Fri, 11 Sep 2015 04:58:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaK9l-0004TB-Rg for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 04:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZaK9i-00054g-F9 for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 04:58:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZaK9i-00054a-CS for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 04:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZaK9i-0008EI-6J for bug-gnu-emacs@gnu.org; Fri, 11 Sep 2015 04:58: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 08:58: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.144196185731605 (code B ref 20440); Fri, 11 Sep 2015 08:58:02 +0000 Original-Received: (at 20440) by debbugs.gnu.org; 11 Sep 2015 08:57:37 +0000 Original-Received: from localhost ([127.0.0.1]:56153 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaK9I-0008Dg-Q0 for submit@debbugs.gnu.org; Fri, 11 Sep 2015 04:57:37 -0400 Original-Received: from mail-lb0-f175.google.com ([209.85.217.175]:36420) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZaK9G-0008DX-6b for 20440@debbugs.gnu.org; Fri, 11 Sep 2015 04:57:35 -0400 Original-Received: by lbcao8 with SMTP id ao8so36104501lbc.3 for <20440@debbugs.gnu.org>; Fri, 11 Sep 2015 01:57:33 -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=+yvpS+xM8LhnZ3GYmCRzZbLmpcKWREBgAkcr3AcNMJo=; b=aJbQo3UNpCjSJ9Vn/OTUnNAiKXEqosb0oRnvKCuhmx34+ivir2ExobieJl0nH1nVn/ MQrlQHHfE1b5/yt9RvluSjZUMjPk1LeS/pem4zTdmBWKxUkP9C9RqLyIJPBx6dWsFive CGjGm4SQQ0LZxEL4rN7SDYZP+hsc6ef/DBwnGXcf1n6Nkm6nBEh+dRUQ4F7H4h8rEsWm 5bi3ag90GdImPdGo5F9nGY1AaK1ZoP3IfJDf+jBJ4AshX3zjV8NUPQ62gos/kjyhuUlB UOMel/8Rx7e0o1cwwOumfY1mSYgsJq6KXnK7FD3RhTlauNAy1QcGOaand8mMUFIwbVgx irfQ== X-Received: by 10.152.7.210 with SMTP id l18mr5598656laa.86.1441961853078; Fri, 11 Sep 2015 01:57:33 -0700 (PDT) Original-Received: by 10.112.158.228 with HTTP; Fri, 11 Sep 2015 01:57:32 -0700 (PDT) In-Reply-To: <83fv2l4dvu.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:106402 Archived-At: --001a11c355a6085271051f74e838 Content-Type: text/plain; charset=UTF-8 > Is this a real buffer corruption, or just the display corruption? It is a real buffer corruption. I made the second gist by C-x h, M-w and pasting it to the browser. If I change the size of the frame or the window configuration, I still have a corrupted buffer. > Also, how do you invoke Emacs to reproduce the problem? By evaluating the code in the first gist. I use emacs-jedi (https://github.com/tkf/emacs-jedi). So does the original reporter. Since the problem occurs frequently, I can find strings file-content1 and file-content2 in the first gist. As for the function my/add-to-after-change-functions, I looked into the source of emacs-jedi and wrote a similar code. > Finally, does the problem go away if you set your locale to something > else, like en_US.UTF-8? No. I can also reproduce it in the live session of Xubuntu 14.04, where LANG=en_US.UTF-8. Here is the output of M-x report-emacs-bug in Emacs 24.3 in the live session. ---------------------------------------------------------------------- From: Live session user To: bug-gnu-emacs@gnu.org Subject: 24.3; revert-buffer --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgment at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': 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'. For information about debugging Emacs, please read the file /usr/share/emacs/24.3/etc/DEBUG. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-07 on lamiak, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11600000 System Description: Ubuntu 14.04.2 LTS Configured using: `configure '--build' 'x86_64-linux-gnu' '--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.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Python Minor modes in effect: tooltip-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 - b u M-x r e p o r t - e m a c s - b u < return> 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 mail-prsvr mail-utils python rx easymenu comint ring ansi-color cl-macs gv cl-lib time-date tooltip 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 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 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 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) ---------------------------------------------------------------------- --001a11c355a6085271051f74e838 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>= Is this a real buffer corruption, or just the display corruption?

It is a real b= uffer corruption. I made the second gist by C-x h, M-w and pasting it to th= e browser.
If I change the size of the fram= e or the window configuration, I still have a corrupted buffer.

> Also, how do= you invoke Emacs to reproduce the problem?

By evaluating the code in the first g= ist.

I= use emacs-jedi (https://gith= ub.com/tkf/emacs-jedi). So does the original reporter.
Since the problem occurs frequently, I can find strings fi= le-content1 and file-content2 in the first gist.
As for the function my/add-to-after-change-functions, I looked into t= he source of emacs-jedi and wrote a similar code.

> Finally, does the problem = go away if you set your locale to something
> else, like en_US.UTF-8?

No. I can also reproduce it in the live session of = Xubuntu 14.04, where LANG=3Den_US.UTF-8.
He= re is the output of M-x report-emacs-bug in Emacs 24.3 in the live session.=

-----= -----------------------------------------------------------------
From: Live session user <xubuntu@xubuntu.i-did-no= t-set--mail-host-address--so-tickle-me>
= To: bug-gnu-emacs@gnu.org
Subject: 24.3; revert-buffer
--text follows this line--
Th= is bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.=C2=A0 Please check that
the From: line contains a valid email address.=C2=A0 After a delay o= f up
to one day, you should receive an ackn= owledgment at that address.

Please write in English if possible, as the Emacs mai= ntainers
usually do not have translators fo= r other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.=C2=A0 If you= can, give a recipe
starting from `emacs -Q= ':



= If Emacs crashed, and you have the Emacs process in the gdb debugger,
=
please include the output from the following gdb= commands:
=C2=A0 =C2=A0 `bt full' and = `xbacktrace'.
For information about deb= ugging Emacs, please read the file
/usr/sha= re/emacs/24.3/etc/DEBUG.


In GNU Emacs 24.3.1= (x86_64-pc-linux-gnu, GTK+ Version 3.10.7)
=C2=A0of 2014-03-07 on lamiak, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11= .0.11600000
System Description: =C2=A0 =C2= =A0Ubuntu 14.04.2 LTS

Configured using:
=C2=A0`c= onfigure '--build' 'x86_64-linux-gnu' '--build' = 9;x86_64-linux-gnu'
=C2=A0'--prefix= =3D/usr' '--sharedstatedir=3D/var/lib' '--libexecdir=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/ema= cs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emac= s/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp'=
=C2=A0'--with-crt-dir=3D/usr/lib/x86_6= 4-linux-gnu' '--with-x=3Dyes'
= =C2=A0'--with-x-toolkit=3Dgtk3' '--with-toolkit-scroll-bars'= ;
=C2=A0'build_alias=3Dx86_64-linux-gnu= ' 'CFLAGS=3D-g -O2 -fstack-protector
=C2=A0--param=3Dssp-buffer-size=3D4 -Wformat -Werror=3Dformat-security -W= all'
=C2=A0'LDFLAGS=3D-Wl,-Bsymboli= c-functions -Wl,-z,relro'
=C2=A0'CP= PFLAGS=3D-D_FORTIFY_SOURCE=3D2''
Important settings:
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix
=C2=A0 default enable-multibyte-characters: t

Major mode: Python

Minor modes in effect= :
=C2=A0 tooltip-mode: t
=C2=A0 mouse-wheel-mode: t
= =C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mod= e: t
=C2=A0 file-name-shadow-mode: t
<= div class=3D"gmail_extra">=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
= =C2=A0 blink-cursor-mode: t
=C2=A0 auto-com= position-mode: t
=C2=A0 auto-encryption-mod= e: t
=C2=A0 auto-compression-mode: t
<= div class=3D"gmail_extra">=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t
Recent input:
<help-echo> <help-echo> C-y M-x e v a l - b u <tab><= /div>
<return> M-x r e p o r t - e m a c s = - b u <tab> <
return>

Recent messages= :
For information about GNU Emacs and the G= NU system, type C-h C-a.
Mark set
Can't guess python-indent-offset, using defaults= : 4 [2 times]
or: Assertion failed: (string= =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 mm-bodies mm-encode mail-parse rfc2231 mailabbrev=
gmm-utils mailheader sendmail rfc2047 rfc2= 045 ietf-drums mm-util
mail-prsvr mail-util= s python rx easymenu comint ring ansi-color cl-macs
gv cl-lib time-date tooltip ediff-hook vc-hooks lisp-float-type mw= heel
x-win x-dnd tool-bar dnd fontset image= regexp-opt fringe tabulated-list
newcommen= t lisp-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-c= ore frame cham
georgian utf-8-lang misc-lan= g vietnamese tibetan thai tai-viet lao
kore= an japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-= hook help simple
abbrev minibuffer 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-ne= twork-process
dbusbind dynamic-setting syst= em-font-setting font-render-setting
move-to= olbar gtk x-toolkit x multi-tty emacs)
----= ------------------------------------------------------------------

--001a11c355a6085271051f74e838--