From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.bugs Subject: bug#35429: 27.0.50; Arbitrary xdisp.c related crashes when working with overlay-using packages Date: Fri, 26 Apr 2019 10:08:30 -0400 Message-ID: References: <83r29pygqk.fsf@gnu.org> <83ef5pxmjc.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000686b0e05876f7ab4" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="120048"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 35429@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 26 16:10:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hK1YO-000VAF-9g for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2019 16:10:16 +0200 Original-Received: from localhost ([127.0.0.1]:47679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hK1YN-0000X5-46 for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Apr 2019 10:10:15 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36023) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hK1YC-0000WL-CP for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 10:10:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hK1YA-0004Zj-Uj for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 10:10:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48003) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hK1YA-0004ZP-S1 for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 10:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hK1YA-0005RD-Gw for bug-gnu-emacs@gnu.org; Fri, 26 Apr 2019 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kaushal Modi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Apr 2019 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35429 X-GNU-PR-Package: emacs Original-Received: via spool by 35429-submit@debbugs.gnu.org id=B35429.155628775720844 (code B ref 35429); Fri, 26 Apr 2019 14:10:02 +0000 Original-Received: (at 35429) by debbugs.gnu.org; 26 Apr 2019 14:09:17 +0000 Original-Received: from localhost ([127.0.0.1]:33313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hK1XR-0005Q7-3D for submit@debbugs.gnu.org; Fri, 26 Apr 2019 10:09:17 -0400 Original-Received: from mail-lj1-f170.google.com ([209.85.208.170]:38012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hK1XO-0005Pr-FW for 35429@debbugs.gnu.org; Fri, 26 Apr 2019 10:09:15 -0400 Original-Received: by mail-lj1-f170.google.com with SMTP id p14so3066300ljg.5 for <35429@debbugs.gnu.org>; Fri, 26 Apr 2019 07:09:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=peM/z/XeMNYYL+lrnM7fzE32DiKHZRvSvnXJb+b9Oa0=; b=l9vKw/iu1N5zIyeLThZp82m+y74djJUs7TEh0KLBvfjLO0A4kV9R7flATQ6QxrUv45 rh2YEUw+LR1+6dXRnUIFfTML5c5sc5pTgnx14yli/aapKFEgoJZyGAtregxitMvVaBhf VM+1JooKsTf2zkgGijf7QGruVqaV2zpt9WgshIZcv9JOgvkjZB5e9D7iWP/UwINetr98 sP2InNCOpkbobSfSUEQp5Kq+HxY8LOPlEeljrL78BFbH7Rq0JX3qXhNEXQZI21dA09ED ugSPg2qAW4QITnQQIbYhsKrBrZF8pPfn7ttrVxurQwcd38vc9z+0b0JZEsxtH647Pb3h UsIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=peM/z/XeMNYYL+lrnM7fzE32DiKHZRvSvnXJb+b9Oa0=; b=G1gkh/qexdA15XYT6RV5KbYLQoh3P8OgqqmAoZvf7lEtQq/cDCtk2zhaelaIUx1RG2 SljmdrNBDNWURAoLXkwnEK9qXvg8n08uMImX1xCOyKthC+Ck2UQfSvMjr/WArARmxXH0 J+MttFa+vxpQ9iDYIEpli9ppL5khq2CmIsp+giJvdG1Hp0lB52rR1TLVlG7NYHptCoCe /XvanLPnbKCHmwtf4bdrqq+IU4oDkQ1M2EhXDZPkERKxaHeDQj1hOtqpqXdeeYuGzymy xoFVOgfcA99ymyoUcMADoflrhu4pnrBQjvNtNTehctvlAU2L5Kh0P1n8Jt6ZK5r7IocE qbAQ== X-Gm-Message-State: APjAAAU/cVqv4l/gGnbCu8l9i3sbQUWX7qdFDYmq6QYBLi9v2MpGd6lA tRSBoSH2YDI86IK+rQU5xuJYygkegZVKsZQRy5kPh4se X-Google-Smtp-Source: APXvYqytsr+BBWs/BUFSI3+KjTui++gTFZ6M3uNSyFKdQbMk44jQg77Dw+c3tssDI/cWvw4rVo26e5rEMVqEEzro8gU= X-Received: by 2002:a2e:9213:: with SMTP id k19mr10180162ljg.118.1556287748333; Fri, 26 Apr 2019 07:09:08 -0700 (PDT) In-Reply-To: <83ef5pxmjc.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:158296 Archived-At: --000000000000686b0e05876f7ab4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Apr 26, 2019 at 3:18 AM Eli Zaretskii wrote: > > I doubt that the beacon package is where the bug is, so I was asking > whether a previous version of master didn't have this problem. Or are > you saying that you only started using the beacon package a few weeks > ago? > No, I have been using beacon package for few years now. > > If you mean the presence of Unicode characters, then I have the unicode > box drawing characters too. The Org > > file content is not 100% 8-bit ASCII. > > Not even its first 2874 characters? > Those characters are in the buffer, not overlay. And they are not in the first 2874 characters. Here are the roughly first 3000 chars of that Org buffer: http://ix.io/1Hgv Note that at many places in that snippet, I have "=3D>" characters which I replace with a unicode symbol via prettify-symbols mode. E.g. "=3D>" is replaced with: position: 5434 of 8347 (65%), column: 35 character: =EE=A0=A4 (displayed as =EE=A0=A4) (codepoint 59428,= #o164044, #xe824) charset: unicode (Unicode (ISO10646)) code point in charset: 0xE824 syntax: w which means: word category: L:Left-to-right (strong) to input: type "C-x 8 RET e824" buffer code: #xEE #xA0 #xA4 file code: #xEE #xA0 #xA4 (encoded by coding system utf-8-unix) display: by this font (glyph code) xft:-unknown-PragmataPro-normal-normal-normal-*-17-*-*-*-*-0-iso10646-1 (#x11D5) Character code properties: customize what to show general-category: Co (Other, Private Use) decomposition: (59428) ('=EE=A0=A4') There are text properties here: fontified nil Would that be causing a problem? Here is my entire set of ligature substitution using prettify-symbols: http://ix.io/1Hgw/elisp > By "unoptimized" I mean '-O0 -ggdb3'. -Og still optimizes, it just > avoids optimizations that make debugging exceptionally hard. > Understood. Thank you, will build with -O0 -ggdb3 going forward. > What are the values of these: > > (gdb) p current_buffer->pt > (gdb) p current_buffer->pt_byte > (gdb) p current_buffer->text->gpt > (gdb) p current_buffer->text->gpt_byte > (gdb) p current_buffer->begv > (gdb) p current_buffer->begv_byte > (gdb) p current_buffer->zv > (gdb) p current_buffer->zv_byte > (gdb) p current_buffer->pt $1 =3D 1406 (gdb) p current_buffer->pt_byte $2 =3D 1418 (gdb) p current_buffer->text->gpt $3 =3D 1 (gdb) p current_buffer->text->gpt_byte $4 =3D 1 (gdb) p current_buffer->begv $5 =3D 1 (gdb) p current_buffer->begv_byte $6 =3D 1 (gdb) p current_buffer->zv $7 =3D 20122 (gdb) p current_buffer->zv_byte $8 =3D 20804 (gdb) Thank you. --000000000000686b0e05876f7ab4 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= On Fri, Apr 26, 2019 at 3:18 AM Eli Zaretskii <eliz@gnu.org> wrote:

I doubt that the beacon package is where the bug is, so I was asking
whether a previous version of master didn't have this problem.=C2=A0 Or= are
you saying that you only started using the beacon package a few weeks
ago?

No, I have been using beacon packa= ge for few years now.
=C2=A0
> If you mean the presence of Unicode characters, then I have the unicod= e box drawing characters too. The Org
> file content is not 100% 8-bit ASCII.

Not even its first 2874 characters?

Tho= se characters are in the buffer, not overlay. And they are not in the first= 2874 characters.
Here are the roughly first 3000 chars of that O= rg buffer: http://ix.io/1Hgv
Note that at many places in that snippet, I have "=3D>= " characters which I replace with a unicode symbol via prettify-symbol= s mode. E.g. "=3D>" is replaced with:

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 p= osition: 5434 of 8347 (65%), column: 35
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 character: =EE=A0=A4 (displayed as =EE= =A0=A4) (codepoint 59428, #o164044, #xe824)
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 charset: unicode (Unico= de (ISO10646))
code point in charset: 0xE824
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 syntax: w =C2= =A0=C2=A0=C2=A0 which means: word
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 category: L:Left-to-right (strong)
= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 to= input: type "C-x 8 RET e824"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 buffer code: #xEE #xA0 #xA4
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 file code: #xEE #xA0 #xA4 = (encoded by coding system utf-8-unix)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 display: by this font (glyph = code)
=C2=A0=C2=A0=C2=A0 xft:-unknown-PragmataPro-normal-normal-normal-*= -17-*-*-*-*-0-iso10646-1 (#x11D5)

Character code properties: customi= ze what to show
=C2=A0 general-category: Co (Other, Private Use)
=C2= =A0 decomposition: (59428) ('=EE=A0=A4')

There are text prop= erties here:
=C2=A0 fontified=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 nil

Would that be cau= sing a problem?

Here is my entire set of ligature = substitution using prettify-symbols: ht= tp://ix.io/1Hgw/elisp

=C2=A0
By "unoptimized" I mean '-O0 -ggdb3'.=C2=A0 -Og still opt= imizes, it just
avoids optimizations that make debugging exceptionally hard.

Understood. Thank you, will build with -O0 -ggdb3 goi= ng forward.


What are the values of these:

=C2=A0 (gdb) p current_buffer->pt
=C2=A0 (gdb) p current_buffer->pt_byte
=C2=A0 (gdb) p current_buffer->text->gpt
=C2=A0 (gdb) p current_buffer->text->gpt_byte
=C2=A0 (gdb) p current_buffer->begv
=C2=A0 (gdb) p current_buffer->begv_byte
=C2=A0 (gdb) p current_buffer->zv
=C2=A0 (gdb) p current_buffer->zv_byte

(gdb) p current_buffer->pt
$1 =3D 1406
(gdb) p current_buffer-&= gt;pt_byte
$2 =3D 1418
(gdb) p current_buffer->text->gpt
$3 = =3D 1
(gdb) p current_buffer->text->gpt_byte
$4 =3D 1
(gdb) = p current_buffer->begv
$5 =3D 1
(gdb) p current_buffer->begv_by= te
$6 =3D 1
(gdb) p current_buffer->zv
$7 =3D 20122
(gdb) p = current_buffer->zv_byte
$8 =3D 20804
(gdb)

=C2=A0Thank you.
--000000000000686b0e05876f7ab4--