From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#74966: 31.0.50; Crash report (using igc on macOS) Date: Sat, 21 Dec 2024 09:26:24 -0500 Message-ID: References: <86a5cqkc2g.fsf@gnu.org> <86o716ah09.fsf@gnu.org> <87r062jpi1.fsf@protonmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35372"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?UTF-8?Q?M=C3=B6llmann?= , spd@toadstyle.org, Eli Zaretskii , acorallo@gnu.org, 74966@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 21 15:27:19 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 1tP0Rp-0008xS-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 21 Dec 2024 15:27:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP0Rc-00043T-JT; Sat, 21 Dec 2024 09:27:04 -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 1tP0Ra-00043C-P8 for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 09:27:02 -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 1tP0Ra-0002tb-DW for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 09:27:02 -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:Date:References:In-Reply-To:From:To:Subject; bh=Qf/g/m5k3CWQR8U8f3m8ZjCFm8HGD/Dq6AOcQjH6Nd0=; b=DUOe6Dtosds7rmhXbmo8yCkqjmqIr70U374hoQYqqIGKxj2DySsbLEayXnSXKBswdhL3NdPmY/p9m1RTgFi4UoWLI9ue/UU1du79PnmwktXvagDr2eU70ZQSkoy8daxCz2ndMyJ2BhNJKoyuVEnsvnTi5h2MId9ZEMvd/hsp+4sgfsQBzLULFwdVsXDK9jr78GHeYXadEx2kVEUn00S2LO7urlJpBGDM3D+jjz4OS+eZ/ZHgyiljU/XRNIDogTS1DjB0JcmSsnqn1lfmrXpxr2w7ik7O7RAkbNjYDFFSHPyCro/iNo4J+xEwIrW6cilbc9SrZoutUP4sr/0Kg+jdUw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tP0Ra-00060m-8k for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2024 09:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Dec 2024 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74966 X-GNU-PR-Package: emacs Original-Received: via spool by 74966-submit@debbugs.gnu.org id=B74966.173479120023080 (code B ref 74966); Sat, 21 Dec 2024 14:27:02 +0000 Original-Received: (at 74966) by debbugs.gnu.org; 21 Dec 2024 14:26:40 +0000 Original-Received: from localhost ([127.0.0.1]:45805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP0RD-00060A-8o for submit@debbugs.gnu.org; Sat, 21 Dec 2024 09:26:39 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:17651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tP0RA-0005zr-Ew for 74966@debbugs.gnu.org; Sat, 21 Dec 2024 09:26:37 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1657C807F5; Sat, 21 Dec 2024 09:26:31 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1734791186; bh=cLlExuJodzfcTiPfRc7FDUrvT7Z0GODJ+JJIMBr/A/Y=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=bQxVQHNss4LLsdt3yc3bF3KG+L/TanZWaiGRY9yuc3gSM6rDE4Fm01Zhf4qYykydV DKmqUS/NtfIyPYx2EL73Ht5LITL+BJ3ySkm68L73gpFJlplTeYuIMjgeOnO3gAcsu9 SFCdpuVXrBHDr/Fk7kewD6ajk1Q9hnRa3NT4dTRFK9OrFae/8WVs+IdSqBbWl8rfVf YIIKnQCIWX5a1BF4SR3cnn/1UYmpG6LktRIglEz0TtkDMbV7HAp2YjJ2bfFuv6eZ1W fQn41Rfb/Hu+Jt/Ch/fAb1t6cjfcv1s6xx57a0D/IuY1vDeK8K22bc3tybVbQJXOf8 /2MdAPrRmONTg== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1B27280289; Sat, 21 Dec 2024 09:26:26 -0500 (EST) Original-Received: from asado (unknown [199.119.74.1]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B5E3D120480; Sat, 21 Dec 2024 09:26:25 -0500 (EST) In-Reply-To: <87r062jpi1.fsf@protonmail.com> (Pip Cet's message of "Fri, 20 Dec 2024 16:20:32 +0000") 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:297527 Archived-At: >> `offset` here should be fixnum that gives the position of this docstring >> in the DOC file. And FUN should be a function for which we found > > Yes, but the nativecomp code assumes ->doc is an index into a > nativecomp'd subr's constant vector. Aha! > So we overwrite it with a docfile > index, access an out-of-bounds index and crash. > > I think the best thing to do is to use separate fields for the "offset" > doc and the "index" doc; or at least, the second best thing, after > removing the entire docfile hack. I think a much simpler change is to use the sign bit to distinguish indices into the constant vector from indices into the DOC file. Stefan