From unknown Wed Jun 18 23:11:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#71555 <71555@debbugs.gnu.org> To: bug#71555 <71555@debbugs.gnu.org> Subject: Status: 29.3.50; Native-compilation sets some variable to nil unexpectedly. Reply-To: bug#71555 <71555@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:40 +0000 retitle 71555 29.3.50; Native-compilation sets some variable to nil unexpec= tedly. reassign 71555 emacs submitter 71555 S=C3=A9v=C3=A8re Durand severity 71555 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 14 12:13:03 2024 Received: (at submit) by debbugs.gnu.org; 14 Jun 2024 16:13:04 +0000 Received: from localhost ([127.0.0.1]:40810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sI9Xy-0001el-7u for submit@debbugs.gnu.org; Fri, 14 Jun 2024 12:13:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:33868) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sI8Lf-00086t-9V for submit@debbugs.gnu.org; Fri, 14 Jun 2024 10:56:16 -0400 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 1sI8Le-0000zl-CE for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2024 10:56:14 -0400 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sI8Lb-0002mp-MJ for bug-gnu-emacs@gnu.org; Fri, 14 Jun 2024 10:56:13 -0400 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a6265d48ec3so325470766b.0 for ; Fri, 14 Jun 2024 07:56:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718376969; x=1718981769; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=495T5R7TOgw29q811pZBgChYK21oFjCRDrQtMYT4lBk=; b=eubcRWKk69nMQcVeQsN6awdnmsuTFNxfQXBDh+fASUnKQhAboOkNltYSfOy/WiBjyK dvepANygJxeDGNqb7Wx+whE3spQxe2sI/vBgEtuHAVtawRhy6SAuUdotAKS/1OZVtzJR o0DnQjr9S4iZvM3PuN3Fq6eEFWGUFPLmQgLQqoVQTKluN6P9kwsQ8EsMrjw/cau3fweS DZvFgydWdFacFUUmY5E2zOkYAkmX/IIDRIAmOnNAXP0J9TaqzPVgnRUYeZ6rqxs2n2C3 y1vAje7lXR/jNDjWMB3fXVbUoOEqA0k4FFgC4zg++b24OsVwVEl5SS2EkhmE3YgGFsrT 8CpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718376969; x=1718981769; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=495T5R7TOgw29q811pZBgChYK21oFjCRDrQtMYT4lBk=; b=n91Fe+TaKuggMcQ7dFEjvu1xbA3xf+quBLugXsLmCTIJ52Ay4QKFbQyHm0Pg+WnwDI YLE1jVFToclFyKS1BBVeJhKoARlqTbzLZ/4wJItcEwmII5vVaPEhn9MyZyq6CvM2K4mP Mm3cUud25LNTeNTP8dVSDi2iQ+pGGyWXu/Q/DTsgSEFgSWQ/GtojqDfOzlChnf9w5k+9 F0k+7XTe8gcVaj1gYhmpKEmFDEoT4lkyyEQ9wG7SoCoI4TkiMxpVPf5WvQasA+eJB9BV M63iD1zmi5zV2DO+B2y6GA/2ksiWEsa0By1/CxhXf0qWD+EaUvrW1LEgK+ChUEFMRCWz KzkQ== X-Gm-Message-State: AOJu0YwNOWYWTnl7FGnBIeZ5JAaKOJD1COlUTmRkZNC9okbDZ/A3jkgl IUysZ7phE3wtnKQK9TtEj2QsPmarFk7HQi/4AlYwgMT8aPl2XmxZHOMv7rgjcRVk1pxMlGLAL/0 TV6e1Kxc3uJTxgKa++F/FML3MPVE/y/XJ X-Google-Smtp-Source: AGHT+IGi/4qG4WkvfX6Qma9qf5mCP1jR7WTknS2yaTszoTOMFMZY8fmw7f8bakfsgKtUjfC6MLvW7C2bD+VymBthhBs= X-Received: by 2002:a17:906:814:b0:a6e:f646:6fdb with SMTP id a640c23a62f3a-a6f60de2524mr167164766b.72.1718376968882; Fri, 14 Jun 2024 07:56:08 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?U8OpdsOocmUgRHVyYW5k?= Date: Fri, 14 Jun 2024 22:55:56 +0800 Message-ID: Subject: 29.3.50; Native-compilation sets some variable to nil unexpectedly. To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000d218a0061adad036" Received-SPF: pass client-ip=2a00:1450:4864:20::632; envelope-from=mmemmew@gmail.com; helo=mail-ej1-x632.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 14 Jun 2024 12:13:00 -0400 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.3 (--) --000000000000d218a0061adad036 Content-Type: text/plain; charset="UTF-8" Hello: I recently found that sometimes an argument of a function is unexpectedly set to nil when the function is natively compiled. A recipe to reproduce the behaviour is as follows. ```elisp (defun test (&optional start) "Test the values of START." (message "start is %S" start) (cond ((not (integer-or-marker-p start)) (message "entered first cond variant") (setq start nil)) ((and (markerp start) (not (equal (marker-buffer start) (current-buffer)))) (message "entered second cond variant") (setq start nil))) (message "start is %S" start)) (native-compile 'test) (test 12) ``` When I evaluate the above forms in sequence, I got the following two messages: start is 12 start is nil As can be seen from the above, no `cond` variants are triggered, so the variable START should have the value 12, while it becomes nil at the end. Sorry if this example is not minimal: I found this behaviour in my package, so copied the relevant parts here. I am not sure what a minimal example would be. Hope this report is helpful. --- In GNU Emacs 29.3.50 (build 1, x86_64-apple-darwin23.4.0, NS appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-06-12 built on MacBook-Pro-de-Severe.local Repository revision: 59261e6f4fef0ec03c8127b29fe107ed19280a3b Repository branch: emacs-29 Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.4.1 Configured using: 'configure --with-ns --without-tree-sitter --with-native-compilation=yes' Configured features: ACL DBUS GIF GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XIM ZLIB Important settings: value of $LC_ALL: fr_FR.UTF-8 value of $LC_COLLATE: fr_FR.UTF-8 value of $LC_CTYPE: fr_FR.UTF-8 value of $LC_MESSAGES: fr_FR.UTF-8 value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date cl-print byte-opt debug backtrace find-func misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher shortdoc text-property-search thingatpt help-fns radix-tree format-spec comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra help-mode cl-loaddefs cl-lib bytecomp byte-compile face-remap rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 115764 6238) (symbols 48 8233 1) (strings 32 30416 2847) (string-bytes 1 896655) (vectors 16 21051) (vector-slots 8 395280 10306) (floats 8 95 77) (intervals 56 866 15) (buffers 976 16)) --- Durand --000000000000d218a0061adad036 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello:

I recently found that sometimes an argument = of a function is
unexpectedly set to nil when the function is natively c= ompiled.

A recipe to reproduce the behaviour is as follows.

`= ``elisp
(defun test (&optional start)
=C2=A0 "Test the value= s of START."
=C2=A0 (message "start is %S" start)
=C2= =A0 (cond
=C2=A0 =C2=A0((not (integer-or-marker-p start))
=C2=A0 =C2= =A0 (message "entered first cond variant")
=C2=A0 =C2=A0 (setq= start nil))
=C2=A0 =C2=A0((and
=C2=A0 =C2=A0 =C2=A0(markerp start)=C2=A0 =C2=A0 =C2=A0(not (equal (marker-buffer start) (current-buffer))))=
=C2=A0 =C2=A0 (message "entered second cond variant")
=C2= =A0 =C2=A0 (setq start nil)))
=C2=A0 (message "start is %S" st= art))
(native-compile 'test)
(test 12)
```

When I evalu= ate the above forms in sequence, I got the following two
messages:
start is 12
start is nil

As can be seen from the above, no `con= d` variants are triggered, so the
variable START should have the value 1= 2, while it becomes nil at the
end.

Sorry if this example is not = minimal: I found this behaviour in my
package, so copied the relevant pa= rts here.=C2=A0 I am not sure what a=C2=A0
minimal example would be.
Hope this report is helpful.
---
In GNU Emacs 29.3.50 (buil= d 1, x86_64-apple-darwin23.4.0, NS
=C2=A0appkit-2487.50 Version 14.4.1 (= Build 23E224)) of 2024-06-12 built on
=C2=A0MacBook-Pro-de-Severe.local<= br>Repository revision: 59261e6f4fef0ec03c8127b29fe107ed19280a3b
Reposit= ory branch: emacs-29
Windowing system distributor 'Apple', versi= on 10.3.2487
System Description: =C2=A0macOS 14.4.1

Configured us= ing:
=C2=A0'configure --with-ns --without-tree-sitter
=C2=A0--wit= h-native-compilation=3Dyes'

Configured features:
ACL DBUS GIF= GLIB GMP GNUTLS JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY KQUE= UE NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS WEBP XIM= ZLIB

Important settings:
=C2=A0 value of $LC_ALL: fr_FR.UTF-8=C2=A0 value of $LC_COLLATE: fr_FR.UTF-8
=C2=A0 value of $LC_CTYPE: fr_= FR.UTF-8
=C2=A0 value of $LC_MESSAGES: fr_FR.UTF-8
=C2=A0 value of $L= C_MONETARY: fr_FR.UTF-8
=C2=A0 value of $LC_NUMERIC: fr_FR.UTF-8
=C2= =A0 value of $LC_TIME: fr_FR.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8=C2=A0 locale-coding-system: utf-8-unix

Major mode: Lisp Interactio= n

Minor modes in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-= eldoc-mode: t
=C2=A0 eldoc-mode: t
=C2=A0 show-paren-mode: t
=C2= =A0 electric-indent-mode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-ba= r-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
= =C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink= -cursor-mode: t
=C2=A0 line-number-mode: t
=C2=A0 indent-tabs-mode: t=
=C2=A0 transient-mark-mode: t
=C2=A0 auto-composition-mode: t
=C2= =A0 auto-encryption-mode: t
=C2=A0 auto-compression-mode: t

Load-= path shadows:
None found.

Features:
(shadow sort mail-extr ema= csbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mm= l-sec password-cache epa derived epg rfc6068
epg-config gnus-util mm-dec= ode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailhead= er sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils tim= e-date cl-print byte-opt debug
backtrace find-func misearch multi-isearc= h vc-git diff-mode easy-mmode
vc-dispatcher shortdoc text-property-searc= h thingatpt help-fns
radix-tree format-spec comp comp-cstr warnings icon= s subr-x rx cl-seq
cl-macs gv cl-extra help-mode cl-loaddefs cl-lib byte= comp byte-compile
face-remap rmc iso-transl tooltip cconv eldoc paren el= ectric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel te= rm/ns-win ns-win
ucs-normalize mule-util term/common-win tool-bar dnd fo= ntset image
regexp-opt fringe tabulated-list replace newcomment text-mod= e lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch= easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-c= ore
term/tty-colors frame minibuffer nadvice seq simple cl-generic
in= donesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibeta= n thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romani= an slovak czech european ethiopic indian cyrillic chinese
composite emoj= i-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev = obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-f= ace macroexp files window text-properties
overlay sha1 md5 base64 format= env code-pages mule custom widget keymap
hashtable-print-readable backq= uote threads dbusbind kqueue cocoa ns
lcms2 multi-tty make-network-proce= ss native-compile emacs)

Memory information:
((conses 16 115764 6= 238)
=C2=A0(symbols 48 8233 1)
=C2=A0(strings 32 30416 2847)
=C2= =A0(string-bytes 1 896655)
=C2=A0(vectors 16 21051)
=C2=A0(vector-slo= ts 8 395280 10306)
=C2=A0(floats 8 95 77)
=C2=A0(intervals 56 866 15)=
=C2=A0(buffers 976 16))
---
Durand


=
--000000000000d218a0061adad036-- From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 16 08:47:19 2024 Received: (at 71555) by debbugs.gnu.org; 16 Jun 2024 12:47:20 +0000 Received: from localhost ([127.0.0.1]:53672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIpHz-0007cn-9t for submit@debbugs.gnu.org; Sun, 16 Jun 2024 08:47:19 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:55773) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sIpHx-0007cR-7T for 71555@debbugs.gnu.org; Sun, 16 Jun 2024 08:47:17 -0400 Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-57cce3bc8c6so1146134a12.3 for <71555@debbugs.gnu.org>; Sun, 16 Jun 2024 05:47:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718541970; x=1719146770; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=hpDdxvaUxHFSD9866hWhWjWv7QVfP5LXhVeWubKatWg=; b=mEc7DizXAZDr6DVYEUOh1zpeTMh8OKEHJwoBi2+0mSqu+7Fvp8cMJjCEKTYi+7dLkH bbSaO36bYoF8DDO1jf44l/We/C7jY7ORdH2TSgMXVQjZGA/ONWcgNljEG6TGAtfj+BwG uCKiF61ZE6dn0tONOKI1V2mqkTdqPVqpHcacSdsiFspxRqmttZH1mTuyMQUT5Ms+OY2j Ip2yivHluGiTfQ3BEt+9i8dSLi4Rbr7xpAkcbSPDwkM/KLxFrMnUaCfkwoClHCZ37SwJ sV7TiN3LukIVkvgcCXTSzmZGGu0UFoij3OqUEgNROouHrbra9j3lb5PiniPzqtDxDpaq 2IkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718541970; x=1719146770; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=hpDdxvaUxHFSD9866hWhWjWv7QVfP5LXhVeWubKatWg=; b=AhFH2a2qqObxpvzXzl3LVeoP5BaQ5aNVwFpl23xCnOSrAEDKtGOVPiAJvUnCVNVWJi WbIU4wOWjVEgKtwl68BD81NJcY/fG8Bm2s8Ohzs+Vym/XFyogQTRH7E+ZA2sZT4/tv89 Qa2IRsAWuz2q6hRvfTUSCX952Y0Qo9VlHPmhKmciJIX9A07VesAl0ZXu5En3WvGvbwaZ Eq4SNYyLsvPFNE/YSO/j5CCRhQwoypij8Dfat+FX+t5mfYVXv1M6tt85QgzRvxb/Sg43 p2QzvQzgSV9/pydNbDPAlPN9r8Z2HiRLOyA7MCXWBNYsZma84lryQJhqesKxUXcfaA7M Sv6Q== X-Gm-Message-State: AOJu0Yweul5rsrL/CWWFyJ4DSkRXZvCrWTE/pnWzggwrbpR2dY5bk0BI GW0X/zSyPurDnLw1wotKHDPuzpjwZPs6t5quVHxpZli0DF2BMCWBl/bUHA== X-Google-Smtp-Source: AGHT+IHE4iygz5Q1QqYtNQxDgYh0IxJ4Br5whKG+fTpVOXmBTanDaPa4dOiXJAtry4572EN+tj9dzQ== X-Received: by 2002:a50:cd97:0:b0:575:954:7ef with SMTP id 4fb4d7f45d1cf-57cbd697059mr5074911a12.3.1718541969584; Sun, 16 Jun 2024 05:46:09 -0700 (PDT) Received: from Pro.fritz.box (pd9e36751.dip0.t-ipconnect.de. [217.227.103.81]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb741e7a5sm5003446a12.75.2024.06.16.05.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jun 2024 05:46:09 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: =?utf-8?B?U8OpdsOocmU=?= Durand Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: (=?utf-8?B?IlPDqXbDqHJl?= Durand"'s message of "Fri, 14 Jun 2024 22:55:56 +0800") References: Date: Sun, 16 Jun 2024 14:46:07 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, Andrea Corallo 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 (-) S=C3=A9v=C3=A8re Durand writes: > Hello: > > I recently found that sometimes an argument of a function is > unexpectedly set to nil when the function is natively compiled. > > A recipe to reproduce the behaviour is as follows. > > ```elisp > (defun test (&optional start) > "Test the values of START." > (message "start is %S" start) > (cond > ((not (integer-or-marker-p start)) > (message "entered first cond variant") > (setq start nil)) > ((and > (markerp start) > (not (equal (marker-buffer start) (current-buffer)))) > (message "entered second cond variant") > (setq start nil))) > (message "start is %S" start)) > (native-compile 'test) > (test 12) > ``` > > When I evaluate the above forms in sequence, I got the following two > messages: > > start is 12 > start is nil > > As can be seen from the above, no `cond` variants are triggered, so the > variable START should have the value 12, while it becomes nil at the > end. > > Sorry if this example is not minimal: I found this behaviour in my > package, so copied the relevant parts here. I am not sure what a=20 > minimal example would be. > > Hope this report is helpful. > --- > In GNU Emacs 29.3.50 (build 1, x86_64-apple-darwin23.4.0, NS > appkit-2487.50 Version 14.4.1 (Build 23E224)) of 2024-06-12 built on > MacBook-Pro-de-Severe.local I can reproduce this on macOS 14.5 x86-64 on the emacs-29 branch but not on master. Maybe Andrea (CC'd) can help. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 03:28:05 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 07:28:06 +0000 Received: from localhost ([127.0.0.1]:59443 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ6mb-000120-KE for submit@debbugs.gnu.org; Mon, 17 Jun 2024 03:28:05 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ6mZ-00011W-D5 for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 03:28:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJ6kM-0004eF-Eo; Mon, 17 Jun 2024 03:25:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=HBdexKn/fhFLPzgVuhLUaM5s0DAwgLgryK9SXS+SSpI=; b=DNPGs2Ur6Z8s+/jMUKor JQf9IESxL2sL3IqWYgrs8P3tep7+Ax4dwQYEVjeTpxmgs652zC2pMTNKTmbfUDU23pTO4iHGtV9eT TGKHLe7SfxjuEbgbS1ANUfIH8Eg/IPnVMEjmSB4fwLURARSWVdPCZBiCYgp+IlrJheJHWo7/uOxWw AGmLMlpyfllx0vQLxwZi0WnfkmB03MrWOBCXFkv0WOpQJ3pJN+UYEEQn21+k8o9d6sdviJ+bZngDB UOSKHbhxz1r9+LEaLslXFf9NuIv2U1kI9TAfRKaW1XQO4mvpSLGw0V5cj9lF4arEPwLVK6omU4w4U iFBpxWF95BRGYw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ6jl-0006Vm-CN; Mon, 17 Jun 2024 03:25:09 -0400 From: Andrea Corallo To: =?utf-8?B?U8OpdsOocmU=?= Durand Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: (=?utf-8?B?IlPDqXbDqHJl?= Durand"'s message of "Fri, 14 Jun 2024 22:55:56 +0800") References: Date: Mon, 17 Jun 2024 03:25:09 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, eliz@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: -3.3 (---) S=C3=A9v=C3=A8re Durand writes: > Hello: > > I recently found that sometimes an argument of a function is > unexpectedly set to nil when the function is natively compiled. > > A recipe to reproduce the behaviour is as follows. > > ```elisp > (defun test (&optional start) > "Test the values of START." > (message "start is %S" start) > (cond > ((not (integer-or-marker-p start)) > (message "entered first cond variant") > (setq start nil)) > ((and > (markerp start) > (not (equal (marker-buffer start) (current-buffer)))) > (message "entered second cond variant") > (setq start nil))) > (message "start is %S" start)) > (native-compile 'test) > (test 12) > ``` > > When I evaluate the above forms in sequence, I got the following two > messages: > > start is 12 > start is nil > > As can be seen from the above, no `cond` variants are triggered, so the > variable START should have the value 12, while it becomes nil at the > end. > > Sorry if this example is not minimal: I found this behaviour in my > package, so copied the relevant parts here. I am not sure what a=20 > minimal example would be. > > Hope this report is helpful. Hi S=C3=A9v=C3=A8re, I can't reproduce on master so the bug there is fixed. AFAIK we don't plan to release a new 29 so I'm not sure it's worth the effort of investigating and producing a backport for this bug. Eli WDYT? Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 03:33:38 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 07:33:38 +0000 Received: from localhost ([127.0.0.1]:59454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ6ry-0001BO-1t for submit@debbugs.gnu.org; Mon, 17 Jun 2024 03:33:38 -0400 Received: from mail-ed1-f48.google.com ([209.85.208.48]:54650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ6rw-0001BB-AC for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 03:33:36 -0400 Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-57c83100cb4so4527145a12.1 for <71555@debbugs.gnu.org>; Mon, 17 Jun 2024 00:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718609548; x=1719214348; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qkUATUAKr85GdJAX+Otm8KpK20GGgyloWJTLqiWeo/4=; b=WPeBXub+6EoMj3RiZeFFDXXQ+JvzTCY5MrXxhv5IX4IaO1Bl6Ehcf+Y0EiaN/zqRRy 51KsKrdYxgUNcXKIOqOozePXI4FtavdFvRaz3SUcgbSu2BMTuNvk3NN/h/hd7ShJx4Bi sE3DONuWHuGbSin5mz+XEAioSOG4HtA1lFtajwKwlUVgOnz+hhQM8IxXq+1R0+LpcdlW 2DUWnboJszLcaIeLmaO5b31PF0TiGeAjKziXlXbwY2bj6qnoDwPr+/eURI5CD+h+ptnj YB3TTuQIA/zY0xnTLucExcT/3J7uYo0l1Ezbh5+zJ9lQcTEqVBhzKaDUE0YhxKuss/Cl H/WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718609548; x=1719214348; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qkUATUAKr85GdJAX+Otm8KpK20GGgyloWJTLqiWeo/4=; b=NnrRyJ9V7a7hIKC8HlIvKy1HT31k/eWbUQHt32mbPDU+B64GLRMfaMj9flRCVFwK1w rOn4XLdaA2QXz+A4LrCWUMsCuXZgAoWNuPNJs6BGXSZbgFDHSXdzqkMTrNG9v45oHhvu YcY0GobjndFzgkpB2O7/khWVVl1Om8EZtDe+MajwMJY18jbbrtphF3XXUspnKx4jYdr7 qh1BWskzoMvT89W48xu4fs4AJ6A1B+IvOzh04pRhqn9R5rddgrnbsLvzZFXLYskRl0sj JbQzGIrl9W0MGdPaHVNXP01h2BTw4VYTJFukeosUOKWxFCo2LPdCeKfIq28TObCKiEFO CXIA== X-Gm-Message-State: AOJu0YywceDzo9zRkjiCRkuyYEH4bCz4L3IwgzNW7oerUjzoOK807I01 xDX2gBECYSEdczP+kkoH10E21jgifp5cEzWPcLWEOPKOuc9R1erfuxLMoSOYnWSodAs97AG8mRf Th/uPFWch4j/EzmPc3A944FMTzU8= X-Google-Smtp-Source: AGHT+IEqW4Uuivm/X51SdSTwKZcWHJtqmDsEmVRaQ/H01H4zZjB1ruiO6i2KsugyD0o0lZ3GhdhtMtwaWcQAKcAoins= X-Received: by 2002:a17:906:aed6:b0:a6f:4c90:7951 with SMTP id a640c23a62f3a-a6f60cee430mr568404566b.8.1718609548262; Mon, 17 Jun 2024 00:32:28 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?U8OpdsOocmUgRHVyYW5k?= Date: Mon, 17 Jun 2024 15:32:16 +0800 Message-ID: Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. To: Andrea Corallo Content-Type: multipart/alternative; boundary="000000000000a1c51a061b10f73e" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, eliz@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 (-) --000000000000a1c51a061b10f73e Content-Type: text/plain; charset="UTF-8" Hello Mr.Andrea: Thanks for your reply and that of Mr.Gerd! I did not know that this was fixed on the master branch. In this case, I think I can just add a notification to my package's readme, warning users that if they want to natively compile the package, then they should use the master branch (or the version 30) to avoid the bug. Thanks for the help! --- Durand --000000000000a1c51a061b10f73e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Mr.Andrea:
Thanks for your repl= y and that of Mr.Gerd!
I did not know that this was fixed on the = master branch.=C2=A0 In this case, I think I can just add a notification to= my package's readme, warning users that if they want to natively compi= le the package, then they should use the master branch (or the version 30) = to avoid the bug.
Thanks for the help!
---
Du= rand
--000000000000a1c51a061b10f73e-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 04:00:19 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 08:00:19 +0000 Received: from localhost ([127.0.0.1]:59483 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7Hm-00022b-Vt for submit@debbugs.gnu.org; Mon, 17 Jun 2024 04:00:19 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ7Hl-00022L-7I for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 04:00:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJ7Hd-00022q-Jy; Mon, 17 Jun 2024 04:00:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=N7hV0kT6EghPm2UjuOyGiSarVQHbpmcSDlClauTURmU=; b=U19ZYJKWCr3w/nGr47Ef 7P63Or0n+jy4Qf50wkggm27NfIxTo3RjriEQZ/BR7u21XSOuRbi5zQqfnZv8N4re/Mt2oeKVvp/CR 2J/onuN0SEGeXSZfs6nq2mQGXCyjE+ggLFRlaLj5E1jvnHvUOrztCJt+GQboEnKnATfatrt+g2qyp viuaIxJi6J5SyTdv4uHR9gBh5GU/8UTOrw6M2X02MYmo/jlo/bLTBh1pjruHEG9UhxUkmpAaWfAMN bWlk+6EFsWkrUAoVmb7UGnORyXgyXBVLfOBD3zyeRZbmbETu3GkS9+CTfPEvrMo6MaYrXe33l30wN 2vTy590weo0xmg==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ7Hc-0001sk-Tk; Mon, 17 Jun 2024 04:00:08 -0400 From: Andrea Corallo To: =?utf-8?B?U8OpdsOocmU=?= Durand Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: (=?utf-8?B?IlPDqXbDqHJl?= Durand"'s message of "Mon, 17 Jun 2024 15:32:16 +0800") References: Date: Mon, 17 Jun 2024 04:00:08 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, eliz@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: -3.3 (---) S=C3=A9v=C3=A8re Durand writes: > Hello Mr.Andrea: > Thanks for your reply and that of Mr.Gerd! > I did not know that this was fixed on the master branch. In this case, I= think I can just add a notification to my > package's readme, warning users that if they want to natively compile the= package, then they should use the master branch > (or the version 30) to avoid the bug. > Thanks for the help! > --- > Durand Hi S=C3=A9v=C3=A8re, another workaround that should work would be to add to your function: (declare (speed 0)) This should work around the issue on all the already released releases. Could you give it a try? Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 06:10:04 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 10:10:04 +0000 Received: from localhost ([127.0.0.1]:59597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9JL-0005Rx-NO for submit@debbugs.gnu.org; Mon, 17 Jun 2024 06:10:04 -0400 Received: from mail-lf1-f42.google.com ([209.85.167.42]:49534) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9JI-0005RO-U7 for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 06:10:01 -0400 Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-52bd48cf36bso4924742e87.3 for <71555@debbugs.gnu.org>; Mon, 17 Jun 2024 03:09:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718618933; x=1719223733; darn=debbugs.gnu.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=wiXAYdPdwPyiOsuvxJD/VTud0UwlW2KYKOyQm6PrkXQ=; b=R5pY7w1Q83b02FxYYWpZaHXaiU+aq3Me9PD9GfUrA8w1ZhyPP77rTVcNqeOjQllJKV 1y/4HVBEgWRsb7z2ESuT61wW2P1uXoKPht6+YeQb9r6XEZpXP1xXqWxP5ns2doBAxS2Z cFIQ5U9V4LZJkEO3ft3DgS92btj51Y2pkT/d4rSTm3hq9wnbkETP/tUDU2S1iBBm9Suz R1AUTHTobZCsnpruuowmVijLCfpBWNcCdWaR6/VuBVe7ftYO98Q0/+qjvl54NIM4L5hs zJ5Ys52JU4AgRPBrGPFSAt9jKg/ou1P0QOQga/czZvv3Tp+T9EY1tlXTbwmHz8Grzoen LK5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718618933; x=1719223733; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wiXAYdPdwPyiOsuvxJD/VTud0UwlW2KYKOyQm6PrkXQ=; b=iXW+AZYdcdNPDk14YPsrxP2Z55jZmnhxnqqXMONoC7CtaSVdFx+yIqCDN5MAAeEeJ6 V0KXjPOCc8jx1At0iPT/Asx76uLMZ0UOw0uj9KqIpZxDcEU7nDGY2o1PLJGAdv8HG/6y +SmacYaOzO/peGuEdhX7RjTLvGwsHQbHMdxqAjYdgvQcrG3eqoRhPw/QlWp7yjx5+heG 5Y6ei1TPEUNSlRU8r4PMl6IF4Sp0KITKhAJfXhLLWeJIlkIh5lcRr85gGavNLdFTGkZW yWsDZ1LXmcge8WZPeFMF3rhISjBDEblPXLGynruUGcnhh2Q8EPNYqqt5Fisi+IOzZhLG Uv0A== X-Forwarded-Encrypted: i=1; AJvYcCU6QL8Jvpk8NGPChNLOlWslvhJzLO1o5D4ko7x/aZY54PqLovXqAMHo5vz8msqkbYArqB1uxpU2QJ2S04KHFFX1E0B88gU= X-Gm-Message-State: AOJu0Yy0QggO+o1NLgyxgrsuzr0MKM8d0Wl04YywdU4jy007B6GSEfH6 g+XWHD2HGGdu+FeVIwvuO/eQoiDzPR+meTC2LWYXDO9FmcnJoBMI X-Google-Smtp-Source: AGHT+IE1CF+sOqKOV+tLO3ApLeGn5irTJ2zh5Kod+0rPKrzJ2iAZSRS6NK2zSCqd7znXcJwYsXabBQ== X-Received: by 2002:a05:6512:3444:b0:52c:8918:73e with SMTP id 2adb3069b0e04-52ca6e6e265mr5644305e87.31.1718618932564; Mon, 17 Jun 2024 03:08:52 -0700 (PDT) Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52ca2887d2asm1201711e87.251.2024.06.17.03.08.51 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2024 03:08:52 -0700 (PDT) From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. Message-Id: <213EC279-4FB6-4F69-8BC4-1BE7A2AE7232@gmail.com> Date: Mon, 17 Jun 2024 12:08:51 +0200 To: Andrea Corallo X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, Eli Zaretskii , =?utf-8?B?U8OpdsOocmUgRHVyYW5k?= 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 (-) > I can't reproduce on master so the bug there is fixed. We don't actually know that, do we? The bug could just be hidden by = other changes on master; the underlying error could still be present. You know the native compiler code better than anyone else (and it's your = time, of course), but it might be worth investigating. Do you have a way = to dump intermediate representations at various stages? From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 06:15:59 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 10:15:59 +0000 Received: from localhost ([127.0.0.1]:59634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9P5-0005bA-DB for submit@debbugs.gnu.org; Mon, 17 Jun 2024 06:15:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51530) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJ9P2-0005aw-V8 for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 06:15:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJ9Ov-0007Ql-FT; Mon, 17 Jun 2024 06:15:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=XDMCHeQeDLUqnpmPxWT7BhbGrC3Q0hLxoNWiATjaYDE=; b=Qt6awXsx5LEabzi7pSr+ 3ofY07TYIMsTghWo5pykq6/h0IIjsNeSeMvinspe6KUqee2AIwd3lRzF/eL9mwdM8Tnrg4KnWup1c sxxvuVjDSye2AwbVUNEeM0RiqNq++77i/f6+6OSWdSN4F8NO1Hpd0f4afIZ2pwdOQAFAUvaVNU7FM Hu9NzLd7MsRXBe+2TgAhw+iHbDh4fqryTtJE4pWY4rR9CBcxYL9jXZeZTLdYJ+umh0huuTGIoLxJt upI7O/Kl3ZaEbpqH4oczv/RtJgMvu84e8kmPDEbJ3jLzGc8LMnMaJMQLgNB4sqHxNNRTXfsoNAWdt /OsS3sOO/wuFLA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJ9Ou-0005Ga-R8; Mon, 17 Jun 2024 06:15:48 -0400 From: Andrea Corallo To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: <213EC279-4FB6-4F69-8BC4-1BE7A2AE7232@gmail.com> ("Mattias =?utf-8?Q?Engdeg=C3=A5rd=22's?= message of "Mon, 17 Jun 2024 12:08:51 +0200") References: <213EC279-4FB6-4F69-8BC4-1BE7A2AE7232@gmail.com> Date: Mon, 17 Jun 2024 06:15:48 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, Eli Zaretskii , =?utf-8?B?U8OpdsOocmU=?= Durand 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: -3.3 (---) Mattias Engdeg=C3=A5rd writes: >> I can't reproduce on master so the bug there is fixed. > > We don't actually know that, do we? The bug could just be hidden by other= changes on master; the underlying error could still be present. The type inference on master compared to 29 had many changes/improvements so I'm not surprised at all of seeing this fixed. > You know the native compiler code better than anyone else (and it's > your time, of course), but it might be worth investigating. Do you > have a way to dump intermediate representations at various stages? Indeed see 'native-comp-verbose'. Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 06:59:37 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 10:59:37 +0000 Received: from localhost ([127.0.0.1]:59845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJA5I-0006iV-Ou for submit@debbugs.gnu.org; Mon, 17 Jun 2024 06:59:37 -0400 Received: from mail-lj1-f181.google.com ([209.85.208.181]:45366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJA5G-0006iH-Ry for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 06:59:35 -0400 Received: by mail-lj1-f181.google.com with SMTP id 38308e7fff4ca-2eaa89464a3so48463581fa.3 for <71555@debbugs.gnu.org>; Mon, 17 Jun 2024 03:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718621907; x=1719226707; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=PF1Qp+4gT6nKq31/3vxRxf6SRoloWkdaTjdYITcAccI=; b=Au3PZFWR/DjRAAZ7/3tIzqwY+HTYezthApgyAqrcwmNEMrS31jKUtQrWqCfaMWVMGB BEhnDYlSt5HrjO2XBnIwY1ctbpq/AsDLJ6fEDjO8LedTjbRSKHMMOBhIiaH3hj+xZkID KB2SvwwptjNtJrUo0kmM5eayUbNJSqBczGbSJBLgQWeNlNq3Xrj1t915DdjFS7WYe5sb SjZHAbulpNkUFtsuXGSq2ssypy++6Y87QaFM9wMJpfVeedu5rK8hLEsGgd+o/yt3Ua0/ 2zmNkgZwsD/4iwcILkVpBTcPRe+XWXPqCI3sg1GYJxgbhiV6ece1BFvg179iuUvHr0GG ubog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718621907; x=1719226707; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=PF1Qp+4gT6nKq31/3vxRxf6SRoloWkdaTjdYITcAccI=; b=KUH00vYyaRHBhxYjqz3UiodPiZaNMGXsG0DN7x9Nvr2BVgfY1aWFGhHxQiSnmXiWcl Ytmb08V+AuKMn5Q2Uf/LjkUJ0ts1Pc1U4DKqSNX592LgtxY1fuJu7N1vmP+sR6j3ABYg ik7Jr/fenH8jSFewbDDsHTs90CBGzPrgvEPTA7saPJp+dUVFzwVLtFyWoOgViiAqKEov jmUE91ri2YK7n2aGxBL7n8I5OkPV/AwVqTvzeuZSMd5hW1vQ+mGhIfXCw6mPSmZ7BtPF c3HIjDBl2BlxJ8xrCkLk9AvjAvkGQbdiZx3BnJOSb7Ri5w1GW8QxrES0z7pE3aNNj3Ut riRQ== X-Forwarded-Encrypted: i=1; AJvYcCXbTMxCK5EzbCBgnAVg9z6ISxsFg74tbaSIHPU+8QArmg9uE1OUeNDy8xLjKeZhjq3zEfqJ+eBc2XBgSFLpol2bym6GNmM= X-Gm-Message-State: AOJu0YzvOwWmsM4KVXDj+IHCzNAjXbxzpNEX1zzFCIHB4Nj9q1VGfenB q3YatLWc7ECZVB7nHWoAqCtd5wPL5fSKpJuyhRCqaynXs6RgKqaP X-Google-Smtp-Source: AGHT+IGJ6B5ncosI9PpKmQmfwObCMuFba8YG2ZdRxNQURdN59pmIFyY9gMPt/Cpwc6sF+yotceAn4g== X-Received: by 2002:a2e:86ca:0:b0:2ec:2502:2d36 with SMTP id 38308e7fff4ca-2ec25022ef2mr36225001fa.31.1718621906809; Mon, 17 Jun 2024 03:58:26 -0700 (PDT) Received: from smtpclient.apple (c80-217-1-132.bredband.tele2.se. [80.217.1.132]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2ec05c07194sm13832081fa.40.2024.06.17.03.58.25 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Jun 2024 03:58:26 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. From: =?utf-8?Q?Mattias_Engdeg=C3=A5rd?= In-Reply-To: Date: Mon, 17 Jun 2024 12:58:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <7005FC9F-519F-4A2C-9893-6B1942AA10E4@gmail.com> References: <213EC279-4FB6-4F69-8BC4-1BE7A2AE7232@gmail.com> To: Andrea Corallo X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, Eli Zaretskii , =?utf-8?B?U8OpdsOocmUgRHVyYW5k?= 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 (-) 17 juni 2024 kl. 12.15 skrev Andrea Corallo : > The type inference on master compared to 29 had many > changes/improvements so I'm not surprised at all of seeing this fixed. Yes, maybe it's not a good use of your time at this point. As an = engineer I'm still curious about the failure modes of your compiler, = though (and the underlying causes). > Indeed see 'native-comp-verbose'. Thanks -- maybe something for S=C3=A9v=C3=A8re to try. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 08:00:20 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 12:00:20 +0000 Received: from localhost ([127.0.0.1]:60859 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJB20-0002uF-G4 for submit@debbugs.gnu.org; Mon, 17 Jun 2024 08:00:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJB1u-0002sl-Vk for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 08:00:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJB1n-00010w-M6; Mon, 17 Jun 2024 08:00:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=b+sqzIOmEJygrnd1e4MX1Ckje3WWrwXM2XaGW7QYARA=; b=YxC5w/w9SzO1 cpEUMxW3ddKYXPmraeSC3Ax6CxJPzVATJe9ttTrGbTeMs86oy1rSUgc4Asc+bNqca5tuj21sG/iVV 1VqL2QXvB+ZRihrFkrwZpVm7xXkgyoCfGoPs42+tLFfH4rUJ/FSUsPeRr1VXQkHWy7KxTTiih+qCT 6Ekz/AHs2oGKkSBkmQR0+erKhzoQB4ioPDCH2G/cj39KHjv8bLQF+WTT6/TIYkNl3f3eZC9Ed2XTN VWR/BLvYUQOMK97iP7o3YSyE2eJewNBrGQNj+rUKeEDn+P9B6Cf0/+hEFu/f3L7Gkl3TG0AV/x91Q c3/4khH3SM9LZgUtwji4mQ==; Date: Mon, 17 Jun 2024 15:00:00 +0300 Message-Id: <861q4vsrsv.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Mon, 17 Jun 2024 03:25:09 -0400) Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, mmemmew@gmail.com 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: -3.3 (---) > From: Andrea Corallo > Cc: 71555@debbugs.gnu.org, eliz@gnu.org > Date: Mon, 17 Jun 2024 03:25:09 -0400 > > I can't reproduce on master so the bug there is fixed. > > AFAIK we don't plan to release a new 29 so I'm not sure it's worth the > effort of investigating and producing a backport for this bug. > > Eli WDYT? If the problem happens on emacs-29, but not on master, it is good enough for me, and we can close this bug. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 08:04:32 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 12:04:32 +0000 Received: from localhost ([127.0.0.1]:60983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJB68-00034Q-HT for submit@debbugs.gnu.org; Mon, 17 Jun 2024 08:04:32 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53448) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJB67-000348-8O for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 08:04:31 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJB5z-00020J-OL; Mon, 17 Jun 2024 08:04:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=T6lwkJIzcBG66MQ9qo8WfPH4QoeOltXutj2kmGPZPH8=; b=WJOmLxgz2V2O/PAIgMlv wVqCb/9WEhflhiA9T+mE3N9pjlz/0BwI4ijHdVDjVDoLF5SZnx4+psu6eSree7pQhogmh11yG0W64 zU8CWAUtLnbVk2sW+BVUTxCMvgqjRdgrDH5CzdNKjdNXwCTuaJoGzUS+CJMqHVXUy0Y2gYfMhu3Cz 3rf/vMgaMTDS4/AU9TiAeIxdZjK9IgiOhanhMx55cGn113kUxBd6srR7kLAk6Ir2FwBN9emfqNWjs QTJAFpv0Njkr0Wz0bT/tovk4Re+W+cQ0Styjp6M63r6MpHGg1bVObkqkiu8MGaKRdGNsrRUuVeYmx 6OrYOrJx/dCILQ==; Date: Mon, 17 Jun 2024 15:04:13 +0300 Message-Id: <86zfrjrd1e.fsf@gnu.org> From: Eli Zaretskii To: Mattias =?utf-8?Q?Engdeg=C3=A5rd?= In-Reply-To: <213EC279-4FB6-4F69-8BC4-1BE7A2AE7232@gmail.com> (message from Mattias =?utf-8?Q?Engdeg=C3=A5rd?= on Mon, 17 Jun 2024 12:08:51 +0200) Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. References: <213EC279-4FB6-4F69-8BC4-1BE7A2AE7232@gmail.com> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, acorallo@gnu.org, mmemmew@gmail.com 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: -3.3 (---) > From: Mattias Engdegård > Date: Mon, 17 Jun 2024 12:08:51 +0200 > Cc: Sévère Durand , > 71555@debbugs.gnu.org, > Eli Zaretskii > > > I can't reproduce on master so the bug there is fixed. > > We don't actually know that, do we? The bug could just be hidden by other changes on master; the underlying error could still be present. In that case, it will be reported again soon enough, and we can reopen the bug. From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 09:15:41 2024 Received: (at 71555-done) by debbugs.gnu.org; 17 Jun 2024 13:15:41 +0000 Received: from localhost ([127.0.0.1]:33612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJCCy-00059p-MM for submit@debbugs.gnu.org; Mon, 17 Jun 2024 09:15:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJCCw-00059a-MW for 71555-done@debbugs.gnu.org; Mon, 17 Jun 2024 09:15:39 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJCCp-0006wE-1V; Mon, 17 Jun 2024 09:15:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=BkG2rt8hkozN1/uvcwsfq6LKyz0xpsblM4rfL2CleSE=; b=O7MdGy8FZ3MDCjwgGiV0 BmTuoeXPdHRA+vsEKZxZua+0ODpdxrn51rQuWWJqEnvOdp1c8VGZobxVPghi6Hgsc1sqy+gDXiN1S QKqNRxwFOWcMGybCEvZLKRNu72kY4FY71JtrohSNKMNvTVTl/upxiJkElX6vzP8/s7lUzxgNkx1Pz 3tJD73CHzk3wlrx+z7IHocdVOuXIDG7N+8hCZSnGv40jUWX3pZ0ZZe9n9/kLyV3n9jJT+hxeiCyKE RIQB3Zund0hB8chmvveOSDsBLTTLRnlRgft5PQzgBBA8SQ1swP9IljnMir5p7OONVnlDgz27SXETg ustngO8i9gHQ8w==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJCCf-0001En-6F; Mon, 17 Jun 2024 09:15:30 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: <861q4vsrsv.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 17 Jun 2024 15:00:00 +0300") References: <861q4vsrsv.fsf@gnu.org> Date: Mon, 17 Jun 2024 09:15:20 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555-done Cc: 71555-done@debbugs.gnu.org, mmemmew@gmail.com 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: -3.3 (---) Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: 71555@debbugs.gnu.org, eliz@gnu.org >> Date: Mon, 17 Jun 2024 03:25:09 -0400 >> >> I can't reproduce on master so the bug there is fixed. >> >> AFAIK we don't plan to release a new 29 so I'm not sure it's worth the >> effort of investigating and producing a backport for this bug. >> >> Eli WDYT? > > If the problem happens on emacs-29, but not on master, it is good > enough for me, and we can close this bug. Thanks closing then. Happy to re-open if we feel is necessary. Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 10:04:00 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 14:04:00 +0000 Received: from localhost ([127.0.0.1]:34740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJCxk-0006wB-1G for submit@debbugs.gnu.org; Mon, 17 Jun 2024 10:04:00 -0400 Received: from mail-ej1-f51.google.com ([209.85.218.51]:48192) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJCxi-0006vw-81 for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 10:03:58 -0400 Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a6f13dddf7eso533267766b.0 for <71555@debbugs.gnu.org>; Mon, 17 Jun 2024 07:03:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718632970; x=1719237770; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4s63sVTyGTZPDgNpzQLvGgUsYCYuFSNBWiJJaUMfTVg=; b=nXso+/s4LfUkTzfe8PlViEIXidTzMs18zIHANgqhpYKg9gp5RkgJWRM/2SBkosVDXX PH8YipNfl4+i1BBrVRGpKIG7RBTSrrCrZ+0WblHDlMaIPTe6T3I7vyN953xVsI01mMwp hoy7Yb19S6RmWL7v3d9dQMkjsNorHIp46sSZ3JP9Dl0g5rIt4Qp3hsZnD6BNoEwja+Jm HFpiLk0TKXBF4GMzhjXo+chT5Aq/zOJfvZPPb9iFhYqqWuM6k76zDGUk+5ANNKrBRplZ pgXL2RiKnfPM/lS4aTVfge2Y0sjDZ7FHu1rCxz0E8UEZ+BvBdbfO+Lf9hM6ue5Mnht/Z u7UQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718632970; x=1719237770; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4s63sVTyGTZPDgNpzQLvGgUsYCYuFSNBWiJJaUMfTVg=; b=GK6X7gwT3RgE9SQ8uJBSDPIRSGw2RA1hFBf/psuLHMGPwe/Ts/fYuseQ1n4CDUD5HP GOi5jdBzKsfLh2hv+A5aJzgtAGyef1NpC2+IPrLCHu57+ef7VTinAnHwPC0VojQhDu7f SFL0nPiVKcHgjgN/eOlniQqCsAOMase52G7blbb5CLA0vA8YzyFy68Apwg/v/s2fIuQ4 gW6iKaC8SpPUdvRtFxf0U5xqyZxYZeUMRrr7pzPaGjNqaLpS24HCL88pKsVlUvK2L0w7 rdogYPXy4dm+zxgG23jQ3JDHf1wgjZM3Q4rBjxr14jjc0PZby53uNNnS7RNUU6UjbGw0 IyPg== X-Gm-Message-State: AOJu0YzPcZ+zOkzlc/G6sIh/S2QKE8e4uqsuUTABSGXOFBYnek8tLsR0 gJHkfn0NnPeyiPW950ktqrrMptJI60wYxnWAHBBQSdtEhQ/w7WRF8AcuZ55YUJT+1EvtbLL1Zom e/g7nTtPCVIKOtBV2rcdlN6hKUKk= X-Google-Smtp-Source: AGHT+IGJcyZSdlP/szCvdYkgEFDHeYfqbYiQs2eI3+G13Sl6lePDWuDWDZids65eSP9a8LQdzB1BJv5hJ5WoWnBPYwA= X-Received: by 2002:a17:906:3556:b0:a6f:1111:bd8 with SMTP id a640c23a62f3a-a6f60d430dbmr570171866b.46.1718632969902; Mon, 17 Jun 2024 07:02:49 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: =?UTF-8?B?U8OpdsOocmUgRHVyYW5k?= Date: Mon, 17 Jun 2024 22:02:34 +0800 Message-ID: Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. To: Andrea Corallo Content-Type: multipart/alternative; boundary="000000000000aba623061b166b9c" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, eliz@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 (-) --000000000000aba623061b166b9c Content-Type: text/plain; charset="UTF-8" Hello Mr.Andrea: Thanks for the suggestion. Unfortunately when I tried the afore-mentionned snippet with `(declare (speed 0))` added after the documentation string of the `test` function, the execution results still indicate that the START variable is unexpectedly set to nil, for some reason. I surely have no opinions against closing this bug, as it seems to be fixed on the master branch, though I have not tried yet. Thanks to all for all the great work, especially to Mr.Andrea for the excellent native-compilation feature. =) --- Durand --000000000000aba623061b166b9c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Mr.Andrea:
Thanks for the suggestion.
= Unfortunately when I tried the afore-mentionned snippet with `(declare (spe= ed 0))` added after the documentation string of the `test` function, the ex= ecution results still indicate that the START variable is unexpectedly set = to nil, for some reason.
I surely have no opinions against closin= g this bug, as it seems to be fixed on the master branch, though I have not= tried yet.=C2=A0
Thanks to all for all the great work, especiall= y to Mr.Andrea for the excellent=C2=A0native-compilation feature. =C2=A0=3D= )
---
Durand



--000000000000aba623061b166b9c-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 10:39:04 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 14:39:04 +0000 Received: from localhost ([127.0.0.1]:34895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDVg-0007sX-3l for submit@debbugs.gnu.org; Mon, 17 Jun 2024 10:39:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:56302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDVe-0007rv-O5 for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 10:39:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJDVX-0006XX-6o; Mon, 17 Jun 2024 10:38:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=QAHxa///xpyZTVhMk8QO/0Ky67oU5KeHK49EOg5uPoc=; b=oFWxIxqScz35xEXUn7Lv B73eAQgXWR4Rto2UFHEzhzEG24MECASGFk7dqPRgvYj4fEBjGyOkXc0n7/cXBKUYnq3CLI9lrcb8o J4DpuY/TSWptEFW4KEfdjZJScrL0LMH/3fIm7uQgdqGNT7X23Y8DcE6mjioe72UYTCtMEognXfVdc iBKPZJMsoeb1ytRELb0xsTeXVWGZY5v4CuiSWzgagjiZQJ8asqWAtNEVf2spX8s4pvwHuvvIv2gLM 4gpcL8if8/5ijlxuwAyImmTXcfqDq+YERk/ts4+PI3p+rrtnxaUbN3G1a94O4q21RhEt0E8fjTTgr MWxFOA0vlVRkDA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJDVW-00023t-Ql; Mon, 17 Jun 2024 10:38:54 -0400 From: Andrea Corallo To: =?utf-8?B?U8OpdsOocmU=?= Durand Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: (=?utf-8?B?IlPDqXbDqHJl?= Durand"'s message of "Mon, 17 Jun 2024 22:02:34 +0800") References: Date: Mon, 17 Jun 2024 10:38:54 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, eliz@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: -3.3 (---) S=C3=A9v=C3=A8re Durand writes: > Hello Mr.Andrea: > Thanks for the suggestion. > Unfortunately when I tried the afore-mentionned snippet with `(declare (s= peed 0))` added after the documentation string > of the `test` function, the execution results still indicate that the STA= RT variable is unexpectedly set to nil, for some > reason. I think it's because you are giving to the native compiler an already defined function to compile. If you use M-x emacs-lisp-native-compile-and-load or (load (native-compile FILE)) it will work. I tried the first on 29 and work around the original issue successfully. BTW I believe this different handling of the declare could be worth a separate bug. Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 17 10:41:49 2024 Received: (at 71555) by debbugs.gnu.org; 17 Jun 2024 14:41:49 +0000 Received: from localhost ([127.0.0.1]:34923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDYK-0007xS-UI for submit@debbugs.gnu.org; Mon, 17 Jun 2024 10:41:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJDYJ-0007xG-Fm for 71555@debbugs.gnu.org; Mon, 17 Jun 2024 10:41:48 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJDYB-00077r-Qs; Mon, 17 Jun 2024 10:41:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=4WMg53PsKP9JjnC0d+6AEu+2TTfIvoKoPbFmWArJDGE=; b=sL1rlCEgWmNpNMiJXY1P zIY8qNQBsGefrbZAilbWKvmxRokBQziqmTM8FN+N5a1/Q4rFmCLwJrM1nxh+Bma34h7q39U0QSvbc YyzdwFGQ1162awb6kv6s1eP7o1dkzBWEXVWX8La60WFNbQdRAfkLobpYTJjUqQlMmNMAe+FNTrpq+ 8hPwhEevppwfeRbeN8DmTeT1pHMUck0gUeWVZt0snMJpOZGY9bVfFRn2d8g+7GGnP1dnW9cMtOEzT ql6RW6yERAY7fjjvxwm8+LAId/pTdGe+BXVw9Q1p2A9Z/x3vUC8c+gPU1e4SzU4ko5x/qyaWEOIKC NJskk0h29VrCxA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sJDYA-00041p-UR; Mon, 17 Jun 2024 10:41:39 -0400 From: Andrea Corallo To: =?utf-8?B?U8OpdsOocmU=?= Durand Subject: Re: bug#71555: 29.3.50; Native-compilation sets some variable to nil unexpectedly. In-Reply-To: (Andrea Corallo's message of "Mon, 17 Jun 2024 10:38:54 -0400") References: Date: Mon, 17 Jun 2024 10:41:38 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71555 Cc: 71555@debbugs.gnu.org, eliz@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: -3.3 (---) Andrea Corallo writes: > S=C3=A9v=C3=A8re Durand writes: > >> Hello Mr.Andrea: >> Thanks for the suggestion. >> Unfortunately when I tried the afore-mentionned snippet with `(declare (= speed 0))` added after the documentation string >> of the `test` function, the execution results still indicate that the ST= ART variable is unexpectedly set to nil, for some >> reason. > > I think it's because you are giving to the native compiler an already > defined function to compile. > > If you use M-x emacs-lisp-native-compile-and-load or (load > (native-compile FILE)) it will work. I tried the first on 29 and work > around the original issue successfully. > > BTW I believe this different handling of the declare could be worth a ^^^ should > separate bug. > > Thanks > > Andrea From unknown Wed Jun 18 23:11:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 16 Jul 2024 11:24:17 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator