unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: 52141@debbugs.gnu.org
Subject: bug#52141: 29.0.50; Crash during redisplay
Date: Sat, 27 Nov 2021 13:20:51 +0200	[thread overview]
Message-ID: <83sfvhzvxo.fsf@gnu.org> (raw)
In-Reply-To: <87o865c13p.fsf@yahoo.com> (bug-gnu-emacs@gnu.org)

> Date: Sat, 27 Nov 2021 19:03:06 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> 
> I was typing a random document to test something, and I got the
> following crash out of the blue:
> 
> #0  0x00007f201abbc85c in __pthread_kill_implementation () at /lib64/libc.so.6
> #1  0x00007f201ab6f6b6 in raise () at /lib64/libc.so.6
> #2  0x000000000041b6aa in terminate_due_to_signal (sig=sig@entry=11, backtrace_limit=backtrace_limit@entry=40) at emacs.c:443
> #3  0x000000000041bb29 in handle_fatal_signal (sig=sig@entry=11) at sysdep.c:1780
> #4  0x000000000051b9d8 in deliver_thread_signal (sig=sig@entry=11, handler=0x41bb1e <handle_fatal_signal>) at sysdep.c:1772
> #5  0x000000000051ba49 in deliver_fatal_thread_signal (sig=11) at sysdep.c:1792
> #6  handle_sigsegv (sig=11, siginfo=<optimized out>, arg=<optimized out>) at sysdep.c:1885
> #7  0x00007f201ab6f760 in <signal handler called> () at /lib64/libc.so.6
> #8  0x000000000055c6b1 in make_lisp_ptr (type=<optimized out>, ptr=<optimized out>)
>     at /home/oldosfan/emacs-dev/emacs-gc/src/lisp.h:1269
> #9  set_next_vectorPython Exception <class 'gdb.MemoryError'>: Cannot access memory at address 0xfe94cc8
>  (p=#10 setup_on_free_list (nbytes=<optimized out>, v=0x2ce6c10) at alloc.c:2977
> #11 sweep_vectors () at alloc.c:3242
> #12 0x0000000000561328 in gc_sweep () at alloc.c:7255
> #13 garbage_collect () at alloc.c:6190
> #14 0x0000000000561811 in maybe_garbage_collect () at alloc.c:6053
> #15 0x00000000005804ad in maybe_gc () at /home/oldosfan/emacs-dev/emacs-gc/src/lisp.h:5161
> #16 eval_sub (form=0x1e753d3) at eval.c:2449
> #17 0x0000000000582149 in Feval (form=0x1e753d3, lexical=<optimized out>) at eval.c:2372
                                   ^^^^
What is this form we are evaluating here?  Can you show its contents?
(Not that I think it is related to the crash.)

Basically, GC was triggered by that evaluation, and it found some bad
memory in some vector that it wanted to put on the free list.  The
challenge is to determine which Lisp vector caused that bad memory.
Try looking at the data in frames 10 and 9 to figure out what was that
bad vector.





  reply	other threads:[~2021-11-27 11:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87o865c13p.fsf.ref@yahoo.com>
2021-11-27 11:03 ` bug#52141: 29.0.50; Crash during redisplay Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-27 11:20   ` Eli Zaretskii [this message]
2021-11-27 11:32     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-27 11:37       ` Eli Zaretskii
2021-11-27 12:01         ` Andreas Schwab
2021-11-27 15:59         ` Daniel Martín via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-11-27 16:56           ` Eli Zaretskii
2021-11-28  0:43           ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=83sfvhzvxo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=52141@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    /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).