From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#63564: 29.0.91; (setcdr) behaves differently between natively and byte compiled code Date: Thu, 18 May 2023 07:54:56 +0000 Message-ID: References: <83pm6yw2tu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18906"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Jimmy Yuen Ho Wong , 63564@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 18 09:55:26 2023 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 1pzYTu-0004iR-J6 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 18 May 2023 09:55:26 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzYTY-0003cs-6B; Thu, 18 May 2023 03:55:04 -0400 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 1pzYTW-0003cf-O3 for bug-gnu-emacs@gnu.org; Thu, 18 May 2023 03:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pzYTW-0005N6-DM for bug-gnu-emacs@gnu.org; Thu, 18 May 2023 03:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pzYTW-0001LJ-5f for bug-gnu-emacs@gnu.org; Thu, 18 May 2023 03:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 18 May 2023 07:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63564 X-GNU-PR-Package: emacs Original-Received: via spool by 63564-submit@debbugs.gnu.org id=B63564.16843965015151 (code B ref 63564); Thu, 18 May 2023 07:55:02 +0000 Original-Received: (at 63564) by debbugs.gnu.org; 18 May 2023 07:55:01 +0000 Original-Received: from localhost ([127.0.0.1]:51893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzYTV-0001L1-4t for submit@debbugs.gnu.org; Thu, 18 May 2023 03:55:01 -0400 Original-Received: from ma.sdf.org ([205.166.94.33]:57814) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pzYTT-0001Ko-BV for 63564@debbugs.gnu.org; Thu, 18 May 2023 03:54:59 -0400 Original-Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1pzYTQ-0003cU-RZ; Thu, 18 May 2023 07:54:56 +0000 In-Reply-To: <83pm6yw2tu.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 May 2023 09:50:21 +0300") 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:261906 Archived-At: Eli Zaretskii writes: >> From: Jimmy Yuen Ho Wong >> Date: Thu, 18 May 2023 03:40:40 +0100 >> >> >> Users have discovered there's a markdown-mode function that behaves >> differently depending Emacs is executing byte-compiled code or natively >> compiled code. >> >> The issue is documented >> [here](https://github.com/jrblevin/markdown-mode/issues/578). >> >> >> There are two examples in the issue that will produce an `Wrong type >> argument: consp, nil` error on the natively compiled version of >> `markdown-imenu-create-nested-index`, but not the byte-compiled or >> interpreted version. A user has provided a disassembly of the natively >> compiled code for that function. >> >> The last user has said and I can confirm the offending line seems to be `(setcdr >> sibling-alist alist)` in that function. >> >> Much appreciate it if Andrea could take a look. > > Adding Andrea. > > While, of course, Andrea's help will be appreciated, there's currently > no reason to believe this is a problem in the Emacs core, and > therefore filing a bug report here could be premature. Ideally, the > markdown-mode's developers should examine the problem first and > present convincing evidence that this is a problem with native > compilation and not with the code in markdown-mode itself. Yep, if markdown-mode's developers could present a reproducer showing how exactly the function miss-behaves and where that would help. Andrea