From unknown Mon Jun 23 05:59:23 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#49922 <49922@debbugs.gnu.org> To: bug#49922 <49922@debbugs.gnu.org> Subject: Status: 28.0.50; comp-run-async-workers can be broken by setting print-length or print-level Reply-To: bug#49922 <49922@debbugs.gnu.org> Date: Mon, 23 Jun 2025 12:59:23 +0000 retitle 49922 28.0.50; comp-run-async-workers can be broken by setting prin= t-length or print-level reassign 49922 emacs submitter 49922 Pal Gloss severity 49922 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 03:48:44 2021 Received: (at submit) by debbugs.gnu.org; 7 Aug 2021 07:48:44 +0000 Received: from localhost ([127.0.0.1]:51898 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCH4V-0004Ka-Mc for submit@debbugs.gnu.org; Sat, 07 Aug 2021 03:48:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:56070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCH4Q-0004KP-5d for submit@debbugs.gnu.org; Sat, 07 Aug 2021 03:48:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47678) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCH4P-0002Sm-TR for bug-gnu-emacs@gnu.org; Sat, 07 Aug 2021 03:48:37 -0400 Received: from mout.gmx.net ([212.227.15.18]:56969) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCH4N-0000lC-Or for bug-gnu-emacs@gnu.org; Sat, 07 Aug 2021 03:48:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1628322512; bh=lMGkI8oSdEm0fZ5K55inG29uHxMvrcAjinxBTeUQM2w=; h=X-UI-Sender-Class:From:To:Subject:Date; b=NThLUAvfGxET8EAcbW6Vf9kal3wXPIb6MRi1qGG+j7LV0TByfFM/eaEsjcBgofVhE CenteR74nw6Krw0ncIPtJe7DR5WADXdhpn1joUdOeBnH7cfeWz7CDqs+PA3RjXbNKP vn+llAzdvcCdlC1qVKsB6kNCpxSxTnHJKjMHi3Es= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [81.245.63.7] ([81.245.63.7]) by web-mail.gmx.net (3c-app-mailcom-bs08.server.lan [172.19.170.176]) (via HTTP); Sat, 7 Aug 2021 09:48:32 +0200 MIME-Version: 1.0 Message-ID: From: Pal Gloss To: bug-gnu-emacs@gnu.org Subject: 28.0.50; comp-run-async-workers can be broken by setting print-length or print-level Content-Type: text/plain; charset=UTF-8 Date: Sat, 7 Aug 2021 09:48:32 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:5qOlduaATD7Ja5s61AxSZzBclwxrWtdU5KumcGWsCqeaC+0m/ml56tiZwru8UHe4Ym3zt SOHx+fMotEJDP5fJWdVhTx5NuQotdQgMVGfTlTcroIe05B9TX0rEfQwK4Us4ZXqC0VJZRmX0y6ur w9/5MddWV408J84XCeWnY2PZc3nuWmE5LBa50RWNSWsLXc+KuMocsM3I4hVZ9bjRhhOa8gwc3Ki3 4iq6TXqCPjyr7ObHiFaCXPw7oH9/rZzOpn/OTHlZXTfvPTxVBnU5laodiyYSCSU3m5sex+eZvRi5 Os= X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:mBmN7/xX900=:lxwtoYo2HI2pyxAW4PyZ9j PkJmD+vQaJlBpPQZzX1Gysw8fE3WcdMZAUDKMNh5gldwpvKaKOe5xDCflDHrX73x6qktuo29N c1N/GK9ScMlxKpIgOUt+O9f4YXjoH+YCysaENeHvxl3G7PDlpE6/x9mLwwGl11mlZnSoWFTeA 4rqOdPcb04ONGiDwa6ax9//yW8SvHSlzzqE8Ixj4jFNvVNdgzSgDztpMQtsyE+t8A1wBWSMKx ez6RtJhPD0yw53NmlK3C7uN1Q2c7Y7XWhG4MUJX9PuYdWJUYUOKxrkN5EcHUn7wZqMSshbvVN 3Rvy/IJLwJf7P7sCFGhw9Ma3Kjo+EiDyi0gdyl/geTbi0ffKhH27beAN27DKK1K/51f1c8rbb LPMR2fqmPpfHBMS0nPBBNEE9VBtn+lqcmP8xb1cBiflHg8zx1Pzi1geFIuDTKI/N6k6tsq+1P /npnUgCSV3rsNE7wWQ+wTaa7Da396hWgSxVx7v8vhKF0awX3WX/u/1Ae/SgJfZuiAy+LlVjZA GCOQt0qAglm2y2aDAKdwGxAfRtTydb7xEF+cUi2cXaPpgfDkJcGjBGXaSDBHGCVa+M2fFYAfk ls8wDDOET+QL8CkdK92xykDR2nQIPaXF42Sd77daP+/XrEhhxkNBWGPMgtgqI4r8NCV7194yI b52H6UEM/7VSLq0qWHMS3cPUhQ8IREO4rEaGNf+89+6AwgE6DjIZwGSWGiwWrFZH1X0zLv3uu G9gbF9DEvm+B0w8OrQWGCEYauaI+c83Ck2MJrKehZCvgNvbtM44uOpPgPsll970K7ccZYT0nh vSfdw5DEPUqY78bRSzNcLHU1pAXW0vdYHyp5X7YxtabtmepBZo= Received-SPF: pass client-ip=212.227.15.18; envelope-from=pcfeb0009@gmx.com; helo=mout.gmx.net X-Spam_score_int: -22 X-Spam_score: -2.3 X-Spam_bar: -- X-Spam_report: (-2.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit 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.1 (--) `comp-run-async-workers' uses `prin1-to-string' to generate the contents of a temporary file. It does *NOT* rebind `print-length' and thus inserts incomplete sexps in the temporary file. This then leads to errors during native compilation. `print-level' is also not rebound to nil but it should, too. I don't really understand the failure mechanism, but I am pretty sure that the usage of `prin1-to-string' in `comp-run-async-workers' intends to have a faithful representation of its "expr" local variable in the "temp-file", so that the right thing to do is to rebind those `print-level' and `print-length' variables to isolate `comp-run-async-workers' from whatever the settings the user may have at the time the compilation is started. Redefining `comp-run-async-workers' to bind `print-length' and `print-level' to nil in the big `let*' expression inside the `cl-loop' prevents the reproduction examples below from failing. 1. To reproduce the issue with `print-length' in emacs -Q: (let* ((print-level nil) ;; 16 or lower gives "... error: (void-variable \.\.\.)" ;; 17 gives "... error: (wrong-number-of-arguments setf 17)" ;; 18 gives no error message nor warning (why? No idea!) ;; 19 to 21 (bounds inclusive) give ;; "Error: File is missing Cannot open load file" ;; 22 or higher: no error message nor warning (print-length 16) (temp-file (make-temp-file "reproduce-the-bug" nil ".el")) (_ (with-temp-file temp-file (insert "(defun reproduce-the-bug () nil)\n")))) (native-compile-async temp-file)) ;; *Warnings* buffer pops up with ;; ;; Warning (comp): Debugger entered--Lisp error: (void-variable \.\.\.) ;; ;; or another error message depending on the value of `print-length' 2. To reproduce the issue with `print-level' in emacs -Q: (let* ((print-level 2) ; 3 is already sufficient for the compilation to succeed (print-length nil) (temp-file (make-temp-file "reproduce-the-bug" nil ".el")) (_ (with-temp-file temp-file (insert "(defun reproduce-the-bug () nil\n")))) (native-compile-async temp-file)) ;; *Warnings* buffer pops up with ;; ;; Warning (comp): /AppData/Local/Temp/reproduce-the-bugLyD27F.el: Error: error Cannot find suitable directory for output in `comp-native-load-path'. In GNU Emacs 28.0.50 (build 1, x86_64-w64-mingw32) of 2021-08-06 built on Repository revision: 0afab352e02d7070a8ced2af53c1d01217400cdf Repository branch: master Windowing system distributor 'Microsoft Corp.', version 6.3.9600 System Description: Microsoft Windows 8.1 (v6.3.0.9600.20069) Configured using: 'configure --with-xml2 --with-zlib --without-pop --prefix=/home/username/emacs-native-comp/dest --without-compress-install --without-dbus --with-native-compilation --with-modules 'CFLAGS=-O2 -g3' PKG_CONFIG_PATH=/mingw64/lib/pkgconfig:/mingw64/share/pkgconfig' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LC_CTYPE: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: cp1252 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-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 cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 90320 10381) (symbols 48 8078 1) (strings 32 23631 1324) (string-bytes 1 795325) (vectors 16 16573) (vector-slots 8 322901 17594) (floats 8 30 72) (intervals 56 257 0) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 07:00:24 2021 Received: (at 49922) by debbugs.gnu.org; 7 Aug 2021 11:00:24 +0000 Received: from localhost ([127.0.0.1]:52048 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCK3z-0003f8-PV for submit@debbugs.gnu.org; Sat, 07 Aug 2021 07:00:23 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCK3w-0003Wh-Cq for 49922@debbugs.gnu.org; Sat, 07 Aug 2021 07:00:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=LA4dwcAVjTZMLHqVuLtO/HQ/+N1vmSSq4nvSDZ6Fypw=; b=AWZGQlVRPKXVjRnTfxtRP1HVRN w7DklmYxsK3gHRWJ95pAB37O10J+gxg17QsgHq6fk7KbYocuUKMqtn11equ4LWPzJzC1Xie0mCvAY 1tvuX0p3prILc5Klr0b7UAXVi7MV0Mbpfz/c6z1L4O5gZgDWXjkoHHeR86/FqqGjNa5w=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCK3n-00072q-MT; Sat, 07 Aug 2021 13:00:14 +0200 From: Lars Ingebrigtsen To: Pal Gloss Subject: Re: bug#49922: 28.0.50; comp-run-async-workers can be broken by setting print-length or print-level References: Date: Sat, 07 Aug 2021 13:00:11 +0200 In-Reply-To: (Pal Gloss's message of "Sat, 7 Aug 2021 09:48:32 +0200") Message-ID: <87lf5d7c5g.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Pal Gloss writes: > Redefining `comp-run-async-workers' to bind `print-length' and > `print-level' to nil in the big `let*' expression inside the `cl-loop' > prevents the reproduction examples below from failing. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49922 Cc: 49922@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: -3.3 (---) Pal Gloss writes: > Redefining `comp-run-async-workers' to bind `print-length' and > `print-level' to nil in the big `let*' expression inside the `cl-loop' > prevents the reproduction examples below from failing. I've now done something similar in on the trunk (just binding those around the prin1-to-string call), which should fix this issue. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 07 07:00:26 2021 Received: (at control) by debbugs.gnu.org; 7 Aug 2021 11:00:26 +0000 Received: from localhost ([127.0.0.1]:52051 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCK41-0003hh-W1 for submit@debbugs.gnu.org; Sat, 07 Aug 2021 07:00:26 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCK40-0003ac-8g for control@debbugs.gnu.org; Sat, 07 Aug 2021 07:00:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Lm/XIwQoyNFByuxE04p4w1g2Vtv1juksjP3TnhDm2uM=; b=RxHX8DaLRU2DUk/oJz4Y+RNGS4 0g6Nr8B+Id3lyDY6DjmvOfmEaM03z8rrjLHTPKL7O7gF5SSTmbLFOGSnJJh19CcoGDpNkZLtJ/GEo 2nYljBDm3+iPSTz79k6ITDNCW6ALPxS4irQlgD7IuwF7TCQozfi42UvsHzq7dD4hf9w4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mCK3s-00072y-F1 for control@debbugs.gnu.org; Sat, 07 Aug 2021 13:00:18 +0200 Date: Sat, 07 Aug 2021 13:00:16 +0200 Message-Id: <87k0kx7c5b.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49922 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 49922 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 49922 28.1 quit From unknown Mon Jun 23 05:59:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 04 Sep 2021 11:24:04 +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