GNU bug report logs -
#74747
30.0.92; scratch/igc: crashes when executing M-x list-packages
Previous Next
Reported by: Gregor Zattler <telegraph <at> gmx.net>
Date: Mon, 9 Dec 2024 15:13:02 UTC
Severity: normal
Found in version 30.0.92
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 74747 <at> debbugs.gnu.org (full text, mbox):
"Gregor Zattler via \"Bug reports for GNU Emacs, the Swiss army knife of text editors\"" <bug-gnu-emacs <at> gnu.org> writes:
> Dear Emacs-developers, Gerd,
>
> Emacs from scratch/igc started with -Q
> crashes when I do M-X list-packages. I
> produced some gdb output, see below.
> I wondered, if such random bug reports
> are of interest for scratch/igc at all
> (if not, please drop this bug report,
> it's in no way crucial to me) and if it
> is appropriate to post them to the bug
> tracker. I think it would be helpful if
> README-IGC would answer this two
> questions.
That's an excellent suggestion, I think we'll update it to make clearer
that bug reports such as this one are appreciated and that they should
go to the ordinary Emacs bug list.
> I'm happy to answer very specifically
> specified questions.
Is this reproducible, or did it just happen once?
> Regards, gregor
>
>
> Starting program: /home/grfz/src/emacs-igc/src/emacs --debug-init -Q -xrm --init-directory="${USER_EMACS_DIRECTORY}" --fg-daemon="${EMACS_SERVER_NAME}"
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> [Detaching after vfork from child process 823489]
> [Detaching after vfork from child process 823490]
> [Detaching after vfork from child process 823491]
>
> Breakpoint 1, terminate_due_to_signal (sig=sig <at> entry=6, backtrace_limit=backtrace_limit <at> entry=2147483647) at ./src/emacs.c:432
> 432 {
> #0 terminate_due_to_signal (sig=sig <at> entry=6, backtrace_limit=backtrace_limit <at> entry=2147483647) at ./src/emacs.c:432
> #1 0x00005555557d7c44 in set_state (state=state <at> entry=IGC_STATE_DEAD) at ./src/igc.c:858
> #2 0x00005555557d7c78 in igc_assert_fail (file=file <at> entry=0x555555902930 "igc.c", line=line <at> entry=586, msg=msg <at> entry=0x5555559022d0 "header_type (h) == IGC_OBJ_PAD || nbytes >= sizeof (struct igc_fwd)") at ./src/igc.c:209
> #3 0x00005555557d8413 in obj_size (h=h <at> entry=0x555555f991a0 <main_thread>) at ./src/igc.c:586
> #4 0x00005555557d843d in igc_check_fwd (client=client <at> entry=0x555555f991a0 <main_thread>, is_vector=is_vector <at> entry=true) at ./src/igc.c:729
So we're crashing in obj_size on the main_thread object's MPS header,
which should have been set by the gc_init_header call in
syms_of_threads, but I suspect it was zeroed out at the time the dump
was produced.
If you still have the gdb session, can you "p main_thread" and reproduce
the output here? I suspect that something has overwritten the
main_thread MPS header, but I don't understand how that could have
happened.
Thanks!
Pip
This bug report was last modified 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.