From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74747: 30.0.92; scratch/igc: crashes when executing M-x list-packages Date: Mon, 09 Dec 2024 16:02:22 +0000 Message-ID: <87frmwhmkk.fsf@protonmail.com> References: <87seqw7ux9.fsf@no.lan> Reply-To: Pip Cet Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9878"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregor Zattler To: 74747@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 09 17:03:32 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tKgEN-0002La-SI for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 09 Dec 2024 17:03:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKgDx-0002Vb-Di; Mon, 09 Dec 2024 11:03:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tKgDv-0002VS-TQ for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 11:03:04 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKgDv-0000Tt-78 for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 11:03:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:From:Date:To:Subject; bh=zf8+XNDlIKkaYF0ntFZ6KdUYr37uZj/oJIbHWNx+JZs=; b=ZfLf3vlkaKpi/aNQHsyTufF6FGzk0XCOO+o82aqMLaU0yh+3aajDAP8uWulxYcGKRUUBCx/7tVYLiIlwbRKOhkC25UWr9GIGqJLG2yz43P7hqKA9nKdAL9L4vE563zmIhYmi2unWtuWRFTMbpCVvY5KRLhQmlKmvscz82Ei6w11yVih9w5UEx2k0YPMaTBdcNl4K2glEkrosY21LT4wkKL7uT1Pp/xqd2uvpcAzXi1yIEwcwUl6oHw0Y//TswMJ1ihxrweqi1Y2O9tV5+t9lKusvAuJT5YonwsAS6j1cDMneLza6efw2cO1pAtd+zxnGlc5ujihP9j18kRKxZgJDNA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tKgDu-00052U-5k for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2024 11:03:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Dec 2024 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74747 X-GNU-PR-Package: emacs Original-Received: via spool by 74747-submit@debbugs.gnu.org id=B74747.173376015919323 (code B ref 74747); Mon, 09 Dec 2024 16:03:02 +0000 Original-Received: (at 74747) by debbugs.gnu.org; 9 Dec 2024 16:02:39 +0000 Original-Received: from localhost ([127.0.0.1]:55268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKgDW-00051b-Oz for submit@debbugs.gnu.org; Mon, 09 Dec 2024 11:02:39 -0500 Original-Received: from mail-10631.protonmail.ch ([79.135.106.31]:27155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tKgDU-00051H-Ba for 74747@debbugs.gnu.org; Mon, 09 Dec 2024 11:02:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733760149; x=1734019349; bh=zf8+XNDlIKkaYF0ntFZ6KdUYr37uZj/oJIbHWNx+JZs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=O1C7PltiKGLIby+nRhVe6sgcSp3JQC5am3tIlLFTYzx5Ab8X1kjw1aLaw/u9nv91p nb/kb8GbGROYMi9QKMax7XmuVve2ZMFIGAKBTbVwRZW75vRiScdGq6kzEm2pmrTFEm 2HHgBF8sQliEz8zq4YcHECXas4QbqAKVqh2C9w+cZG+PwPRwS3pxqopqmwG8x41Pr4 SxY1f8mrZDfJOpRnigOpNT8nV47MXtIE9+ybIXSzpbWMcgCYL9Ppw3ac2aKUTf2dih de+0yjk1ieNk7CFUKNtoJPKa4nEWLxTfzY7MEBlR0+bbFOrnrGcPQ4FztjtRzgaOiL dSpkHU80LcuyQ== In-Reply-To: <87seqw7ux9.fsf@no.lan> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 9075e51bf3e841ce8024092bed9de7731296ca94 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296704 Archived-At: "Gregor Zattler via \"Bug reports for GNU Emacs, the Swiss army knife of te= xt editors\"" 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=3D"${USER_EMACS_DIRECTORY}" --fg-daemon=3D"${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=3Dsig@entry=3D6, backtrace_lim= it=3Dbacktrace_limit@entry=3D2147483647) at ./src/emacs.c:432 > 432=09{ > #0 terminate_due_to_signal (sig=3Dsig@entry=3D6, backtrace_limit=3Dbackt= race_limit@entry=3D2147483647) at ./src/emacs.c:432 > #1 0x00005555557d7c44 in set_state (state=3Dstate@entry=3DIGC_STATE_DEAD= ) at ./src/igc.c:858 > #2 0x00005555557d7c78 in igc_assert_fail (file=3Dfile@entry=3D0x55555590= 2930 "igc.c", line=3Dline@entry=3D586, msg=3Dmsg@entry=3D0x5555559022d0 "he= ader_type (h) =3D=3D IGC_OBJ_PAD || nbytes >=3D sizeof (struct igc_fwd)") a= t ./src/igc.c:209 > #3 0x00005555557d8413 in obj_size (h=3Dh@entry=3D0x555555f991a0 ) at ./src/igc.c:586 > #4 0x00005555557d843d in igc_check_fwd (client=3Dclient@entry=3D0x555555= f991a0 , is_vector=3Dis_vector@entry=3Dtrue) at ./src/igc.c:72= 9 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