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: Fri, 21 Jul 2017 23:24:19 -0400 Message-ID: <87d18t9msc.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1500693795 16187 195.159.176.226 (22 Jul 2017 03:23:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 22 Jul 2017 03:23:15 +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 Sat Jul 22 05:23:09 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 1dYl0X-0003o1-CW for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Jul 2017 05:23:09 +0200 Original-Received: from localhost ([::1]:45544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYl0b-0004J2-BQ for geb-bug-gnu-emacs@m.gmane.org; Fri, 21 Jul 2017 23:23:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53203) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dYl0T-0004Hl-84 for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 23:23:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dYl0Q-0007Xl-4K for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 23:23:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49082) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dYl0Q-0007Xd-0J for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 23:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dYl0P-0005r7-QX for bug-gnu-emacs@gnu.org; Fri, 21 Jul 2017 23:23: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: Sat, 22 Jul 2017 03:23: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: Original-Received: via spool by 27779-submit@debbugs.gnu.org id=B27779.150069377322495 (code B ref 27779); Sat, 22 Jul 2017 03:23:01 +0000 Original-Received: (at 27779) by debbugs.gnu.org; 22 Jul 2017 03:22:53 +0000 Original-Received: from localhost ([127.0.0.1]:51759 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYl0G-0005qg-T6 for submit@debbugs.gnu.org; Fri, 21 Jul 2017 23:22:53 -0400 Original-Received: from mail-it0-f45.google.com ([209.85.214.45]:33654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dYl0E-0005qK-PI; Fri, 21 Jul 2017 23:22:51 -0400 Original-Received: by mail-it0-f45.google.com with SMTP id a62so3789874itd.0; Fri, 21 Jul 2017 20:22:50 -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=BZRDgWIbP/Vh+jANZdJtMOrUNEAEfVEJRiUSJYpCcKg=; b=qljmU+dzvzGaKF048BlfRFJY1Wpt2/4g1IqkafQYWa3imhTIhJ0HoezRpm3aoRpfe/ x8xB8n2C6FtTzc1jGE1siI6e7bdQpD2jVexvbOfVAzIse8AE7TQJYdMp8Rqz/N6gu9NA jJkmC7FFXovC/+6cUHlf7xP1Hfctm9vEmOAWKQgJsJDrYvtu6DQ+TWsfhF8b0ZqMZSVH Vtr6OTkUlDapYPPBfC+a8f4g8+v8aDy5cvVlVV7uGvXGt59DZf+JMKbNajSQqMRFi54c EtHI3sIfNYGKZvuLwJ/5kcg3uwmMI4BJx72Ln2NcWQXBpJeBCCMiTrqHlJqR9M1WsPot qB/w== 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=BZRDgWIbP/Vh+jANZdJtMOrUNEAEfVEJRiUSJYpCcKg=; b=n6b9QzgbHqohhhpIG8knng5cYmXdqFMm1u0XPL0ihmEd8O+5b4WX8klihIyZgEVXJ9 P887u3T0qmk2R+iwXuDjaVk+E7UaeKigHGVoags/2G+jHZK0UJ5LogDqtTMfrJ+1eMTK Am9pcZq326Cgkdkm3GDhgQgeH0rXJxIV0ZOK6qQshtargN1aEQFyGcsbUg5mkqBRzRme ZFPwrAi4LoyklkTj8kGoEoatF6M2H1gUoCXUyf/YoWzTw73K4FMvCKN+VN4REglta7WU T7/sgDD1az5YJDzBrDMm/PWWz6tYT9LCj0OZ4B7KwF4p4cTDS6JCqUxbDmZgSMlQ+GMM L74w== X-Gm-Message-State: AIVw113tAqGGC/fBt/tI4Byi9iROE74VoOSm42Y6/YNLATBE7VVVgcvt MHRZ1ztiPBfxULUs X-Received: by 10.36.68.193 with SMTP id o184mr983154ita.59.1500693765173; Fri, 21 Jul 2017 20:22:45 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id a127sm1347483itd.33.2017.07.21.20.22.43 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Jul 2017 20:22:44 -0700 (PDT) In-Reply-To: (Keith David Bershatsky's message of "Thu, 20 Jul 2017 20:03:04 -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:134838 Archived-At: tags 27779 + confirmed quit Keith David Bershatsky writes: > Perhaps we can use a prior function written by @npostavs -- > (make-deep-object DEPTH) -- to create a large enough example of nested > vectors and lists such that someone on the Emacs development team can > duplicate the C stack overflow with `read`: > > (require 'cl-lib) > > (defun make-deep-object (depth) > (let ((obj 1)) > (while (> (cl-decf depth) 0) > (setq obj (vector (list obj)))) > obj)) Hah, yes, it seems that `read' uses up more stack than `print', e.g., (make-deep-object 4600) succeeds, but (read (prin1-to-string (make-deep-object 4600))) overflows.