From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neal Becker Newsgroups: gmane.emacs.bugs Subject: bug#20440: 24.4; memory corruption Date: Mon, 27 Apr 2015 11:45:38 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d308232bce80514b6a31d X-Trace: ger.gmane.org 1430150242 30704 80.91.229.3 (27 Apr 2015 15:57:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2015 15:57:22 +0000 (UTC) To: 20440@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 27 17:57:13 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 1YmlPD-0002fd-9G for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2015 17:57:11 +0200 Original-Received: from localhost ([::1]:56047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlPC-0006ks-Io for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Apr 2015 11:57:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlP6-0006km-W3 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:57:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmlP4-0002Px-Ce for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:57:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlP4-0002Pt-9J for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YmlP4-0003Bf-09 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Neal Becker Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Apr 2015 15:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20440 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143015019712210 (code B ref -1); Mon, 27 Apr 2015 15:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2015 15:56:37 +0000 Original-Received: from localhost ([127.0.0.1]:41383 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmlOe-0003Aq-45 for submit@debbugs.gnu.org; Mon, 27 Apr 2015 11:56:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36611) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YmlOb-0003AZ-Ga for submit@debbugs.gnu.org; Mon, 27 Apr 2015 11:56:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmlOD-0001zI-1v for submit@debbugs.gnu.org; Mon, 27 Apr 2015 11:56:28 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlOC-0001rF-R2 for submit@debbugs.gnu.org; Mon, 27 Apr 2015 11:56:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlE6-0007Vs-D7 for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:45:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmlE3-0006RK-RE for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:45:42 -0400 Original-Received: from mail-oi0-x22a.google.com ([2607:f8b0:4003:c06::22a]:36859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmlE3-0006Qo-En for bug-gnu-emacs@gnu.org; Mon, 27 Apr 2015 11:45:39 -0400 Original-Received: by oift201 with SMTP id t201so92462725oif.3 for ; Mon, 27 Apr 2015 08:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=FYn0sIXM3afeTDWIlmCq4JJ5B94pvt+fc2w5eLiD5i0=; b=ecBkEjcFsYxrtAZwwAJ0Op+i0qebRBvrXhzfm5Q7muw8u9SQlzQCpdXdZLWgigdCju +FzJYDtQsZmal9oSnXRSs4iJj43h3g+gCFrJZ6fHDF4ob4YVd2et2g5agYKCP1QpI9JZ qn4pQyYkLTlH+GDTICuOFoBqiMnMpTAqjXhz7loXI340WkKXSuwEf8Sl0B55Q7cbwLeQ JtU0QhzbqBnskyJgso0A9PEMaRtArRKgwlwCPMqIQKGqpV57Qe6/X0x/YXLGd9dCtmAX SyUntq5F1K95VRKx/AAXdz6t/WEzGOWuNFJB95hN0TyjYgPLgYwEwMRo3hBnltdixLKw eoWg== X-Received: by 10.202.176.134 with SMTP id z128mr10050824oie.102.1430149538165; Mon, 27 Apr 2015 08:45:38 -0700 (PDT) Original-Received: by 10.76.24.69 with HTTP; Mon, 27 Apr 2015 08:45:38 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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: 140.186.70.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:102093 Archived-At: --001a113d308232bce80514b6a31d Content-Type: text/plain; charset=UTF-8 When on-disk file has changed, I use the following function to re-read buffer: (defun refresh-file () (interactive) (revert-buffer t (not (buffer-modified-p)) t) ) (global-set-key [f5] 'refresh-file) I have seen (again this morning) I wind up with a corrupted buffer. It appears a segment of the data is correct, but data has been reordered. I'm looking at a python source file. For example, in the middle of the buffer, it looks like the beginning of the file is inserted (sorry I no longer have this buffer and can't be precise). Kill buffer, and reload file, and it's fixed. In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.11) of 2015-04-07 on buildvm-06.phx2.fedoraproject.org Windowing system distributor `Fedora Project', version 11.0.11603000 System Description: Fedora release 21 (Twenty One) Configured using: `configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3 --with-gpm=no build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic' 'LDFLAGS=-Wl,-z,relro '' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: diff-auto-refine-mode: t jedi-mode: t global-auto-complete-mode: t auto-complete-mode: t display-time-mode: t override-global-mode: t shell-dirtrack-mode: t delete-selection-mode: t 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-SPC C-c # C-x C-s C-x v v C-x v = C-x o r e m o v e c l e a n u p C-c C-c M-x s h e l l M-p C-x C-f t e s T _ u t _ u y e s C-s c o n s i d e r e d C-s C-s C-s C-s C-a C-s c o n s i d C-s C-a C-x k C-x C-f t e s t _ u C-s c o n s i d e r e d C-s C-s C-s C-s C-s C-r C-r C-a C-s C-s C-s C-a C-h c C-h f r e f r e s h - f i l e C-x C-f C-g C-x o C-e C-h v e m a c s - v e r C-SPC M-w C-x C-f C-x 1 g f C-x C-f t e s C-g C-x b t e s t _ u C-s - - l i m i t - C-r C-r C-a C-r l i m i t _ n e w C-a C-s p a r t i a l C-a C-x C-f g f M-x r e p o r t Recent messages: Type C-x 1 to delete the help window. Quit Mark set Directory has changed on disk; type g to update Dired Quit Mark saved where search started [3 times] Directory has changed on disk; type g to update Dired Local value of py-indent-offset set to 4 Using the CPython shell Load-path shadows: /home/nbecker/.emacs.d/elpa/ipython-2927/ipython hides /home/nbecker/.emacs.d/lisp/ipython Features: (shadow sort mail-extr emacsbug sendmail eieio-opt speedbar sb-image ezimage dframe find-func help-mode misearch multi-isearch diff-mode log-edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader pcvs-util add-log vc warnings vc-dispatcher vc-hg network-stream auth-source gnus-util mm-util mail-prsvr password-cache starttls tls jedi-direx direx eieio eieio-core jedi jedi-core python-environment epc ctable concurrent deferred imenu dired flymake ido ess-toolbar ess-mouse mouseme browse-url ess-menu ess-swv ess-noweb ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-d ess-sas-l ess-sas-a ess-sta-d ess-sta-l cc-vars cc-defs make-regexp ess-sp6-d ess-sp3-d ess-julia ess-r-d ess-r-completion ess-tracebug format-spec ess-roxy hideshow ess-help ess-developer eldoc ess-s-l ess ess-inf ess-mode ess-noweb-mode ess-utils ess-custom ess-compat ess-site auto-complete popup zoom-frm frame-cmds frame-fns avoid browse-kill-ring edmacro kmacro rst time felineherd byte-opt thingatpt use-package diminish bytecomp byte-compile cconv bind-key easy-mmode ipython advice help-fns executable shell pcomplete python-mode info-look cl-macs compile cl gv cl-loaddefs cl-lib comint ansi-color ring info easymenu diminish-autoloads package epg-config delsel cus-start cus-load time-date 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 248657 26119) (symbols 48 35288 16) (miscs 40 160 351) (strings 32 62111 7050) (string-bytes 1 1794555) (vectors 16 30112) (vector-slots 8 950184 74983) (floats 8 170 618) (intervals 56 2593 0) (buffers 960 28) (heap 1024 141858 53739)) -- *Those who don't understand recursion are doomed to repeat it* --001a113d308232bce80514b6a31d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

When on-disk file has changed, I use t= he following function to re-read
buffer:

(defun refresh-file ()
=C2=A0 (interactive)
=C2=A0 (re= vert-buffer t (not (buffer-modified-p)) t)
=C2=A0 )
(global-set-key [f5] 'refresh-file)

I have seen (again this morning) I wind up with a corrupted buffer.=C2=A0= It
appears a segment of the data is correct, but data has been r= eordered.
I'm looking at a python source file.=C2=A0 For exam= ple, in the middle of the buffer, it
looks like the beginning of = the file is inserted (sorry I no longer have
this buffer and can&= #39;t be precise).

Kill buffer, and reload file, a= nd it's fixed.



<= br>
In GNU Emacs 24.4.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.= 14.11)
=C2=A0of 2015-04-07 on buildvm-06.phx2.fedoraproject.org
Windowing= system distributor `Fedora Project', version 11.0.11603000
S= ystem Description: Fedora= release 21 (Twenty One)

Configured using:
=C2=A0`configure --build=3Dx86_64-redhat-linux-gnu
=C2=A0--hos= t=3Dx86_64-redhat-linux-gnu --program-prefix=3D
=C2=A0--disable-d= ependency-tracking --prefix=3D/usr --exec-prefix=3D/usr
=C2=A0--b= indir=3D/usr/bin --sbindir=3D/usr/sbin --sysconfdir=3D/etc
=C2=A0= --datadir=3D/usr/share --includedir=3D/usr/include --libdir=3D/usr/lib64
=C2=A0--libexecdir=3D/usr/libexec --localstatedir=3D/var
= =C2=A0--sharedstatedir=3D/var/lib --mandir=3D/usr/share/man
=C2= =A0--infodir=3D/usr/share/info --with-dbus --with-gif --with-jpeg --with-pn= g
=C2=A0--with-rsvg --with-tiff --with-xft --with-xpm --with-x-to= olkit=3Dgtk3
=C2=A0--with-gpm=3Dno build_alias=3Dx86_64-redhat-li= nux-gnu
=C2=A0host_alias=3Dx86_64-redhat-linux-gnu 'CFLAGS=3D= -DMAIL_USE_LOCKF -O2 -g
=C2=A0-pipe -Wall -Werror=3Dformat-securi= ty -Wp,-D_FORTIFY_SOURCE=3D2
=C2=A0-fexceptions -fstack-protector= -strong --param=3Dssp-buffer-size=3D4
=C2=A0-grecord-gcc-switches= -m64 -mtune=3Dgeneric' 'LDFLAGS=3D-Wl,-z,relro ''

Important settings:
=C2=A0 value of $LANG: en_US= .UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
=C2=A0 diff-auto-refine-mode: t
=C2=A0 jedi-mode: t
=C2=A0 global-auto-complete-mode: t
=C2=A0 auto-complete-mo= de: t
=C2=A0 display-time-mode: t
=C2=A0 override-globa= l-mode: t
=C2=A0 shell-dirtrack-mode: t
=C2=A0 delete-s= election-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 electric= -indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-= bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-sh= adow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 fon= t-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-= composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2= =A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode: t

Recent input:
=
<prior> <up> <up> <up> <up> <up> &= lt;up> <up> <up> <up>=C2=A0
<up> C-SPC= <down> <down> <down> C-c # C-x C-s C-x v=C2=A0
v C-x v =3D C-x o r e m o v e <backspace> <backspace>=C2=A0
<backspace> <backspace> <backspace> <backspace= > c l=C2=A0
e a n u p C-c C-c M-x s h e l l <return> M-p= <return>=C2=A0
C-x C-f t e s T _ u <tab> <backspa= ce> <backspace> <backspace>=C2=A0
t _ u <tab>= ; <return> y e s <return> <C-home> C-s c=C2=A0
= o n s i d e r e d C-s C-s C-s C-s C-a C-s c o n s i=C2=A0
d C-s C= -a <next> <next> <next> <prior> C-x k <return>= ;=C2=A0
C-x C-f t e s t _ u <tab> <return> C-s c o n = s i d=C2=A0
e r e d C-s C-s C-s C-s C-s C-r C-r C-a C-s C-s C-s= =C2=A0
C-a C-h c <f5> C-h f r e f r e s h - f i l e <ret= urn>=C2=A0
C-x C-f C-g C-x o C-e <left> <left> <= ;left> <return>=C2=A0
<help-echo> <help-echo>= ; <help-echo> C-h v e m a c s=C2=A0
- v e r <tab> <= ;return> <help-echo> <help-echo> <help-echo>=C2=A0
C-SPC <down> <down> <down> <down> <down&g= t; <down> M-w=C2=A0
<help-echo> <help-echo> <= ;help-echo> <help-echo> <help-echo>=C2=A0
C-x C-f = <return> C-x 1 g <down> f C-x C-f t e s C-g=C2=A0
C-x= b t e s t _ u <tab> <return> C-s - - l i m i t=C2=A0
- C-r C-r C-a C-r l i m i t _ n e w <help-echo> <help-echo>=C2= =A0
<help-echo> C-a C-s p a r t i a l C-a <help-echo>= C-x=C2=A0
C-f <return> g <down> <down> <dow= n> <down> <down> <down>=C2=A0
<down> &= lt;down> <down> <down> <down> <down> <down>= ; <down>=C2=A0
<down> <down> <down> <d= own> <down> <down> f <help-echo>=C2=A0
<h= elp-echo> M-x r e p o r t <tab> <return>

Recent messages:
Type C-x 1 to delete the help window.
Quit

Mark set
Directory has change= d on disk; type g to update Dired
Quit
Mark saved where= search started [3 times]
Directory has changed on disk; type g t= o update Dired
Local value of py-indent-offset set to 4
Using the CPython shell

Load-path shadows:
<= div>/home/nbecker/.emacs.d/elpa/ipython-2927/ipython hides /home/nbecker/.e= macs.d/lisp/ipython

Features:
(shadow so= rt mail-extr emacsbug sendmail eieio-opt speedbar sb-image
ezimag= e dframe find-func help-mode misearch multi-isearch diff-mode
log= -edit message rfc822 mml mml-sec mm-decode mm-bodies mm-encode
ma= il-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils
gmm-utils mailheader pcvs-util add-log vc warnings vc-dispatcher vc-hg
network-stream auth-source gnus-util mm-util mail-prsvr password-cac= he
starttls tls jedi-direx direx eieio eieio-core jedi jedi-core<= /div>
python-environment epc ctable concurrent deferred imenu dired fly= make
ido ess-toolbar ess-mouse mouseme browse-url ess-menu ess-sw= v ess-noweb
ess-noweb-font-lock-mode ess-bugs-l essd-els ess-sas-= d ess-sas-l
ess-sas-a ess-sta-d ess-sta-l cc-vars cc-defs make-re= gexp ess-sp6-d
ess-sp3-d ess-julia ess-r-d ess-r-completion ess-t= racebug format-spec
ess-roxy hideshow ess-help ess-developer eldo= c ess-s-l ess ess-inf
ess-mode ess-noweb-mode ess-utils ess-custo= m ess-compat ess-site
auto-complete popup zoom-frm frame-cmds fra= me-fns avoid browse-kill-ring
edmacro kmacro rst time felineherd = byte-opt thingatpt use-package
diminish bytecomp byte-compile cco= nv bind-key easy-mmode ipython advice
help-fns executable shell p= complete python-mode info-look cl-macs
compile cl gv cl-loaddefs = cl-lib comint ansi-color ring info easymenu
diminish-autoloads pa= ckage epg-config delsel cus-start cus-load
time-date tooltip elec= tric uniquify ediff-hook vc-hooks lisp-float-type
mwheel x-win x-= dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list n= ewcomment 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
tib= etan 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 bas= e64
format env code-pages mule custom widget hashtable-print-read= able
backquote make-network-process dbusbind gfilenotify dynamic-= setting
system-font-setting font-render-setting move-toolbar gtk = x-toolkit x
multi-tty emacs)

Memory info= rmation:
((conses 16 248657 26119)
=C2=A0(symbols 48 35= 288 16)
=C2=A0(miscs 40 160 351)
=C2=A0(strings 32 6211= 1 7050)
=C2=A0(string-bytes 1 1794555)
=C2=A0(vectors 1= 6 30112)
=C2=A0(vector-slots 8 950184 74983)
=C2=A0(flo= ats 8 170 618)
=C2=A0(intervals 56 2593 0)
=C2=A0(buffe= rs 960 28)
=C2=A0(heap 1024 141858 53739))


--
Thos= e who don't understand recursion are doomed to repeat it
--001a113d308232bce80514b6a31d--