GNU bug report logs -
#29040
emacs-26 crash due to misaligned longjmp buffer in 64-bit MSYS2/MinGW-W64 build
Previous Next
Reported by: Richard Copley <rcopley <at> gmail.com>
Date: Sat, 28 Oct 2017 13:42:02 UTC
Severity: normal
Tags: fixed
Done: Richard Copley <rcopley <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Richard Copley <rcopley <at> gmail.com>
> Date: Sat, 28 Oct 2017 14:56:15 +0100
> Cc: "help-gnu-emacs <at> gnu.org" <help-gnu-emacs <at> gnu.org>, 29040 <at> debbugs.gnu.org
>
> > So my guess was correct, and we should ask the MinGW64 developers for
> > advice about using longjmp. Most probably, something in that area has
> > changed in recent releases of their runtime, because otherwise I
> > cannot explain to myself why these issues pop up only now.
>
> I thought Paul was of a differing opinion (see
> <http://lists.gnu.org/archive/html/emacs-devel/2017-10/msg00482.html>)
> but perhaps I'm mixing up different issues.
I'm not saying that this is a GCC bug. But maybe you are right, and
the changes in d7038020 exposed this problem. I would have thought it
was the other way around: the mis-alignment should have been fixed by
those changes, but the fact that the pretest doesn't have this problem
tells otherwise.
> Do I take it we don't get to allocate the jmp_buf ourselves?
It is a member of struct thread_state, and the struct itself should be
correctly aligned on the emacs-26 branch, AFAIU.
This bug report was last modified 7 years and 208 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.