GNU bug report logs - #42352
27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99

Previous Next

Package: emacs;

Reported by: Teemu Likonen <tlikonen <at> iki.fi>

Date: Tue, 14 Jul 2020 09:45:01 UTC

Severity: normal

Found in version 27.0.91

Done: Teemu Likonen <tlikonen <at> iki.fi>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42352 in the body.
You can then email your comments to 42352 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 09:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Teemu Likonen <tlikonen <at> iki.fi>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 14 Jul 2020 09:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change
 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 12:43:52 +0300
[Message part 1 (text/plain, inline)]
Emacs daemon crashes when scrolling through a buffer. I believe it
happens when buffer is trying to display Arabic letters that are in my
mail summary buffer. I used "git bisect" and found that this is the
first "bad" commit:


    commit 30a7ee505aca3cc285699bae1630a28185519d99
    Author: Eli Zaretskii <eliz <at> gnu.org>
    Date:   2020-06-05 10:56:01 +0300

        Fix Arabic shaping when eww/shr fill the text to be rendered

        * src/hbfont.c (hbfont_shape): Don't use DIRECTION if the current
        buffer has bidi reordering disabled.  (Bug#41005)


My Emacs daemon process is managed by systemd and the logs have this
backtrace:


    emacs[9121]: Backtrace:
    emacs[9121]: /usr/local/bin/emacs(+0x1385b7)[0x55e55be3c5b7]
    emacs[9121]: /usr/local/bin/emacs(+0x437ff)[0x55e55bd477ff]
    emacs[9121]: /usr/local/bin/emacs(+0x43c3c)[0x55e55bd47c3c]
    emacs[9121]: /usr/local/bin/emacs(+0x136f88)[0x55e55be3af88]
    emacs[9121]: /usr/local/bin/emacs(+0x137009)[0x55e55be3b009]
    emacs[9121]: /lib/x86_64-linux-gnu/libpthread.so.0(+0x12730)[0x7f0c4b462730]
    emacs[9121]: /usr/local/bin/emacs(+0xd8c80)[0x55e55bddcc80]
    emacs[9121]: /usr/local/bin/emacs(+0xdcff2)[0x55e55bde0ff2]
    emacs[9121]: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0(+0x9b5be)[0x7f0c4b70d
    emacs[9121]: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0(hb_shape_plan_execute
    emacs[9121]: /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0(hb_shape_full+0x46)[0
    emacs[9121]: /usr/local/bin/emacs(+0x1fe65c)[0x55e55bf0265c]
    emacs[9121]: /usr/local/bin/emacs(+0x1a3c4b)[0x55e55bea7c4b]
    emacs[9121]: /usr/local/bin/emacs(+0x193a03)[0x55e55be97a03]
    emacs[9121]: /usr/local/bin/emacs(+0x1c7471)[0x55e55becb471]
    emacs[9121]: /usr/local/bin/emacs(+0x195fba)[0x55e55be99fba]
    emacs[9121]: /usr/local/bin/emacs(+0x19395f)[0x55e55be9795f]
    emacs[9121]: /usr/local/bin/emacs(+0x1c7471)[0x55e55becb471]
    emacs[9121]: /usr/local/bin/emacs(+0x195fba)[0x55e55be99fba]
    emacs[9121]: /usr/local/bin/emacs(+0x19395f)[0x55e55be9795f]
    emacs[9121]: /usr/local/bin/emacs(+0x192ed6)[0x55e55be96ed6]
    emacs[9121]: /usr/local/bin/emacs(+0x5f425)[0x55e55bd63425]
    emacs[9121]: /usr/local/bin/emacs(+0x6c8ff)[0x55e55bd708ff]
    emacs[9121]: /usr/local/bin/emacs(+0x1e94b3)[0x55e55beed4b3]
    emacs[9121]: /usr/local/bin/emacs(+0x1ec86b)[0x55e55bef086b]
    emacs[9121]: /usr/local/bin/emacs(+0x7879b)[0x55e55bd7c79b]
    emacs[9121]: /usr/local/bin/emacs(+0x78332)[0x55e55bd7c332]
    emacs[9121]: /usr/local/bin/emacs(+0x769f5)[0x55e55bd7a9f5]
    emacs[9121]: /usr/local/bin/emacs(+0x7e658)[0x55e55bd82658]
    emacs[9121]: /usr/local/bin/emacs(+0x83dfb)[0x55e55bd87dfb]
    emacs[9121]: /usr/local/bin/emacs(+0x97fba)[0x55e55bd9bfba]
    emacs[9121]: /usr/local/bin/emacs(+0x9bafb)[0x55e55bd9fafb]
    emacs[9121]: /usr/local/bin/emacs(+0x192d9a)[0x55e55be96d9a]
    emacs[9121]: /usr/local/bin/emacs(+0x67154)[0x55e55bd6b154]
    emacs[9121]: /usr/local/bin/emacs(+0x875bd)[0x55e55bd8b5bd]
    emacs[9121]: /usr/local/bin/emacs(+0x129c67)[0x55e55be2dc67]
    emacs[9121]: /usr/local/bin/emacs(+0x12c5bc)[0x55e55be305bc]
    emacs[9121]: /usr/local/bin/emacs(+0x12dbfc)[0x55e55be31bfc]
    emacs[9121]: /usr/local/bin/emacs(+0x192d02)[0x55e55be96d02]
    emacs[9121]: /usr/local/bin/emacs(+0x11fad4)[0x55e55be23ad4]
    emacs[9121]: /usr/local/bin/emacs(+0x192c81)[0x55e55be96c81]
    emacs[9121]: ...
    systemd[1044]: emacs.service: Main process exited, code=killed, status=11/SEG
    systemd[1044]: emacs.service: Failed with result 'signal'.

-- 
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 10:21:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org, Teemu Likonen <tlikonen <at> iki.fi>,
 42352 <at> debbugs.gnu.org
Subject: Re: bug#42352: 27.0.91;
 Emacs daemon crashes after "Fix Arabic shaping" change
 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 13:20:34 +0300
On July 14, 2020 12:43:52 PM GMT+03:00, Teemu Likonen <tlikonen <at> iki.fi> wrote:
> Emacs daemon crashes when scrolling through a buffer. I believe it
> happens when buffer is trying to display Arabic letters that are in my
> mail summary buffer. I used "git bisect" and found that this is the
> first "bad" commit:
> 
> 
>     commit 30a7ee505aca3cc285699bae1630a28185519d99
>     Author: Eli Zaretskii <eliz <at> gnu.org>
>     Date:   2020-06-05 10:56:01 +0300
> 
>         Fix Arabic shaping when eww/shr fill the text to be rendered
> 
>      * src/hbfont.c (hbfont_shape): Don't use DIRECTION if the current
>         buffer has bidi reordering disabled.  (Bug#41005)
> 
> 
> My Emacs daemon process is managed by systemd and the logs have this
> backtrace:
> 
> 
>     emacs[9121]: Backtrace:
>     emacs[9121]: /usr/local/bin/emacs(+0x1385b7)[0x55e55be3c5b7]

Thanks, but please present the backtrace with the symbolic data: file name, function name, and line number information.  It is basically impossible to work with just the numeric addresses without having access to your system.

The Emacs user manual describes how to obtain the symbolic data in the "Crashing" node.

Also, I wonder how you came to be affected by that change.  Did you by any chance set bidi-display-reordering to nil in your buffers?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 10:21:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 10:57:01 GMT) Full text and rfc822 format available.

Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: bug-gnu-emacs <at> gnu.org,42352 <at> debbugs.gnu.org,tlikonen <at> iki.fi
Subject: Re: bug#42352: 27.0.91;
 Emacs daemon crashes after "Fix Arabic shaping" change
 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 13:55:59 +0300
On July 14, 2020 1:20:34 PM GMT+03:00, Eli Zaretskii <eliz <at> gnu.org> wrote:
> 
> Thanks, but please present the backtrace with the symbolic data: file
> name, function name, and line number information.  It is basically
> impossible to work with just the numeric addresses without having
> access to your system.
> 
> The Emacs user manual describes how to obtain the symbolic data in the
> "Crashing" node.
> 
> Also, I wonder how you came to be affected by that change.  Did you by
> any chance set bidi-display-reordering to nil in your buffers?

Also, please tell the version of HarfBuzz you have installed, because it looks like the crash happened inside HarfBuzz.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 10:57:02 GMT) Full text and rfc822 format available.

Reply sent to Teemu Likonen <tlikonen <at> iki.fi>:
You have taken responsibility. (Tue, 14 Jul 2020 11:06:02 GMT) Full text and rfc822 format available.

Notification sent to Teemu Likonen <tlikonen <at> iki.fi>:
bug acknowledged by developer. (Tue, 14 Jul 2020 11:06:02 GMT) Full text and rfc822 format available.

Message #22 received at 42352-done <at> debbugs.gnu.org (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: Eli Zaretskii <eliz <at> gnu.org>, 42352-done <at> debbugs.gnu.org
Subject: Re: bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic
 shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 14:05:01 +0300
[Message part 1 (text/plain, inline)]
Eli Zaretskii [2020-07-14T13:20:34+03] wrote:

> Also, I wonder how you came to be affected by that change. Did you by
> any chance set bidi-display-reordering to nil in your buffers?

Yes, about four years ago I set bidi-display-reordering nil in my Emacs
init files. Now it seems to me that I used a wrong variable for what I
wanted to do. I should have set bidi-paragraph-direction left-to-right
which I did now.

It looks like Emacs is not crashing anymore so this was all my mistake.
Thanks for mentioning bidi-display-reordering. I'm closing this bug.

-- 
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 11:40:02 GMT) Full text and rfc822 format available.

Message #25 received at 42352-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Teemu Likonen <tlikonen <at> iki.fi>,42352-done <at> debbugs.gnu.org
Subject: Re: bug#42352: 27.0.91;
 Emacs daemon crashes after "Fix Arabic shaping" change
 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 14:39:00 +0300
On July 14, 2020 2:05:01 PM GMT+03:00, Teemu Likonen <tlikonen <at> iki.fi> wrote:
> Eli Zaretskii [2020-07-14T13:20:34+03] wrote:
> 
> > Also, I wonder how you came to be affected by that change. Did you
> by
> > any chance set bidi-display-reordering to nil in your buffers?
> 
> Yes, about four years ago I set bidi-display-reordering nil in my
> Emacs
> init files. Now it seems to me that I used a wrong variable for what I
> wanted to do. I should have set bidi-paragraph-direction left-to-right
> which I did now.
> 
> It looks like Emacs is not crashing anymore so this was all my
> mistake.
> Thanks for mentioning bidi-display-reordering. I'm closing this bug.

Thanks.

I'd still like to know the version of HarfBuzz that you have, though, as it shouldn't have crashed for this scenario.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 12:32:02 GMT) Full text and rfc822 format available.

Message #28 received at 42352 <at> debbugs.gnu.org (full text, mbox):

From: Teemu Likonen <tlikonen <at> iki.fi>
To: Eli Zaretskii <eliz <at> gnu.org>, 42352 <at> debbugs.gnu.org
Subject: Re: bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic
 shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 15:31:26 +0300
[Message part 1 (text/plain, inline)]
Eli Zaretskii [2020-07-14T14:39:00+03] wrote:

> I'd still like to know the version of HarfBuzz that you have, though,
> as it shouldn't have crashed for this scenario.

Version 2.3.1 as packaged in Debian. Installed packages in my system:

gir1.2-harfbuzz-0.0/stable,now 2.3.1-1 amd64 [installed,automatic]
libharfbuzz-dev/stable,now 2.3.1-1 amd64 [installed,automatic]
libharfbuzz-gobject0/stable,now 2.3.1-1 amd64 [installed,automatic]
libharfbuzz-icu0/stable,now 2.3.1-1 amd64 [installed,automatic]
libharfbuzz0b/stable,now 2.3.1-1 amd64 [installed,automatic]

-- 
/// Teemu Likonen - .-.. http://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42352; Package emacs. (Tue, 14 Jul 2020 15:01:02 GMT) Full text and rfc822 format available.

Message #31 received at 42352 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Teemu Likonen <tlikonen <at> iki.fi>
Cc: 42352 <at> debbugs.gnu.org
Subject: Re: bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic
 shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
Date: Tue, 14 Jul 2020 17:59:54 +0300
> From: Teemu Likonen <tlikonen <at> iki.fi>
> Date: Tue, 14 Jul 2020 15:31:26 +0300
> 
> > I'd still like to know the version of HarfBuzz that you have, though,
> > as it shouldn't have crashed for this scenario.
> 
> Version 2.3.1 as packaged in Debian. Installed packages in my system:
> 
> gir1.2-harfbuzz-0.0/stable,now 2.3.1-1 amd64 [installed,automatic]
> libharfbuzz-dev/stable,now 2.3.1-1 amd64 [installed,automatic]
> libharfbuzz-gobject0/stable,now 2.3.1-1 amd64 [installed,automatic]
> libharfbuzz-icu0/stable,now 2.3.1-1 amd64 [installed,automatic]
> libharfbuzz0b/stable,now 2.3.1-1 amd64 [installed,automatic]

Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 12 Aug 2020 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 258 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.