From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Levin Du Newsgroups: gmane.emacs.bugs Subject: bug#16449: 24.3.50; emacs hangs while deleting comment in xml file with flyspell-mode on Date: Thu, 16 Jan 2014 09:45:06 +0800 Message-ID: References: <871u0agcji.fsf@DuJingwu.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11345a7a2bcd1904f00c934b X-Trace: ger.gmane.org 1389836764 14680 80.91.229.3 (16 Jan 2014 01:46:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jan 2014 01:46:04 +0000 (UTC) To: 16449@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 16 02:46:11 2014 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 1W3c26-0008U2-J2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Jan 2014 02:46:10 +0100 Original-Received: from localhost ([::1]:58005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3c26-0004Dy-4R for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Jan 2014 20:46:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3c20-0004DV-F5 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:46:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3c1y-0004XB-SR for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:46:04 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38657) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3c1y-0004X7-OG for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1W3c1y-0003Dk-Hf for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Levin Du Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jan 2014 01:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16449 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.138983671712315 (code B ref -1); Thu, 16 Jan 2014 01:46:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2014 01:45:17 +0000 Original-Received: from localhost ([127.0.0.1]:52676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3c1E-0003CW-5E for submit@debbugs.gnu.org; Wed, 15 Jan 2014 20:45:17 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:47622) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3c1B-0003CL-0A for submit@debbugs.gnu.org; Wed, 15 Jan 2014 20:45:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3c19-0004RY-75 for submit@debbugs.gnu.org; Wed, 15 Jan 2014 20:45:12 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44956) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3c19-0004RU-3n for submit@debbugs.gnu.org; Wed, 15 Jan 2014 20:45:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49338) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3c17-00048K-Cl for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:45:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W3c15-0004LL-R4 for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:45:09 -0500 Original-Received: from mail-lb0-x22b.google.com ([2a00:1450:4010:c04::22b]:58560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W3c15-0004Ke-Cz for bug-gnu-emacs@gnu.org; Wed, 15 Jan 2014 20:45:07 -0500 Original-Received: by mail-lb0-f171.google.com with SMTP id c11so1422775lbj.30 for ; Wed, 15 Jan 2014 17:45:06 -0800 (PST) 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 :content-type; bh=v6Tfh6kZEVl53p6uBPQ90Hkboqaw0UzfgWvNbOi7174=; b=pBAgWjZ+/cYrtPug+fueCjaMjPoHnN+bcVAS3bgu0hEuBX8Vq5j0NUi3ukdUGja+0I cDl0sV2s5UqxxIMVbA3u47Ew3N3+0agTbrFms04hAV1/nC5y/DrG5gVUyeEd+ZDV6udF vOy1Yx3lfQXkfVzQjdoCcd9y7TNkmxquECj2otso2zNpDJE24fcSJum0dxwqQQS0kbR9 AwUClw6dVdEI9rgWgUzTd87p0GJE9wFlH2rvsDsGcCO34g3dREhuzaQO6mesT6B9+Y0n oj62NsLJWvAKqxPFBeEQSvppmVYhLfuHKyD76hHePWqwlsFDZYyc1fUr/c/qFT0wy5ki 0DKw== X-Received: by 10.152.180.35 with SMTP id dl3mr17357lac.66.1389836706236; Wed, 15 Jan 2014 17:45:06 -0800 (PST) Original-Received: by 10.152.162.84 with HTTP; Wed, 15 Jan 2014 17:45:06 -0800 (PST) In-Reply-To: <871u0agcji.fsf@DuJingwu.i-did-not-set--mail-host-address--so-tickle-me> 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:83566 Archived-At: --001a11345a7a2bcd1904f00c934b Content-Type: text/plain; charset=ISO-8859-1 Here is the xbacktrace after the hang: (gdb) xbacktrace "xmltok-forward" (0xffff93d0) "nxml-token-after" (0xffff9908) 0x1255860 PVEC_COMPILED "funcall" (0xffff9e20) "nxml-forward-single-balanced-item" (0xffffa568) "nxml-forward-balanced-item" (0xffffaa88) "forward-sexp" (0xffffaf10) "byte-code" (0xffffb6b0) "sgml-parse-tag-backward" (0xffffbbf0) "sgml-lexical-context" (0xffffc3d0) "sgml-mode-flyspell-verify" (0xffffc8f0) "flyspell-word" (0xffffce30) "byte-code" (0xffffd330) "flyspell-post-command-hook" (0xffffd980) Turn off flyspell-mode and everything is fine. 2014/1/15 Levin Du > 1. Starting from `emacs -Q' > > 2. open a xml file with contents shown below: > > > > > > false > > > > 3. Turn on flyspell mode with `M-x flyspell-mode' > > 4. Move the cursor to the comment start ' > > Emacs hangs. > > In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.17) > of 2014-01-15 on DuJingwu > Windowing system distributor `The X.Org Foundation', version 11.0.11303000 > System Description: Ubuntu 13.04 > > Configured using: > `configure --with-x-toolkit=gtk2 'CFLAGS=-O0 -g3'' > > Important settings: > value of $LC_CTYPE: zh_CN.UTF-8 > value of $LANG: en_US.UTF-8 > value of $XMODIFIERS: @im=ibus > locale-coding-system: utf-8-unix > > Major mode: Lisp Interaction > > 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: > M-x g n u - - b u > > > C-g C-g C-g > > > > > > > Recent messages: > For information about GNU Emacs and the GNU system, type C-h C-a. > Making completion list... > Quit [3 times] > call-interactively: End of buffer > > 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 help-mode easymenu time-date china-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) > --001a11345a7a2bcd1904f00c934b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Here is the xbacktrace after the hang:
(gdb= ) xbacktrace=A0
"xmltok-forward" (0xffff93d0)
=
"nxml-token-after" (0xffff9908)
0x1255860 PVEC_COM= PILED
"funcall" (0xffff9e20)
"nxml-forward-single-b= alanced-item" (0xffffa568)
"nxml-forward-balanced-item&= quot; (0xffffaa88)
"forward-sexp" (0xffffaf10)
"byte-code" (0xffffb6b0)
"sgml-parse-tag-back= ward" (0xffffbbf0)
"sgml-lexical-context" (0xffffc= 3d0)
"sgml-mode-flyspell-verify" (0xffffc8f0)
"flyspell-word" (0xffffce30)
"byte-code"= (0xffffd330)
"flyspell-post-command-hook" (0xffffd980)=


Turn of= f flyspell-mode and everything is fine.

2014/1/15 Levin Du <zslevin@gmail.com>
1. Starting from `emacs -Q'

2. open a xml file with contents shown below:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
<window>
=A0 <control>
=A0 =A0 <!--<visible>Player.HasAudio + !Skin.HasSetting(homepageMu= sicinfo)</visible>-->
=A0 =A0 <visible>false</visible>
=A0 </control>
</window>

3. Turn on flyspell mode with `M-x flyspell-mode'

4. Move the cursor to the comment start '<!--', then begin to de= lete
=A0comment start chars with C-d. When the line changes to :
=A0 =A0 <visible>Player.HasAudio + !Skin.HasSetting(homepageMusicinfo= )</visible>-->

=A0 =A0Emacs hangs.

In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.17)
=A0of 2014-01-15 on DuJingwu
Windowing system distributor `The X.Org Foundation', version 11.0.11303= 000
System Description: =A0 =A0 Ubuntu 13.04

Configured using:
=A0`configure --with-x-toolkit=3Dgtk2 'CFLAGS=3D-O0 -g3''

Important settings:
=A0 value of $LC_CTYPE: zh_CN.UTF-8
=A0 value of $LANG: en_US.UTF-8
=A0 value of $XMODIFIERS: @im=3Dibus
=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
=A0 tooltip-mode: t
=A0 electric-indent-mode: t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
=A0 global-font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Recent input:
M-x g n u - <backspace> - <tab> <tab> b u <tab> <= ;backspace>
<backspace> <backspace> <backspace> <backspace> <= ;backspace>
<backspace> <backspace> <backspace> <backspace> <= ;backspace>
C-g C-g C-g <help-echo> <help-echo> <help-echo> <help-= echo>
<help-echo> <help-echo> <help-echo> <help-echo> <= ;help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <= ;help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <= ;help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <= ;help-echo>
<menu-bar> <help-menu> <send-emacs-bug-report>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Quit [3 times]
call-interactively: End of buffer

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 help-mode easymenu time-date china-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)

--001a11345a7a2bcd1904f00c934b--