unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>, 37575@debbugs.gnu.org
Subject: bug#37575: 27.0.50; Segfault on redisplay
Date: Thu, 3 Oct 2019 19:04:49 +0100	[thread overview]
Message-ID: <CAPM58ojHtfiA1A9Xamis0pNGuDTxCDumxvBX-9StB6jDYm7r2g@mail.gmail.com> (raw)
In-Reply-To: <83lfu17oeb.fsf@gnu.org>

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

On Thu, 3 Oct 2019 at 18:03, Eli Zaretskii <eliz@gnu.org> wrote:

> [Private email?]
>
> From: Richard Copley <rcopley@gmail.com>
> > Date: Wed, 2 Oct 2019 20:28:40 +0100
> >
> >  Hmm... I don't see how re_match_2_internal on line 4940 could possibly
> >  cause a fatal signal,
> >
> > Taking the backtrace at face value, clearly d pointed to invalid memory.
>
> Theoretically, yes.  I very much doubt that, but it would be good to
> examine the value of d (which I guess we cannot now?).
>

That's right.


> >  and that .chkstk in the backtrace is a hint of
> >  some stack-related problem.
> >
> > I don't follow. The entry is after the signal was raised, not before.
> Calling chkstk doesn't indicate a problem.
>
> chkstk is the function that probes the stack for whether it crossed
> the guard page at the end of the stack (a.k.a "stack overflow").  It
> is invoked internally by alloca (except that there's no alloca
> anywhere in sight near the code that allegedly blew up), and when
> allocating stack-based data.


The chktsk call is in ntdll!RtlRaiseException.


>   However, note that it is chkstk that
> ended up in the exception handler, which is at least weird.  IME, this
> more often than not happens when the code longjmp's on the wrong
> stack, which is why I asked about other threads.
>

We're nowhere near any longjmp.

> And given that chkstk is a leaf function, how do you deduce anything from
> its presence, except that there is
> > some flaw in GDB's backtrace generation or in its debug information for
> ntdll.dll?
>
> I deduce that because there should be no reason for chkstk itself to
> crash.
>

Again, the crash is before the chkstk in the backtrace, not after it.


> >    If you still have this crashed
> >  sesion inside GDB, please show the result of
> >
> >    (gdb) thread apply all bt
> >
> > I don't have it now.
>
> That's too bad.  And I guess this is not reproducible, either?
>

Doesn't seem to be.


> > If it happens again I'll try and get that. (Something in
> font-lock-keywords-alist, I suppose.)
>
> OK.
>

OK.

[-- Attachment #2: Type: text/html, Size: 3807 bytes --]

  parent reply	other threads:[~2019-10-03 18:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-01 19:17 bug#37575: 27.0.50; Segfault on redisplay Richard Copley
2019-10-02 14:50 ` Eli Zaretskii
     [not found]   ` <CAPM58ohhyJJditvN=5qtScnMkTtXp1G=7u3xBEVwQkk=jDF6EQ@mail.gmail.com>
     [not found]     ` <83lfu17oeb.fsf@gnu.org>
2019-10-03 18:04       ` Richard Copley [this message]
2019-10-03 18:38         ` Richard Copley
2019-10-03 18:57           ` Eli Zaretskii
2019-10-03 19:19             ` Richard Copley
2019-10-03 18:44         ` Eli Zaretskii
2020-01-20 19:07         ` Stefan Kangas
2020-01-21 17:47           ` Richard Copley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAPM58ojHtfiA1A9Xamis0pNGuDTxCDumxvBX-9StB6jDYm7r2g@mail.gmail.com \
    --to=rcopley@gmail.com \
    --cc=37575@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).