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
[Message part 1 (text/plain, inline)]
Eli Zaretskii wrote:
> Thanks, but I think the resulting code is confusing. E.g.:
>
> static struct thread_state GCALIGNED main_thread;
>
> This looks like we ask main_thread to be 8-byte aligned, which would
> bring back the problems we had before.
I attempted to clarify this by installing the first attached patch into the
emacs-26 branch. This patch adds a comment to the definition of GCALIGNED. If
the name "GCALIGNED" itself is confusing, we can systematically change the name
to something else. (The name doesn't confuse me, but perhaps I'm too close to
the code.)
> I don't know anything about that code, and I don't think anyone does.
> Who will tell us that the comment is still accurate?
Since MSVC is no longer relevant, it doesn't matter whether the comment about
MSVC is accurate, and we can remove it.
> Anything that is conditioned by _MSC_VER can go.
I did that by installing the second attached patch into 'master'. This affects
only the mainline code; I didn't fiddle with the MS-Windows-only files since I
can't easily test them.
[0001-src-lisp.h-GCALIGNED-Clarify-comment-Bug-29040.patch (text/x-patch, attachment)]
[0001-Simplify-by-assuming-_MSC_VER.patch (text/x-patch, attachment)]
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.