all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
@ 2020-07-14  9:43 Teemu Likonen
  2020-07-14 10:20 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2020-07-14  9:43 UTC (permalink / raw)
  To: 42352

[-- Attachment #1: Type: text/plain, Size: 3737 bytes --]

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@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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
  2020-07-14  9:43 bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99 Teemu Likonen
@ 2020-07-14 10:20 ` Eli Zaretskii
  2020-07-14 10:55   ` Eli Zaretskii
  2020-07-14 11:05   ` Teemu Likonen
  0 siblings, 2 replies; 7+ messages in thread
From: Eli Zaretskii @ 2020-07-14 10:20 UTC (permalink / raw)
  To: 42352, tlikonen

On July 14, 2020 12:43:52 PM GMT+03:00, Teemu Likonen <tlikonen@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@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?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
  2020-07-14 10:20 ` Eli Zaretskii
@ 2020-07-14 10:55   ` Eli Zaretskii
  2020-07-14 11:05   ` Teemu Likonen
  1 sibling, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2020-07-14 10:55 UTC (permalink / raw)
  To: 42352, tlikonen

On July 14, 2020 1:20:34 PM GMT+03:00, Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
  2020-07-14 10:20 ` Eli Zaretskii
  2020-07-14 10:55   ` Eli Zaretskii
@ 2020-07-14 11:05   ` Teemu Likonen
  2020-07-14 11:39     ` Eli Zaretskii
  1 sibling, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2020-07-14 11:05 UTC (permalink / raw)
  To: Eli Zaretskii, 42352-done

[-- Attachment #1: Type: text/plain, Size: 685 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
  2020-07-14 11:05   ` Teemu Likonen
@ 2020-07-14 11:39     ` Eli Zaretskii
  2020-07-14 12:31       ` Teemu Likonen
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2020-07-14 11:39 UTC (permalink / raw)
  To: Teemu Likonen, 42352-done

On July 14, 2020 2:05:01 PM GMT+03:00, Teemu Likonen <tlikonen@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
  2020-07-14 11:39     ` Eli Zaretskii
@ 2020-07-14 12:31       ` Teemu Likonen
  2020-07-14 14:59         ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Teemu Likonen @ 2020-07-14 12:31 UTC (permalink / raw)
  To: Eli Zaretskii, 42352

[-- Attachment #1: Type: text/plain, Size: 691 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 251 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99
  2020-07-14 12:31       ` Teemu Likonen
@ 2020-07-14 14:59         ` Eli Zaretskii
  0 siblings, 0 replies; 7+ messages in thread
From: Eli Zaretskii @ 2020-07-14 14:59 UTC (permalink / raw)
  To: Teemu Likonen; +Cc: 42352

> From: Teemu Likonen <tlikonen@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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-07-14 14:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-14  9:43 bug#42352: 27.0.91; Emacs daemon crashes after "Fix Arabic shaping" change 30a7ee505aca3cc285699bae1630a28185519d99 Teemu Likonen
2020-07-14 10:20 ` Eli Zaretskii
2020-07-14 10:55   ` Eli Zaretskii
2020-07-14 11:05   ` Teemu Likonen
2020-07-14 11:39     ` Eli Zaretskii
2020-07-14 12:31       ` Teemu Likonen
2020-07-14 14:59         ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.