[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#38748: 28.0.50; crash on MacOS 10.15.2
From: |
Pip Cet |
Subject: |
bug#38748: 28.0.50; crash on MacOS 10.15.2 |
Date: |
Wed, 8 Jan 2020 19:18:15 +0000 |
On Wed, Jan 8, 2020 at 5:40 PM Robert Pluim <rpluim@gmail.com> wrote:
> >> But I found the commit after which error is occurs:> >>
> b2949d39261e82c33572ba8a250298ef0b165b95
> >>
> >> Commenting out that 'ok = false;' line make Emacs works without errors.
>
> I can confirm this.
I think we should disassemble the two versions and see where the
differences are, unless this is too difficult because of inlining. Can
you provide compiler details?
> Eli> I cannot explain how that change could cause any harm. Here's the
> Eli> relevant code fragment:
> Eli> So how could the initial value of 'ok' matter here? What am I
> Eli> missing?
I think it's likely to be the stack thing; the ok = false might make
the difference between allocating inherited_attrs on the stack once
and doing so once per recursion of face_inherited_attr. The latter
case might lead to a stack overflow more easily.
> Yes. Iʼll note that when this happens there are over 9000 stackframes,
> so perhaps itʼs stack exhaustion. macOS has a default stack of 8192
> kB, Iʼll see if increasing it helps.
That does sound like infinite recursion, or infinite recursion waiting
for something to change asynchronously that breaks the loop. If the
"ok = false" prevents the compiler from recognizing
face_inherited_attr is effectively tail-recursive, that might be it?
Changing the line to "ok = true" would be an interesting experiment.
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Andrii Kolomoiets, 2020/01/01
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Eli Zaretskii, 2020/01/02
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Robert Pluim, 2020/01/08
- bug#38748: 28.0.50; crash on MacOS 10.15.2,
Pip Cet <=
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Eli Zaretskii, 2020/01/08
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Pip Cet, 2020/01/08
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Eli Zaretskii, 2020/01/08
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Pip Cet, 2020/01/10
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Eli Zaretskii, 2020/01/10
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Robert Pluim, 2020/01/10
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Eli Zaretskii, 2020/01/10
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Robert Pluim, 2020/01/10
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Pankaj Jangid, 2020/01/11
- bug#38748: 28.0.50; crash on MacOS 10.15.2, Eli Zaretskii, 2020/01/11