From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#27779: 26.0.50: read -- Re-entering top level after C stack overflow Date: Sat, 22 Jul 2017 22:45:14 -0400 Message-ID: <87r2x798hx.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500777860 25595 195.159.176.226 (23 Jul 2017 02:44:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 23 Jul 2017 02:44:20 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2.50 (gnu/linux) Cc: 27779@debbugs.gnu.org To: Keith David Bershatsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jul 23 04:44:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ6sN-00066H-7q for geb-bug-gnu-emacs@m.gmane.org; Sun, 23 Jul 2017 04:44:11 +0200 Original-Received: from localhost ([::1]:48998 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZ6sR-0000AY-01 for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jul 2017 22:44:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dZ6sH-0000AR-Jq for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2017 22:44:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dZ6sE-00085e-Ea for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2017 22:44:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50106) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dZ6sE-00085T-BG for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2017 22:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dZ6sD-0003UI-UR for bug-gnu-emacs@gnu.org; Sat, 22 Jul 2017 22:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 23 Jul 2017 02:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27779 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 27779-submit@debbugs.gnu.org id=B27779.150077782813380 (code B ref 27779); Sun, 23 Jul 2017 02:44:01 +0000 Original-Received: (at 27779) by debbugs.gnu.org; 23 Jul 2017 02:43:48 +0000 Original-Received: from localhost ([127.0.0.1]:52783 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ6s0-0003Tk-Jj for submit@debbugs.gnu.org; Sat, 22 Jul 2017 22:43:48 -0400 Original-Received: from mail-io0-f195.google.com ([209.85.223.195]:37754) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dZ6ry-0003TX-9n for 27779@debbugs.gnu.org; Sat, 22 Jul 2017 22:43:47 -0400 Original-Received: by mail-io0-f195.google.com with SMTP id p5so2295440ioo.4 for <27779@debbugs.gnu.org>; Sat, 22 Jul 2017 19:43:46 -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=28aSGaQyk78+rgtgei74orSnPNchsvvy/HIQhvSQsag=; b=tWAjdsP2KtTTnu9B33VA9NFt53rRkKMw5oA7i/Shm5u7qn8gyhxl0WMkOxvOiLxDHW UUoEl06txUhXxE0YkITGwVWkuQjjfNrOjovgQdqNEj80hIl7BiSg+02R9n4Fkuk3yS4V KTCVjm1W6iSTXViryX5wdGQXW1HYrY9RnyV5yA5NYwxxIlMmJFL4kxnSPlOWSUp2LCN9 Gw/WJUk6CD8aLIJuWBACiVznBJuluALm5VbwCUUrY0MWZ5SuiEVcAnsHfrdmOofHYJA9 SrXFsbYCbRKNwjmD7eZeqhvyLvKI832cebn5vxMo6JsxswjvQFqkz4+ZdSSf1iaBQsvZ wkgA== 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=28aSGaQyk78+rgtgei74orSnPNchsvvy/HIQhvSQsag=; b=qnjpK6gvuO0n7NErhUqpdj/EvGHNZExuErSfsKu/f1uQvFzX8Pas1B9Q+Xcb665qAv TsblAgdTu7eD3nTpzKFrWLbiI8J2S7oDrd1gV7oAEhm3Sw63xstK4Zw0IniGZauZ1MSb 3lnidFMmZ32tcbl8EMxFxksC9Bx/9ExqbAXiWlvT3SiTmEF0m2zAibY+BafKiss1J4ek j1UsQ1uUtnRMZjjk8LWwAO8MrKs5CKxx3aoazlIQ8T5YDElKYfO27xNM4b5pON9zrK6Q MmQ5N4oEkJFcmOui/6+oFIRPE6m9eYpRy9ACpGKTDwu1pZulB9jpFJSMu/D51Ldt/Pk8 c3TQ== X-Gm-Message-State: AIVw1119cIT5/1UDZvgBKCO+xHNGmCFoO3wrwOPRkyfzK5CspA+8abhs SbsT8gfAIfODqSIm X-Received: by 10.107.170.170 with SMTP id g42mr201725ioj.19.1500777820465; Sat, 22 Jul 2017 19:43:40 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id b17sm2212138itd.0.2017.07.22.19.43.39 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 22 Jul 2017 19:43:39 -0700 (PDT) In-Reply-To: (Keith David Bershatsky's message of "Sat, 22 Jul 2017 14:31:35 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134870 Archived-At: Keith David Bershatsky writes: > By process of elimination via the lo-tech method of trying different > nightly builds from https://emacsformacosx.com/builds/all , I have > determined that December 8, 2016 was the last build where I am able to > successfully run from the terminal: Likely candidate: [1: f0a1e9ec3f], specifically the addition of stackbuf in this hunk means read1 will use a lot more stack per call. @@ -2541,8 +2556,9 @@ read_integer (Lisp_Object readcharfun, EMACS_INT radix) read1 (Lisp_Object readcharfun, int *pch, bool first_in_list) { int c; - bool uninterned_symbol = 0; + bool uninterned_symbol = false; bool multibyte; + char stackbuf[MAX_ALLOCA]; *pch = 0; > At some point AFTER June 11, 2017, Emacs changed from > crashing to just throwing an error message "Re-entering top level > after C stack overflow". I presume that's from [2: 9dee1c884e]. [1: f0a1e9ec3f]: 2016-12-08 13:00:32 -0800 Make read1 more reentrant http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=f0a1e9ec3fba3d5bea5bd62f525dba3fb005d1b1 [2: 9dee1c884e]: 2017-07-14 04:57:18 -0700 Improve stack-overflow heuristic on GNU/Linux http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=9dee1c884eb50ba282eb9dd2495c5269add25963