From unknown Sun Jun 15 14:44:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 19:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44968@debbugs.gnu.org Cc: Gerry Agbobada X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16067661804786 (code B ref -1); Mon, 30 Nov 2020 19:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Nov 2020 19:56:20 +0000 Received: from localhost ([127.0.0.1]:56758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjpHY-0001F7-FJ for submit@debbugs.gnu.org; Mon, 30 Nov 2020 14:56:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:47728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjpHW-0001F0-W8 for submit@debbugs.gnu.org; Mon, 30 Nov 2020 14:56:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjpHW-000623-N3 for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 14:56:18 -0500 Received: from mab.sdf.org ([205.166.94.33]:39220 helo=ma.sdf.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjpHU-0005K3-St for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 14:56:18 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kjpHN-0007ij-94; Mon, 30 Nov 2020 19:56:09 +0000 From: Andrea Corallo Date: Mon, 30 Nov 2020 19:56:09 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=205.166.94.33; envelope-from=akrl@sdf.org; helo=ma.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Reported by Gerry Agbobada, reproducer: ============ ;; -*- lexical-binding: t -*- (defun rustic-flycheck-dirs-list (start end) "Return a list of directories from START (inclusive) to END (exclusive). E.g., if START is '/a/b/c/d' and END is '/a', return the list '(/a/b/c/d /a/b/c /a/b) in this order. START and END are strings representing file paths. END should be above START in the file hierarchy; if not, the list stops at the root of the file hierarchy." (let ((dirlist) (dir (expand-file-name start)) (end (expand-file-name end))) (while (not (or (equal dir (car dirlist)) ; avoid infinite loop (file-equal-p dir end))) (push dir dirlist) (setq dir (directory-file-name (file-name-directory dir)))) (nreverse dirlist))) (native-compile #'rustic-flycheck-dirs-list) (message "%s" (rustic-flycheck-dirs-list "/tmp/test/foo" "/tmp")) =========== From unknown Sun Jun 15 14:44:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 23:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Gerry Agbobada Cc: 44968@debbugs.gnu.org Received: via spool by 44968-submit@debbugs.gnu.org id=B44968.16067783997792 (code B ref 44968); Mon, 30 Nov 2020 23:20:02 +0000 Received: (at 44968) by debbugs.gnu.org; 30 Nov 2020 23:19:59 +0000 Received: from localhost ([127.0.0.1]:57045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjsSd-00021c-9W for submit@debbugs.gnu.org; Mon, 30 Nov 2020 18:19:59 -0500 Received: from mab.sdf.org ([205.166.94.33]:48410 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjsSb-00021T-7f for 44968@debbugs.gnu.org; Mon, 30 Nov 2020 18:19:57 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kjsSZ-0003FJ-Qp; Mon, 30 Nov 2020 23:19:55 +0000 From: Andrea Corallo References: Date: Mon, 30 Nov 2020 23:19:55 +0000 In-Reply-To: (Andrea Corallo via's message of "Mon, 30 Nov 2020 19:56:09 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Gerry, 21104e6808 fix this for me. Would you like to give it a try and confirm? Thanks! Andrea From unknown Sun Jun 15 14:44:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' Resent-From: "Gerry Agbobada" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Nov 2020 23:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Andrea Corallo" Cc: 44968@debbugs.gnu.org Received: via spool by 44968-submit@debbugs.gnu.org id=B44968.16067796379823 (code B ref 44968); Mon, 30 Nov 2020 23:41:01 +0000 Received: (at 44968) by debbugs.gnu.org; 30 Nov 2020 23:40:37 +0000 Received: from localhost ([127.0.0.1]:57083 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjsma-0002YM-Tp for submit@debbugs.gnu.org; Mon, 30 Nov 2020 18:40:37 -0500 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:48571) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjsmA-0002XO-7n for 44968@debbugs.gnu.org; Mon, 30 Nov 2020 18:40:11 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 6549B10DC; Mon, 30 Nov 2020 18:40:04 -0500 (EST) Received: from imap9 ([10.202.2.59]) by compute1.internal (MEProxy); Mon, 30 Nov 2020 18:40:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gagbo.net; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=vcDQLnHrM6ko8cNUne4eCBK+1RiI6E4 YBFo6UW3/JwQ=; b=nPXVFBpWHNhhk9CpmAj1FJK0ZCGSQjW83SGjvJ8M7Nu0qVn MIP5wENg4JchjzTlO1zVaMv9dzcALd6Rxakpd8pJ8YrdleWLAzeKcnmjaLijo8eZ bAA6YK3dImxFSNjUqE7cE79z7gpAAFuNOoOmGLhNPQNJZjUNoSw2c4K9Z+vNXciL Qic5O2uU3EToZo40r24kv48X9rQ6TWY7WbGBiXhfmJNmt0vzYBjrLFA9mxMsLNiR pVqlwxoXrCHzSylyqI8CgCaM4GAYxQXzkfEbiZnjE42DByJfRr1yvur/SvBvXc+v tKXysBud6Wqjm2NzfPVfQawoPCLwMtADsdyHyjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vcDQLn HrM6ko8cNUne4eCBK+1RiI6E4YBFo6UW3/JwQ=; b=RhOgNcO1/6tuXNSLngJ/GL bk6X5TCnzzH3kJrwnSiZPW7/7s2Qhj0r1JSoOcbI2XZp1coBR4Y6osq45bxlrUwB NO1p/DX/iwOdvqqu4rGOaENRSXty+ADhSwIo7QBeIh88tLIvmkWDGvS/Gw41uk4R sG2c0q++al4cZeGXXOZxdmN8sfo0SqiCFPp5FY6o2Q/yJemI5zVE+vY9ACEhS/QJ 7SpBAmwZ7RTUX3XPTKhtUTagVy48ZWfJSRbiLE8C+J+3p8VUEUgZFTacA0fdZaow oIS3KE1GfrlhAIQP2MPv81sE5aYTpQlvImJ7pWfR3tJCigxuGfUlED3QklDMNVpA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeiuddguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerreejnecuhfhrohhmpedfifgvrhhrhicutehgsghosggruggrfdcuoehgvghrrhih sehgrghgsghordhnvghtqeenucggtffrrghtthgvrhhnpeejgfefudfgheehffeuudeuve fgledvleeiteeihfdvleevueekleettedvteeggeenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehgvghrrhihsehgrghgsghordhnvght X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 989BC1C006D; Mon, 30 Nov 2020 18:40:03 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-622-g4a97c0b-fm-20201115.001-g4a97c0b3 Mime-Version: 1.0 Message-Id: <8be09ad3-2800-4083-9841-3888110438c1@www.fastmail.com> In-Reply-To: References: Date: Tue, 01 Dec 2020 00:37:37 +0100 From: "Gerry Agbobada" Content-Type: multipart/alternative; boundary=f74ec3e9fde9437ca074c9cece90d9f3 X-Spam-Score: -0.7 (/) X-Mailman-Approved-At: Mon, 30 Nov 2020 18:40:35 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --f74ec3e9fde9437ca074c9cece90d9f3 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable On Tue, Dec 1, 2020, at 00:19, Andrea Corallo wrote: >=20 > 21104e6808 fix this for me. >=20 > Would you like to give it a try and confirm? >=20 Hi Andrea, I=E2=80=99ll try, although I=E2=80=AFmust admit that I=E2=80=99ve been u= sing Andrew=E2=80=99s build recipe, so it might take me longer to build = from source again to check. Thanks for the help, I=E2=80=99ll look at the commit to see if I underst= and something :) Gerry=20 --f74ec3e9fde9437ca074c9cece90d9f3 Content-Type: text/html;charset=utf-8 Content-Transfer-Encoding: quoted-printable
On Tu= e, Dec 1, 2020, at 00:19, Andrea Corallo wrote:

21104e6808 fix= this for me.

Would you like to give it a t= ry and confirm?

Hi A= ndrea,

I=E2=80=99ll try, although I=E2= =80=AFmust admit that I=E2=80=99ve been using Andrew=E2=80=99s build rec= ipe, so it might take me longer to build from source again to check.
=

Thanks for the help, I=E2=80=99ll look at the = commit to see if I understand something :)

Gerry

--f74ec3e9fde9437ca074c9cece90d9f3-- From unknown Sun Jun 15 14:44:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Dec 2020 09:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Gerry Agbobada" Cc: 44968@debbugs.gnu.org Received: via spool by 44968-submit@debbugs.gnu.org id=B44968.160681408515513 (code B ref 44968); Tue, 01 Dec 2020 09:15:02 +0000 Received: (at 44968) by debbugs.gnu.org; 1 Dec 2020 09:14:45 +0000 Received: from localhost ([127.0.0.1]:57769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk1kC-000429-Mo for submit@debbugs.gnu.org; Tue, 01 Dec 2020 04:14:44 -0500 Received: from mab.sdf.org ([205.166.94.33]:56844 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk1k6-00041u-Mn for 44968@debbugs.gnu.org; Tue, 01 Dec 2020 04:14:43 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kk1k3-0008Ih-In; Tue, 01 Dec 2020 09:14:35 +0000 From: Andrea Corallo References: <8be09ad3-2800-4083-9841-3888110438c1@www.fastmail.com> Date: Tue, 01 Dec 2020 09:14:35 +0000 In-Reply-To: <8be09ad3-2800-4083-9841-3888110438c1@www.fastmail.com> (Gerry Agbobada's message of "Tue, 01 Dec 2020 00:37:37 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Gerry Agbobada" writes: > Thanks for the help, I=E2=80=99ll look at the commit to see if I understa= nd something :) Dumping Limple (setf comp-verbose 3) we can see how the call to `car' as: (call car #s(comp-mvar (cons) (nil) nil 15178090 6)) (cons) is the typeset slot of the mvar, (nil) is the valset. This implies the the mvar may be during execution *or* a cons *or* assume value nil. Hence the fix to `comp-mvar-cons-p' in the commit. Without this `comp-mvar-cons-p' was returning t and the backend was erroneously generating code on this false assumption. Indeed at the first iteration of your reproducer the argument of car is nil and not a cons, and so the crash. Andrea From unknown Sun Jun 15 14:44:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' Resent-From: "Gerry Agbobada" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Dec 2020 11:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44968 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Andrea Corallo" Cc: 44968@debbugs.gnu.org Received: via spool by 44968-submit@debbugs.gnu.org id=B44968.160682099410881 (code B ref 44968); Tue, 01 Dec 2020 11:10:02 +0000 Received: (at 44968) by debbugs.gnu.org; 1 Dec 2020 11:09:54 +0000 Received: from localhost ([127.0.0.1]:58050 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk3Xd-0002pR-QC for submit@debbugs.gnu.org; Tue, 01 Dec 2020 06:09:53 -0500 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:33763) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk3Xb-0002pA-Ai for 44968@debbugs.gnu.org; Tue, 01 Dec 2020 06:09:52 -0500 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 7A1F21340; Tue, 1 Dec 2020 06:09:45 -0500 (EST) Received: from imap9 ([10.202.2.59]) by compute1.internal (MEProxy); Tue, 01 Dec 2020 06:09:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gagbo.net; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm2; bh=dmQf/fewbL5Y2ciDKLJJqVNB3sICzJl 9Ek1fgiTSMI4=; b=n/K3U6rIFjPVh4vkAv31jKzHxML8DTHV9mwZAKZ/BxDGEVu ouZrY3a8ZOJkD0JhPQEdLr6lkNKlx6CVTxZIz1WpkGMzyxnT8HnjlkwjGliTOPmG GX7o/TvPup6myRlm1LuRriJAADh4n8Byw3ck5fYFiW9hTK1yrPOmeyd+hmfq6Fk2 S01RRKtt2ZgY0PmIEOoAQBympkDcPSoqNZa86y+MCvzxd4WeEqFV2/74/0Xhfa5X LujWvcItob9E9NvDc/bCnO3IzpTcPSY0LtCuToVKgZv8ySJlR7v3H+PBN1ZK4TH+ jLZyixQ3IHpPIv8Exaz66OLIQLYA+bCSjD07/uw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=dmQf/f ewbL5Y2ciDKLJJqVNB3sICzJl9Ek1fgiTSMI4=; b=YK0kDj2RFbrgevV3sAHKnR 80y7AZB+1LaWZzb3QWq95qr/wlNQ7UO9LU3pkB1gm+QsFzAM9aCV4cxB5n6wkvS5 rTtOEQZ59/4rqebXsgmI5kJb0BlLeCpCAKpXfkhvXVSfHdDPlwoRguUG7OuInw0F YSkaIZJYo6SrPf5nsXiDR8VivRVW8zpGHhQfOmorDH1aPRkLflnmHcXuVMTUgjaC MCTVNeqhQ6wm4GiVnkK3ZfC0blK+cjlNZyglPA6wqMV+sV4KovkJ23kinJRvFAmP jyr69UAGPsG8mit78egoPJiAuDBVEN3uSn2+KRjDZyj7OAGNwiv4TQQYrhUk6Tqg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudeivddgvdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerreejnecuhfhrohhmpedfifgvrhhrhicutehgsghosggruggrfdcuoehgvghrrhih sehgrghgsghordhnvghtqeenucggtffrrghtthgvrhhnpeejgfefudfgheehffeuudeuve fgledvleeiteeihfdvleevueekleettedvteeggeenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehgvghrrhihsehgrghgsghordhnvght X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 180AE1C006D; Tue, 1 Dec 2020 06:09:44 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-622-g4a97c0b-fm-20201115.001-g4a97c0b3 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <8be09ad3-2800-4083-9841-3888110438c1@www.fastmail.com> Date: Tue, 01 Dec 2020 12:07:17 +0100 From: "Gerry Agbobada" Content-Type: multipart/alternative; boundary=522ffeec364643998062bb77af98f57e X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --522ffeec364643998062bb77af98f57e Content-Type: text/plain On Tue, Dec 1, 2020, at 10:14, Andrea Corallo wrote: > (call car #s(comp-mvar (cons) (nil) nil 15178090 6)) > Hello, I see, thanks for the explanation and the quick fix :) (I tested today and the commit works well) Have a good day, Gerry --522ffeec364643998062bb77af98f57e Content-Type: text/html
On Tue, Dec 1, 2020, at 10:14, Andrea Corallo wrote:
(call car #s(comp-mvar (cons) (nil) nil 15178090 6))


Hello,

I see, thanks for the explanation and the quick fix :) (I tested today and the commit works well)

Have a good day,

Gerry

--522ffeec364643998062bb77af98f57e-- From unknown Sun Jun 15 14:44:24 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Andrea Corallo Subject: bug#44968: closed (Re: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list') Message-ID: References: X-Gnu-PR-Message: they-closed 44968 X-Gnu-PR-Package: emacs Reply-To: 44968@debbugs.gnu.org Date: Tue, 01 Dec 2020 13:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1606828622-7497-1" This is a multi-part message in MIME format... ------------=_1606828622-7497-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-d= irs-list' which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 44968@debbugs.gnu.org. --=20 44968: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44968 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1606828622-7497-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44968-done) by debbugs.gnu.org; 1 Dec 2020 13:16:16 +0000 Received: from localhost ([127.0.0.1]:58278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk5Vw-0001vp-Fc for submit@debbugs.gnu.org; Tue, 01 Dec 2020 08:16:16 -0500 Received: from mab.sdf.org ([205.166.94.33]:59176 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kk5Vs-0001vd-3B for 44968-done@debbugs.gnu.org; Tue, 01 Dec 2020 08:16:15 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kk5Vq-0007vp-JU; Tue, 01 Dec 2020 13:16:10 +0000 From: Andrea Corallo To: "Gerry Agbobada" Subject: Re: bug#44968: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' References: <8be09ad3-2800-4083-9841-3888110438c1@www.fastmail.com> Date: Tue, 01 Dec 2020 13:16:10 +0000 In-Reply-To: (Gerry Agbobada's message of "Tue, 01 Dec 2020 12:07:17 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44968-done Cc: 44968-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Gerry Agbobada" writes: > On Tue, Dec 1, 2020, at 10:14, Andrea Corallo wrote: > > (call car #s(comp-mvar (cons) (nil) nil 15178090 6)) > > Hello, > > I see, thanks for the explanation and the quick fix :) (I tested today and the commit works well) Thanks for checking, closing then. Andrea ------------=_1606828622-7497-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Nov 2020 19:56:20 +0000 Received: from localhost ([127.0.0.1]:56758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjpHY-0001F7-FJ for submit@debbugs.gnu.org; Mon, 30 Nov 2020 14:56:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:47728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kjpHW-0001F0-W8 for submit@debbugs.gnu.org; Mon, 30 Nov 2020 14:56:19 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjpHW-000623-N3 for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 14:56:18 -0500 Received: from mab.sdf.org ([205.166.94.33]:39220 helo=ma.sdf.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kjpHU-0005K3-St for bug-gnu-emacs@gnu.org; Mon, 30 Nov 2020 14:56:18 -0500 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kjpHN-0007ij-94; Mon, 30 Nov 2020 19:56:09 +0000 From: Andrea Corallo To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [feature/native-comp] Emacs segfault in `rustic-flycheck-dirs-list' Date: Mon, 30 Nov 2020 19:56:09 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=205.166.94.33; envelope-from=akrl@sdf.org; helo=ma.sdf.org X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: Gerry Agbobada X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) Reported by Gerry Agbobada, reproducer: ============ ;; -*- lexical-binding: t -*- (defun rustic-flycheck-dirs-list (start end) "Return a list of directories from START (inclusive) to END (exclusive). E.g., if START is '/a/b/c/d' and END is '/a', return the list '(/a/b/c/d /a/b/c /a/b) in this order. START and END are strings representing file paths. END should be above START in the file hierarchy; if not, the list stops at the root of the file hierarchy." (let ((dirlist) (dir (expand-file-name start)) (end (expand-file-name end))) (while (not (or (equal dir (car dirlist)) ; avoid infinite loop (file-equal-p dir end))) (push dir dirlist) (setq dir (directory-file-name (file-name-directory dir)))) (nreverse dirlist))) (native-compile #'rustic-flycheck-dirs-list) (message "%s" (rustic-flycheck-dirs-list "/tmp/test/foo" "/tmp")) =========== ------------=_1606828622-7497-1--