From debbugs-submit-bounces@debbugs.gnu.org Sun May 29 18:59:11 2016 Received: (at submit) by debbugs.gnu.org; 29 May 2016 22:59:11 +0000 Received: from localhost ([127.0.0.1]:46701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b79fr-0006jx-Gs for submit@debbugs.gnu.org; Sun, 29 May 2016 18:59:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:37170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b759y-0008Fu-2y for submit@debbugs.gnu.org; Sun, 29 May 2016 14:09:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b759r-0001pr-FN for submit@debbugs.gnu.org; Sun, 29 May 2016 14:09:52 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,XPRIO autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b759r-0001pn-CZ for submit@debbugs.gnu.org; Sun, 29 May 2016 14:09:51 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b759p-00039v-2n for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 14:09:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b759k-0001pO-QP for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 14:09:47 -0400 Received: from mout.gmx.net ([212.227.17.20]:57350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b759k-0001pB-GC for bug-gnu-emacs@gnu.org; Sun, 29 May 2016 14:09:44 -0400 Received: from [91.60.26.118] by msvc-mesg-gmx014.server.lan (via HTTP); Sun, 29 May 2016 20:09:41 +0200 MIME-Version: 1.0 Message-ID: From: ju.schmidt@gmx.de To: bug-gnu-emacs@gnu.org Subject: 25.1.50; edebug-read-sexp: infinite recursion when reading backquote or comma Content-Type: text/plain; charset=UTF-8 Importance: normal Date: Sun, 29 May 2016 20:09:41 +0200 X-Priority: 3 X-Provags-ID: V03:K0:P/pOYXiVzZ+ewQkeXWXCvnL6pnnQr2Xc9dRBUWwy2s0 LYNGqCE7/sSnpWqKmnW/Cb5SBjZT6ce+/fViozblvKNO/o5/z7 2/NqUk1wvxvo7EKcNLZsJS2AfB1SnnrmvTMAdwHacHqCpqJITT VH6+oGjXUWYZIXxyGnQaoE1l+Ryt4MLrsCLusD5D8E42TcXDZ3 O+/VVoqfiHk31oDH+2MrHB//Vn9m1K4rFV60D/Vabt4qyYlRgF Jpmq0NFtD4Gt6CRY5kgJDd6mqh//L9eKq7Hb5j1dPDvH0+J5sg ln4fCY= X-UI-Out-Filterresults: notjunk:1;V01:K0:8P43l0X6K0I=:iuzMCR9iGL5jZe/rRNPoRe ShjnEttnvkAcU1oOX9g+UL2gUqByq4P3SbWnCYzwzILUm/+BDaPp7r/NjuMcWANlJCs1xv+L7 w/mFu2dMcbFKLjJTE79vkyUkUNbiOCJHCX74NB34K3+mfScjdzd/r3WIN+mZK3jBXpchEmpbA bebx9Le7AbO2D9f/3dLKlTssYcY5MfFKgd0hkmEgQGO/nZBPm+lsgCvPFqE0IDvRPr9F3Bw6N e2Jsw9AwJVY8RpWETNrIY1LcG1hpIuKgrpum61OjBEVqMOK1Wfqm3D8XGsdEXhxX9yn6Cj/Tk QhdiQQUPqACOZ71mE3im5PhxWluhNhjcJU5h+SgwUN4D7zrNVH2HcVA3ambHlIx4uoICQBJ4A 6bkO6TfCXgJsJhgDTwZsuBOhjmXrhXUUTIi59QXFTxwQq4L/pCwzvWS2mWDLwsTGNFjZ5p2PB PW2oxt0s99tOj2eJGY6B1C2AAIaynKsTIrvSPwMVipgG/aPnbhHI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.1 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 29 May 2016 18:59:09 -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: -4.1 (----) Start emacs with -Q, do M-: and type "(require 'edebug)". Then write this in buffer "*scratch*": `1 Then do M-: and type "(edebug-eval-defun)". It will give this error: "edebug-read-sexp: Lisp nesting exceeds `max-lisp-eval-depth'" (The documentation for edebug-eval-defun says that this should display "1" instead of giving an error). One gets the same error when the buffer contains this instead: ,1 This is caused by an endless recursion in edebug-read-sexp which apparently can be fixed like this: diff --git a/lisp/emacs-lisp/edebug.el b/lisp/emacs-lisp/edebug.el index c283c16..4254862 100644 --- a/lisp/emacs-lisp/edebug.el +++ b/lisp/emacs-lisp/edebug.el @@ -722,9 +722,9 @@ edebug-read-sexp ((eq class 'string) (read (current-buffer))) ((eq class 'quote) (forward-char 1) (list 'quote (edebug-read-sexp))) - ((eq class 'backquote) + ((eq class 'backquote) (forward-char 1) (list '\` (edebug-read-sexp))) - ((eq class 'comma) + ((eq class 'comma) (forward-char 1) (list '\, (edebug-read-sexp))) (t ; anything else, just read it. (read (current-buffer)))))) Configured using: 'configure --prefix=/home/jhs/local --with-xpm=no --with-gif=no --with-tiff=no PKG_CONFIG_PATH=/home/jhs/local/lib/pkgconfig' Configured features: JPEG PNG SOUND DBUS GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: 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 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 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 map mail-extr emacsbug message puny seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd 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 term/tty-colors 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 obarray 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 dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 98461 8207) (symbols 48 20696 0) (miscs 40 33 93) (strings 32 17428 3931) (string-bytes 1 532970) (vectors 16 11481) (vector-slots 8 395373 4073) (floats 8 185 220) (intervals 56 207 0) (buffers 976 11) (heap 1024 33354 1491)) From debbugs-submit-bounces@debbugs.gnu.org Sat Mar 25 14:39:16 2017 Received: (at 23651) by debbugs.gnu.org; 25 Mar 2017 18:39:16 +0000 Received: from localhost ([127.0.0.1]:44603 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crqaq-0001tU-F6 for submit@debbugs.gnu.org; Sat, 25 Mar 2017 14:39:16 -0400 Received: from mail-it0-f42.google.com ([209.85.214.42]:36296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1crqao-0001tC-Fz; Sat, 25 Mar 2017 14:39:14 -0400 Received: by mail-it0-f42.google.com with SMTP id w124so37473156itb.1; Sat, 25 Mar 2017 11:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=N44io8OjhErQ3oVm1g0la/DHn7e0L9ykOUPvlSdQfgQ=; b=okaRgd3VRbD7hJM0gfklSq71JDP/hdAwv3+h1Lu4F45htH/zKVBSYYSq4gDDoO+oFl +YL7weeZrIG+ZtXv/CPOJ8WBgIcxqCBzBHhzQj8VxrXM6Pdwa0e89HMYYzKm6GFJ4FeB HJYaKaJgXWDhMLQ/NdIu8qGeliVSJhlSoBbl9TuWuwRXsfY6kcw8T9Ft/5J+hUs1UPDf w9eGce0GLlwRBXthRKeVlI4SfxY09/NAxHs22Zox6jzxQRIWxEO6Ysf2PisDBi5JQnEW nh2zOT5kO6PKYNgaoo2Rmtf4vE/gnL/i8HzfakppueEXprieEqHkUm+iBD1CkJkai10f Xh1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=N44io8OjhErQ3oVm1g0la/DHn7e0L9ykOUPvlSdQfgQ=; b=c/8XG8/f+WI7oziPbIdgYJ5y8mTRJSFylY4Xhr7h4Q9rn7g0Y4RCg/BWgd5i7G1c1h 9gBiTDrpjXQ6eEZ74cqL0IQGuwznK1wtu2wVxkC8qG3uaVkWHHiTBrjmsuoOCE1bOpX1 oO2BmeMjeO8LIfPzzwT0dW33NMPjZkpLD/wN1GR/kEccvFSPsGZifxpEK84+Pf+Q7ge1 UdgEQXCwSqsph0qu7ybREuOUJhCUzrDCM6szd0e7Bx1QqbLmJLHqZpIDLc2iwQ5VAVg3 1l0ww0763G2X7BRYV4kTiYjev2LQwru311sLqWZi54LZ1i2OA7ssmthN5LsV6BYO/vxA PSaw== X-Gm-Message-State: AFeK/H32SYdbnY5YaJRIPeGOTvOJcC24nc71V/2OIjkDf70l7UIZGsxwSDleBrFiDloygA== X-Received: by 10.36.4.88 with SMTP id 85mr2728634itb.92.1490467148994; Sat, 25 Mar 2017 11:39:08 -0700 (PDT) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id 9sm2800512itm.12.2017.03.25.11.39.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Mar 2017 11:39:08 -0700 (PDT) From: npostavs@users.sourceforge.net To: ju.schmidt@gmx.de Subject: Re: bug#23651: 25.1.50; edebug-read-sexp: infinite recursion when reading backquote or comma References: Date: Sat, 25 Mar 2017 14:40:31 -0400 In-Reply-To: (ju schmidt's message of "Sun, 29 May 2016 20:09:41 +0200") Message-ID: <87wpbdyzc0.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 23651 Cc: 23651@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: 0.7 (/) tags 23651 fixed close 23651 26.1 quit ju.schmidt@gmx.de writes: > Start emacs with -Q, do M-: and type "(require 'edebug)". Then write > this in buffer "*scratch*": > > `1 > > Then do M-: and type "(edebug-eval-defun)". It will give this error: > > "edebug-read-sexp: Lisp nesting exceeds `max-lisp-eval-depth'" > > (The documentation for edebug-eval-defun says that this should display > "1" instead of giving an error). > > One gets the same error when the buffer contains this instead: > > ,1 > > This is caused by an endless recursion in edebug-read-sexp which > apparently can be fixed like this: Pushed to master [1: 5f6ef7cba8]. 1: 2017-03-25 14:38:29 -0400 5f6ef7cba8200d19198e42a9a76fef1618b5f233 Stop edebug getting stuck on backquote (Bug#23651) From unknown Mon Jun 23 07:51:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 23 Apr 2017 11:24:05 +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