From unknown Sat Jun 21 10:32:04 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#31549 <31549@debbugs.gnu.org> To: bug#31549 <31549@debbugs.gnu.org> Subject: Status: 25.3; bytecompile fails with eval-when-compile Reply-To: bug#31549 <31549@debbugs.gnu.org> Date: Sat, 21 Jun 2025 17:32:04 +0000 retitle 31549 25.3; bytecompile fails with eval-when-compile reassign 31549 emacs submitter 31549 ynyaaa@gmail.com severity 31549 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Tue May 22 05:01:28 2018 Received: (at submit) by debbugs.gnu.org; 22 May 2018 09:01:28 +0000 Received: from localhost ([127.0.0.1]:43603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fL3Ae-0002Xf-Fr for submit@debbugs.gnu.org; Tue, 22 May 2018 05:01:28 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fL3Ac-0002XT-Tc for submit@debbugs.gnu.org; Tue, 22 May 2018 05:01:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fL3AV-0007OC-10 for submit@debbugs.gnu.org; Tue, 22 May 2018 05:01:21 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:52970) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fL3AU-0007O3-TO for submit@debbugs.gnu.org; Tue, 22 May 2018 05:01:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45800) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fL3AP-0004TD-5h for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 05:01:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fL3AJ-0007KC-E4 for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 05:01:13 -0400 Received: from mail-pf0-x234.google.com ([2607:f8b0:400e:c00::234]:42999) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fL3AJ-0007K0-78 for bug-gnu-emacs@gnu.org; Tue, 22 May 2018 05:01:07 -0400 Received: by mail-pf0-x234.google.com with SMTP id p14-v6so8445738pfh.9 for ; Tue, 22 May 2018 02:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=lchbKHnu+Hl1PJ25SVGKcFJYFM1CSQ6WUAWYr7PakrM=; b=ofqpfro7tPYjSozpT3772ol5CqAuyFSXLGzXgBtR3w6KTktyUqhemzSllho5nXjngA SFDz7H0hz2FWfNCVAaVgYTwHz1InF9QkBnN0LomX4AOLOkx2Y3EbCAp3bGi3zznIcr8Y RABIwRBjzYLZfhZNNn5dUI8wMguMSGYPCsMjFjng7ygikMLx61oOYTmRs27+mnzzPzrb R6DnPXtPr2RKKzhemspSd5i+nQkQ73H+F8I2dAO1XHxmH+GOtcJ6HVoh1BgBy8ng0GC/ SrobNvc9cUrfZU4r0ehgfhUSgwLfPo7ib0k0I4rveoRFdQ+dFOxfMX/PwsysXrMTBdqJ sw7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=lchbKHnu+Hl1PJ25SVGKcFJYFM1CSQ6WUAWYr7PakrM=; b=poen3irS32mNFros5tQhwy22dVrOALE51+LoEHteqoMRk6JVMeIkU62mZafXJWReyC CfpDUQzEY9KrNlKz12t5pDOaeVHuASIafxZahqIr2BL4K4mtXizIsjQVzfd30ILaskgz GNXCu8R0QDOGRso4DNU/h5E3sUgB5n3Fphat0Zr4Q52rCf87nH5OflIq8xmmMj8vId+Z RKyTHBUEpQlRbqukoZatZbfmjY9ss4YpGhj4WA5x8O4iVWhXzgSXH1bxDWDemR1vpCew CF9Bg4aM4eiF01JCgnTqvIM8Uzu6UUvZz7+12nMpra+g1QXilH3jCwSWCRwzTwgS8oBh RTQA== X-Gm-Message-State: ALKqPwdbtgJBU/PrzmYy+w1Hm3XilIYCo+5tkJcLisnYqm9PxfCuPZpC esAJMyRZ5jnc8H2QBzNff6Cr1A== X-Google-Smtp-Source: AB8JxZqLGMfk2uYR+AjGkU0uDymg/GsvtPGtmovb9t1/+pMYGCJu388GOLQSSqe0wXyKBwKhDpOHTw== X-Received: by 2002:a62:3085:: with SMTP id w127-v6mr23372289pfw.224.1526979665295; Tue, 22 May 2018 02:01:05 -0700 (PDT) Received: from HP (east49-p55.eaccess.hi-ho.ne.jp. [219.105.5.56]) by smtp.gmail.com with ESMTPSA id u16-v6sm35836953pfl.39.2018.05.22.02.01.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 May 2018 02:01:04 -0700 (PDT) From: ynyaaa@gmail.com To: bug-gnu-emacs@gnu.org Subject: 25.3; bytecompile fails with eval-when-compile Date: Tue, 22 May 2018 18:00:54 +0900 Message-ID: <8636yknjy1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) 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: -5.0 (-----) (byte-compile `(eval-when-compile (list ,@(make-list 2047 0)))) Evaluating the form above, emacs (with -Q option) reports Error: Memory exhausted--use C-x s then exit and restart Emacs in *Compile-Log* buffer. The returned value of the form is t. In GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-27 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.3.9600 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=-O2 -static -g3' PKG_CONFIG_PATH=/mingw64/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS Important settings: value of $LANG: JPN locale-coding-system: cp932 Major mode: Emacs-Lisp Minor modes in effect: tooltip-mode: t global-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 Recent messages: Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired format-spec rfc822 mml mml-sec password-cache epg epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils warnings byte-opt bytecomp byte-compile cl-extra help-mode easymenu cl-loaddefs pcase cl-lib cconv time-date mule-util japan-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame 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 charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote w32notify w32 multi-tty make-network-process emacs) Memory information: ((conses 16 96577 5188) (symbols 56 20186 0) (miscs 48 54 117) (strings 32 17426 3747) (string-bytes 1 488163) (vectors 16 13751) (vector-slots 8 513163 14478) (floats 8 165 49) (intervals 56 237 13) (buffers 976 19)) From debbugs-submit-bounces@debbugs.gnu.org Tue May 22 19:33:13 2018 Received: (at 31549) by debbugs.gnu.org; 22 May 2018 23:33:13 +0000 Received: from localhost ([127.0.0.1]:44575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLGmH-00082l-Ah for submit@debbugs.gnu.org; Tue, 22 May 2018 19:33:13 -0400 Received: from mail-io0-f177.google.com ([209.85.223.177]:37316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLGmF-00082X-2D for 31549@debbugs.gnu.org; Tue, 22 May 2018 19:33:11 -0400 Received: by mail-io0-f177.google.com with SMTP id e20-v6so20582397iof.4 for <31549@debbugs.gnu.org>; Tue, 22 May 2018 16:33:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=uajjzA97kTFOtvCHUAAyHfGY/5domfVutEiYmDISVwk=; b=K49DoesL/avrC6apsl8uHUC0WQxJM53wlOzCs1CHOLntHotC6K9fjnd2/C/PYBMM2V hZx3Vjm3fCJ4lU/AqyoNVKtbB6FvErujZ4CVe9P1Erh6MDVrAKJWhpWHmP2MoSUR+Czu Jdrcwtyksl5PdZK7IFNS/pFZ5DOStlEXnESZUZpt9O7624HpWJWp9l2W/8UvlAcisF1/ 5fHQz5yZt9QFYRYBa/EYecIf9jgbYaI14xCSqIf+jAXZbdbuya0Jis0VnvLTV2mt5XHh RPewKGidjbB2mWlsoUV1rN/svn0g4oZD7WcN5dzvd8vY3dSBU8OxG5FSMVnnEHNES0vM gJug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=uajjzA97kTFOtvCHUAAyHfGY/5domfVutEiYmDISVwk=; b=dWym7fFMUjvWZJe92zfA5TkFbdL6KyG+k11GU9U6i9PNaTFtn4ivslPMMHQjLN1SSN +/TYETImOlYaVpN/fSG1Bl4Q3JD2XYNJrSzDX0hdt4fbJfAF7XqbdruF8x6JbZfA63Q/ UzfDkqbdIZwtQjS2JPi+VUC5867Wk+xGIqbIHvr3xiozCkH3FQaKGebJSc1VSa9u+Y0p 917AURYM6087mSARB+Vj7zl2wAmhOnLQJ3bres67k9dml26Qbgrs/D6+A+cpZJQhfMg8 eWPUBh4v5DKjQvl0y6ZLw8hiN3DQ8Dw3mWMjcKctwdCsUVSq8k5/gcfmkdt5YpfnNzjO Kfwg== X-Gm-Message-State: ALKqPwcWfWiOrFiMbN7x66KFVhpcV85hn6gdkJg09CRNuSPjrwg6c9XF PD9A0VTiCs8ZRw2eS2eTlY60wg== X-Google-Smtp-Source: AB8JxZqzD95P+I7rPqKD26xfBEi4ZWjF0OmgdFFxO1IqhLS7VfTm8C5nxtlXxWrGqA5SI4UibPcPjA== X-Received: by 2002:a6b:1e8f:: with SMTP id e137-v6mr482402ioe.192.1527031985341; Tue, 22 May 2018 16:33:05 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id q21-v6sm5016049itb.4.2018.05.22.16.33.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 22 May 2018 16:33:04 -0700 (PDT) From: Noam Postavsky To: ynyaaa@gmail.com Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> Date: Tue, 22 May 2018 19:33:03 -0400 In-Reply-To: <8636yknjy1.fsf@gmail.com> (ynyaaa's message of "Tue, 22 May 2018 18:00:54 +0900") Message-ID: <87sh6jgtao.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31549 Cc: 31549@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 (-) ynyaaa@gmail.com writes: > (byte-compile `(eval-when-compile (list ,@(make-list 2047 0)))) > > Evaluating the form above, emacs (with -Q option) reports > Error: Memory exhausted--use C-x s then exit and restart Emacs > in *Compile-Log* buffer. > The returned value of the form is t. The error is coming from exec_byte_code: if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth)) memory_full (SIZE_MAX); It's more like a Lisp stack overflow than a memory exhausted situation though, hardly calls for restarting Emacs. Perhaps the byte compiler should refuse to compile such a large expression? I can't reproduce in Emacs 26, but only because MAX_ALLOCA is bigger, I think. From debbugs-submit-bounces@debbugs.gnu.org Wed May 23 11:08:58 2018 Received: (at 31549) by debbugs.gnu.org; 23 May 2018 15:08:58 +0000 Received: from localhost ([127.0.0.1]:45506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLVNp-0002Vd-Rj for submit@debbugs.gnu.org; Wed, 23 May 2018 11:08:58 -0400 Received: from eggs.gnu.org ([208.118.235.92]:36883) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLVNo-0002VR-BD for 31549@debbugs.gnu.org; Wed, 23 May 2018 11:08:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLVNi-0003BV-Hb for 31549@debbugs.gnu.org; Wed, 23 May 2018 11:08:51 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLVNi-0003BB-EY; Wed, 23 May 2018 11:08:50 -0400 Received: from [176.228.60.248] (port=2137 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fLVNh-0007Uo-SS; Wed, 23 May 2018 11:08:50 -0400 Date: Wed, 23 May 2018 18:08:57 +0300 Message-Id: <83po1mcsty.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87sh6jgtao.fsf@gmail.com> (message from Noam Postavsky on Tue, 22 May 2018 19:33:03 -0400) Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > Resent-Sender: help-debbugs@gnu.org > From: Noam Postavsky > Date: Tue, 22 May 2018 19:33:03 -0400 > Cc: 31549@debbugs.gnu.org > > > (byte-compile `(eval-when-compile (list ,@(make-list 2047 0)))) > > > > Evaluating the form above, emacs (with -Q option) reports > > Error: Memory exhausted--use C-x s then exit and restart Emacs > > in *Compile-Log* buffer. > > The returned value of the form is t. > > The error is coming from exec_byte_code: > > if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth)) > memory_full (SIZE_MAX); You mean, in expansion of SAFE_ALLOCA_LISP_EXTRA? > It's more like a Lisp stack overflow than a memory exhausted situation > though, hardly calls for restarting Emacs. Perhaps the byte compiler > should refuse to compile such a large expression? How about simply signaling a special error instead of memory_full? Something like error ("Lisp stack overflow"); From debbugs-submit-bounces@debbugs.gnu.org Wed May 23 18:34:17 2018 Received: (at 31549) by debbugs.gnu.org; 23 May 2018 22:34:17 +0000 Received: from localhost ([127.0.0.1]:45720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLcKn-0004VP-IS for submit@debbugs.gnu.org; Wed, 23 May 2018 18:34:17 -0400 Received: from mail-io0-f181.google.com ([209.85.223.181]:46185) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLcKk-0004V5-Jt; Wed, 23 May 2018 18:34:15 -0400 Received: by mail-io0-f181.google.com with SMTP id f21-v6so24727682iob.13; Wed, 23 May 2018 15:34:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=lgRUMMJScxwc+VXKAQfZ2el7qledU93jDHVkvS0t3Fo=; b=NyPH5V9/nRU/ZJdQx70SKBVi1GgKW8MWL9LRNHKOaZqklF+7TuG8dF+TBdz8i11xol d0ynU+8QyiAgI5panW4C7Y7g8aVEbWjtiQOyn1mQydiWZqaov082rm2WqINAIdnV/Jt/ GziWXN9lZ+9EgajYwN1y/hTiB6PYWslykjnpP/UCQhtM2Hmka+7ujxWJ3GelZAD2zNRY B/DhRn21EwWNiBnkbitWYO7OoKAXIS07k3LERedztAM00xeJeIg69m7JC1UkKgE0ruc7 3yjrskUTLCNEkQ/Ll4upRVojrFYuNMBsup7pepuQJJbsd2h2mFjAN/JHrTs7OV47myzH WMdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=lgRUMMJScxwc+VXKAQfZ2el7qledU93jDHVkvS0t3Fo=; b=Z0HgvPwAnvyaB9OaEKdh/QCdRGpFh+Lh446jgkN+c13uziVRNOgEF+LzqO94Buc4nE YmaENOgPLwYRuz3Z844JHcQt3XYQcE7B1WySnVNcfq/ng171cLmNpnf8+27QpZzJYc+y Qx3zf0vuC95F4+1zXhsD+lrTWHTCQKgGmFmb2Cas16bMxHsRuYN/V6qea1LkAwF7n984 0g0UkX+TDKBdOjarP0pJ2SKtVTi+OMFhfRV8qe1fAbKCf+dMoGt4YkSifJ7MQhR0u2/L Vi9HEL2cz0wwtEJQwr+U8pDLbBGxRYOaP/rq76wy0eiCShD4labCdv4iulEx+P/S8qOO pnow== X-Gm-Message-State: ALKqPwe1O4W/HqZG0JSAy46EQwr6tZKMZeBl0aORso0vvrldB7WOZxOJ 6DlCrpQ4iIpsOfd+c/t9XH/htA== X-Google-Smtp-Source: AB8JxZrBj9zDN9HSwB+dkiqcNnOq6WiBXZNOb40bGw6zj3Fyi3dPqDt69iIyqxG9GmOBLbh2YrDRJg== X-Received: by 2002:a6b:b447:: with SMTP id d68-v6mr4275366iof.163.1527114848986; Wed, 23 May 2018 15:34:08 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id 142-v6sm10909326ion.21.2018.05.23.15.34.07 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 May 2018 15:34:08 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> <83po1mcsty.fsf@gnu.org> Date: Wed, 23 May 2018 18:34:06 -0400 In-Reply-To: <83po1mcsty.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 23 May 2018 18:08:57 +0300") Message-ID: <87k1rugfxd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.8 (-) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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: -2.8 (--) fixed 31549 26.1 quit Eli Zaretskii writes: >> The error is coming from exec_byte_code: >> >> if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth)) >> memory_full (SIZE_MAX); > > You mean, in expansion of SAFE_ALLOCA_LISP_EXTRA? Oh, sorry, I missed that the code has been changed quite a bit in Emacs 26. I said: I can't reproduce in Emacs 26, but only because MAX_ALLOCA is bigger, I think. But v26 exec_byte_code will allocate with malloc if needed, so the bug is fixed (and MAX_ALLOCA is the same size). > How about simply signaling a special error instead of memory_full? > Something like > > error ("Lisp stack overflow"); Still might be worth considering changing the error, although stack overflow doesn't describe it correctly anymore. As far as I can tell, SAFE_ALLOCA_LISP_EXTRA will only signal memory_full if the number of bytes to allocate won't fit in a ptrdiff_t variable. That should be pretty much impossible, barring some strange bugs. So maybe: --- i/src/lisp.h +++ w/src/lisp.h @@ -4662,7 +4662,7 @@ egetenv (const char *var) if (INT_MULTIPLY_WRAPV (nelt, word_size, &alloca_nbytes) \ || INT_ADD_WRAPV (alloca_nbytes, extra, &alloca_nbytes) \ || SIZE_MAX < alloca_nbytes) \ - memory_full (SIZE_MAX); \ + error ("Oversize allocation (0x%lX)", (size_t) alloca_nbytes); \ else if (alloca_nbytes <= sa_avail) \ (buf) = AVAIL_ALLOCA (alloca_nbytes); \ else \ From debbugs-submit-bounces@debbugs.gnu.org Thu May 24 12:40:13 2018 Received: (at 31549) by debbugs.gnu.org; 24 May 2018 16:40:13 +0000 Received: from localhost ([127.0.0.1]:46690 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLtHf-0003sy-Rt for submit@debbugs.gnu.org; Thu, 24 May 2018 12:40:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48372) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLtHd-0003sj-Tf for 31549@debbugs.gnu.org; Thu, 24 May 2018 12:40:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fLtHV-0001zx-Du for 31549@debbugs.gnu.org; Thu, 24 May 2018 12:40:04 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:38545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fLtHV-0001zr-Al; Thu, 24 May 2018 12:40:01 -0400 Received: from [176.228.60.248] (port=3952 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fLtHU-0004r7-OX; Thu, 24 May 2018 12:40:01 -0400 Date: Thu, 24 May 2018 19:40:12 +0300 Message-Id: <83fu2hatxv.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87k1rugfxd.fsf@gmail.com> (message from Noam Postavsky on Wed, 23 May 2018 18:34:06 -0400) Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> <83po1mcsty.fsf@gnu.org> <87k1rugfxd.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Noam Postavsky > Cc: ynyaaa@gmail.com, 31549@debbugs.gnu.org > Date: Wed, 23 May 2018 18:34:06 -0400 > > > How about simply signaling a special error instead of memory_full? > > Something like > > > > error ("Lisp stack overflow"); > > Still might be worth considering changing the error, although stack > overflow doesn't describe it correctly anymore. As far as I can tell, > SAFE_ALLOCA_LISP_EXTRA will only signal memory_full if the number of > bytes to allocate won't fit in a ptrdiff_t variable. That should be > pretty much impossible, barring some strange bugs. So maybe: > > --- i/src/lisp.h > +++ w/src/lisp.h > @@ -4662,7 +4662,7 @@ egetenv (const char *var) > if (INT_MULTIPLY_WRAPV (nelt, word_size, &alloca_nbytes) \ > || INT_ADD_WRAPV (alloca_nbytes, extra, &alloca_nbytes) \ > || SIZE_MAX < alloca_nbytes) \ > - memory_full (SIZE_MAX); \ > + error ("Oversize allocation (0x%lX)", (size_t) alloca_nbytes); \ > else if (alloca_nbytes <= sa_avail) \ > (buf) = AVAIL_ALLOCA (alloca_nbytes); \ > else \ I agree that memory_full is suboptimal here, but "Oversize allocation" with a number is too technical to be useful to the programmer who bumps into this problem. We need some text which will indicate that the program is too "complex" (a better word is needed here) and should be simplified. Can you come up with something along those lines? From debbugs-submit-bounces@debbugs.gnu.org Thu May 24 17:18:27 2018 Received: (at 31549) by debbugs.gnu.org; 24 May 2018 21:18:27 +0000 Received: from localhost ([127.0.0.1]:46939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLxcx-0003zH-2L for submit@debbugs.gnu.org; Thu, 24 May 2018 17:18:27 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:51034) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fLxcv-0003z2-MC for 31549@debbugs.gnu.org; Thu, 24 May 2018 17:18:26 -0400 Received: by mail-it0-f51.google.com with SMTP id p3-v6so4261044itc.0 for <31549@debbugs.gnu.org>; Thu, 24 May 2018 14:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=ojNcrlvtuHHVSm1EDqB6j+t4JokxLw1m9uRCTuUL8Cg=; b=pToteZC3h/OZRbj9gO3JzlCygfOMw5hdzLQiBuIg6Y6hPCMqgfWUelzgXyNryA/uY9 oRJOQtZ/qF62D4Dw+uPrf6AyPLEDFXullczWMnEI8BZyuya6zqagPCi/QahCUymF/kbc Od6Ff3dvIcKxlo0VPd8KrTb7Gg1ucMjYReM8vJX5CXGqQqRt19n+XLrnXTwDwK+zwyYd /y1W7tZpvoGYZkaR9nCpE0AEX3Sl3FmUM/X1fw9Uy7VKinE2uSx92V3kV9Sj3df9LQSZ yGllCM60PdwAWpu1TH7wtYXGbipTs6eTUmXH1p9ziJeUUYe0C1niI7oxSawafVZRYeY4 xqRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=ojNcrlvtuHHVSm1EDqB6j+t4JokxLw1m9uRCTuUL8Cg=; b=ThOzgW/DOSwxhzgn7Nt22I76ozvnrHZb27zDyoM9zPWZq6VAhUXzio//6AUCBqdOXE KtRO6e9UjeLPQhY12AsoXKEQlMnPQ/0CECrChw5rH1a6SyfWi01x9q8RO5TtPKXt+Xao 9xkeDNPAGWjKStT6Iftocw2jGnO67oSuZbD+PUynSLJVIC5Nj08IrMYL1vemCX3TgqmD ELc4e38tCW8yGq0pW7nQ0CQ1UDwRo0zd9BOkIdIUTBNn2CYgScTccrdwPBNJbdaQEUgl 0+GGWtKRZHRQ/hw96Z/Aw9w+t+8XQHgEMA4pAMEJWaM5cOhqPQNCWzHTbm05QXoX69Hm 8R8g== X-Gm-Message-State: ALKqPwcR4MEhZo2YbM25Zx2zz0r0WVcCbfyg5xsCA3YoMk+pHPllszxa pCYzM2ZqzOqx9woMU7GduiL8Bw== X-Google-Smtp-Source: AB8JxZpUHzqbgJkenu5a9TimMVfaZ/ghRWZrs1eJxCubYkBb6S8cN30atpp3tI0FtdSRFiJql38CNA== X-Received: by 2002:a24:b08:: with SMTP id 8-v6mr11616101itd.30.1527196699976; Thu, 24 May 2018 14:18:19 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id z72-v6sm15389038ioz.64.2018.05.24.14.18.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 May 2018 14:18:18 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> <83po1mcsty.fsf@gnu.org> <87k1rugfxd.fsf@gmail.com> <83fu2hatxv.fsf@gnu.org> Date: Thu, 24 May 2018 17:18:17 -0400 In-Reply-To: <83fu2hatxv.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 May 2018 19:40:12 +0300") Message-ID: <87603chhwm.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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 (-) Eli Zaretskii writes: >> --- i/src/lisp.h >> +++ w/src/lisp.h >> @@ -4662,7 +4662,7 @@ egetenv (const char *var) >> if (INT_MULTIPLY_WRAPV (nelt, word_size, &alloca_nbytes) \ >> || INT_ADD_WRAPV (alloca_nbytes, extra, &alloca_nbytes) \ >> || SIZE_MAX < alloca_nbytes) \ >> - memory_full (SIZE_MAX); \ >> + error ("Oversize allocation (0x%lX)", (size_t) alloca_nbytes); \ >> else if (alloca_nbytes <= sa_avail) \ >> (buf) = AVAIL_ALLOCA (alloca_nbytes); \ >> else \ > > I agree that memory_full is suboptimal here, but "Oversize allocation" > with a number is too technical to be useful to the programmer who > bumps into this problem. We need some text which will indicate that > the program is too "complex" (a better word is needed here) and should > be simplified. Can you come up with something along those lines? Sorry, if my initial response confused things, but I'm fairly certain now that there is no way to trigger this error by compiling a Lisp program in Emacs 26. It would have to require a stack depth of 2^63 (or 2^31 on 32 bit builds), I imagine actual memory exhaustion would happen first. Actually, even though memory_full probably isn't correct, maybe we should just leave it. Triggering this error probably indicates some bug in Emacs, so the first thing to do after hitting it would be to set a breakpoint in gdb; this is a bit more convenient to do with memory_full than Fsignal or error: fewer false positives. From debbugs-submit-bounces@debbugs.gnu.org Fri May 25 02:19:17 2018 Received: (at 31549) by debbugs.gnu.org; 25 May 2018 06:19:17 +0000 Received: from localhost ([127.0.0.1]:47274 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM64K-0005Qi-VN for submit@debbugs.gnu.org; Fri, 25 May 2018 02:19:17 -0400 Received: from eggs.gnu.org ([208.118.235.92]:58250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fM64K-0005QW-2k for 31549@debbugs.gnu.org; Fri, 25 May 2018 02:19:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fM64A-0003Yj-Pw for 31549@debbugs.gnu.org; Fri, 25 May 2018 02:19:10 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52269) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fM64A-0003Ye-Mx; Fri, 25 May 2018 02:19:06 -0400 Received: from [176.228.60.248] (port=1219 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fM64A-0005nZ-67; Fri, 25 May 2018 02:19:06 -0400 Date: Fri, 25 May 2018 09:19:19 +0300 Message-Id: <83r2m09s0o.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87603chhwm.fsf@gmail.com> (message from Noam Postavsky on Thu, 24 May 2018 17:18:17 -0400) Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> <83po1mcsty.fsf@gnu.org> <87k1rugfxd.fsf@gmail.com> <83fu2hatxv.fsf@gnu.org> <87603chhwm.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Noam Postavsky > Cc: ynyaaa@gmail.com, 31549@debbugs.gnu.org > Date: Thu, 24 May 2018 17:18:17 -0400 > > Sorry, if my initial response confused things Seeking the truth doesn't always work in linear ways ;-) > I'm fairly certain now that there is no way to trigger this error by > compiling a Lisp program in Emacs 26. It would have to require a > stack depth of 2^63 (or 2^31 on 32 bit builds), I imagine actual > memory exhaustion would happen first. > > Actually, even though memory_full probably isn't correct, maybe we > should just leave it. Triggering this error probably indicates some bug > in Emacs, so the first thing to do after hitting it would be to set a > breakpoint in gdb; this is a bit more convenient to do with memory_full > than Fsignal or error: fewer false positives. Fine by me, but do we understand what change(s) between 25.3 and 26.1 fixed this problem? If not, maybe we should try to understand that? From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 11:09:59 2018 Received: (at 31549) by debbugs.gnu.org; 27 May 2018 15:09:59 +0000 Received: from localhost ([127.0.0.1]:51066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMxJ0-0006PY-SC for submit@debbugs.gnu.org; Sun, 27 May 2018 11:09:59 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:40751) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMxIy-0006PG-Oa; Sun, 27 May 2018 11:09:57 -0400 Received: by mail-it0-f43.google.com with SMTP id j186-v6so12133776ita.5; Sun, 27 May 2018 08:09:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=/pyxpd8dtscxQVQeXVuNsKPq6QKl82qRNbHv2GjHwvQ=; b=eExkzX309J4R8/DdcazJUARJ4mBrWZ4hcaLjTQ2Hu61FktVI4lHpmvse6rWTzZFDU1 76Ve7rk8+eXRQemYCCgcK+y/6DXbZdGlQ3VIx6MWzqp5FKkcFbX53GgCtlhAeN+HyR+1 +s37CsGJN9Uuk1NlGO/O1VKYs6lBofwc3TEv7aRfcdDw8fuKyMQLzxKWvNptS2dhZKlu gEu9/drjKWxMjvrIIkZYwDkR1mP13u9denaH9E5Ce1wbHmCtTpudFvn/9UTr0VeF05Vv bDXP27dOi6NuIq3JeG+8ZhEMOLN9DLnujwpXlilS5Fc6Q6gzrN2p05jUpiL1GkOwwt5M 9C4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=/pyxpd8dtscxQVQeXVuNsKPq6QKl82qRNbHv2GjHwvQ=; b=jpYa1LNng39v5qFiQvqcAk4xGkqjks5b3vUIPeV7fR0XBk0U24qM2HAyKthHyploBC 5voC5nNGwygosave35BMV8dTWYEZb+ChkmSzgZSAvH1jHqmNqcAkqQ03EViBt9lXl8Mt cWBlSthsOIdyFCMmHjvab3dIdGAmY0zulIapbwYqkOy5kPP7Pt1nNLZT4UCudqbI57zr TKFHij/CVXxQMvnhExy+VYN/ag7c9sVcKpvewODMZr3QJ66ewAaB3ULiC/Ax1AzEruZS n51yYl4BTDLBEIsrp7zvadkMNsRzugmHHkacXRtxpKX8C6pI18b/LQ9gutQ1tYxibnhW mR0g== X-Gm-Message-State: ALKqPwd9BBSN1eGOkhM0Uxg56CgIJJp7/1Xq02c6uzqQtlgqRy1dvHX9 VOWA0hZi86/2QemVsi8K8nto7w== X-Google-Smtp-Source: ADUXVKLrL6Y38L42DslppOR3u5Jyploon3/WG+vYnZCZOEQ2KwBnwMzsOsK+7GVCwp26PMVz34H86A== X-Received: by 2002:a24:3989:: with SMTP id l131-v6mr8757682ita.28.1527433790946; Sun, 27 May 2018 08:09:50 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id e15-v6sm15161217ioc.54.2018.05.27.08.09.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 27 May 2018 08:09:49 -0700 (PDT) From: Noam Postavsky To: Eli Zaretskii Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> <83po1mcsty.fsf@gnu.org> <87k1rugfxd.fsf@gmail.com> <83fu2hatxv.fsf@gnu.org> <87603chhwm.fsf@gmail.com> <83r2m09s0o.fsf@gnu.org> Date: Sun, 27 May 2018 11:09:48 -0400 In-Reply-To: <83r2m09s0o.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 25 May 2018 09:19:19 +0300") Message-ID: <87sh6ddtj7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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 (-) close 31549 quit Eli Zaretskii writes: >> From: Noam Postavsky >> Cc: ynyaaa@gmail.com, 31549@debbugs.gnu.org >> Date: Thu, 24 May 2018 17:18:17 -0400 >> >> Sorry, if my initial response confused things > > Seeking the truth doesn't always work in linear ways ;-) > >> I'm fairly certain now that there is no way to trigger this error by >> compiling a Lisp program in Emacs 26. It would have to require a >> stack depth of 2^63 (or 2^31 on 32 bit builds), I imagine actual >> memory exhaustion would happen first. >> >> Actually, even though memory_full probably isn't correct, maybe we >> should just leave it. Triggering this error probably indicates some bug >> in Emacs, so the first thing to do after hitting it would be to set a >> breakpoint in gdb; this is a bit more convenient to do with memory_full >> than Fsignal or error: fewer false positives. > > Fine by me, but do we understand what change(s) between 25.3 and 26.1 > fixed this problem? If not, maybe we should try to understand that? Ah, here it is, seems pretty straightforward. [1: cb71a119f7]: 2016-08-09 01:31:22 -0700 Remove arbitrary limit on bytecode maxdepth https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=cb71a119f7231984e010cc28ef33854721036a0f From debbugs-submit-bounces@debbugs.gnu.org Sun May 27 12:23:22 2018 Received: (at 31549) by debbugs.gnu.org; 27 May 2018 16:23:22 +0000 Received: from localhost ([127.0.0.1]:51117 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMyS2-0003aP-J6 for submit@debbugs.gnu.org; Sun, 27 May 2018 12:23:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56617) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fMyRz-0003aA-Om for 31549@debbugs.gnu.org; Sun, 27 May 2018 12:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fMyRp-00081o-Km for 31549@debbugs.gnu.org; Sun, 27 May 2018 12:23:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fMyRp-00081i-HT; Sun, 27 May 2018 12:23:09 -0400 Received: from [176.228.60.248] (port=2449 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fMyRo-0004kD-Dg; Sun, 27 May 2018 12:23:08 -0400 Date: Sun, 27 May 2018 19:22:58 +0300 Message-Id: <837enp83vh.fsf@gnu.org> From: Eli Zaretskii To: Noam Postavsky In-reply-to: <87sh6ddtj7.fsf@gmail.com> (message from Noam Postavsky on Sun, 27 May 2018 11:09:48 -0400) Subject: Re: bug#31549: 25.3; bytecompile fails with eval-when-compile References: <8636yknjy1.fsf@gmail.com> <87sh6jgtao.fsf@gmail.com> <83po1mcsty.fsf@gnu.org> <87k1rugfxd.fsf@gmail.com> <83fu2hatxv.fsf@gnu.org> <87603chhwm.fsf@gmail.com> <83r2m09s0o.fsf@gnu.org> <87sh6ddtj7.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 31549 Cc: ynyaaa@gmail.com, 31549@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: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) > From: Noam Postavsky > Cc: ynyaaa@gmail.com, 31549@debbugs.gnu.org > Date: Sun, 27 May 2018 11:09:48 -0400 > > > Fine by me, but do we understand what change(s) between 25.3 and 26.1 > > fixed this problem? If not, maybe we should try to understand that? > > Ah, here it is, seems pretty straightforward. > > [1: cb71a119f7]: 2016-08-09 01:31:22 -0700 > Remove arbitrary limit on bytecode maxdepth Right, thanks. Case closed. From unknown Sat Jun 21 10:32:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 25 Jun 2018 11:24:06 +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