From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Keith David Bershatsky Newsgroups: gmane.emacs.bugs Subject: bug#27571: Crashing when printing a lisp object. Date: Mon, 03 Jul 2017 19:32:52 -0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Trace: blaine.gmane.org 1499135654 4499 195.159.176.226 (4 Jul 2017 02:34:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2017 02:34:14 +0000 (UTC) Cc: 27571@debbugs.gnu.org To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 04 04:34:07 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 1dSDfC-0000m8-6l for geb-bug-gnu-emacs@m.gmane.org; Tue, 04 Jul 2017 04:34:06 +0200 Original-Received: from localhost ([::1]:38354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSDfH-0007u3-HC for geb-bug-gnu-emacs@m.gmane.org; Mon, 03 Jul 2017 22:34:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSDfB-0007tk-UZ for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 22:34:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSDf8-0006Ff-R8 for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 22:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48351) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSDf8-0006FV-JQ for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 22:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dSDf8-0000TE-7B for bug-gnu-emacs@gnu.org; Mon, 03 Jul 2017 22:34:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Keith David Bershatsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Jul 2017 02:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27571 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 27571-submit@debbugs.gnu.org id=B27571.14991356021757 (code B ref 27571); Tue, 04 Jul 2017 02:34:02 +0000 Original-Received: (at 27571) by debbugs.gnu.org; 4 Jul 2017 02:33:22 +0000 Original-Received: from localhost ([127.0.0.1]:51028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSDeT-0000SH-N8 for submit@debbugs.gnu.org; Mon, 03 Jul 2017 22:33:21 -0400 Original-Received: from gateway34.websitewelcome.com ([192.185.148.104]:41665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dSDeS-0000S6-Ae for 27571@debbugs.gnu.org; Mon, 03 Jul 2017 22:33:21 -0400 Original-Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway34.websitewelcome.com (Postfix) with ESMTP id 293D74360F for <27571@debbugs.gnu.org>; Mon, 3 Jul 2017 21:32:53 -0500 (CDT) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id SDdxdXEfuZqNPSDdxd6T9v; Mon, 03 Jul 2017 21:32:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lawlist.com ; s=default; h=Content-Type:MIME-Version:Subject:Cc:To:From:Message-ID:Date: Sender:Reply-To: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=1B2HHNHCAKysjusghjffT8NQ3xwiUpF0fHKIJzy67T4=; b=R6JrTCZKDPvM6AT8Me6QuQFB5d XEI8DUD3/MQZyGz3z3uO3k7E4jbDoEN0EXmS82cWJqomXmdZ5POvDfTWuAW3HSFVo4o3oOJvtc2c/ 7NHmWIttpAafqNjtUkwlbDNXSK5KX4EA75+K9RnPYqWy7EltTr3FQcKwrsNOxU1W49ten0TQUXpOH C0hptbm2I+f2NnG9Jd9um1Ny/uZGyYFpz9W9nYodUMqzv9e1/oPTTLQHCn09Lc/S6a/iyVH8iBRp3 l+X442mi6YP+Vd6UlImD8H46muu6u2U0zeO1Id1wy8OTI6HvWKDVesruAOQDooACxTaL7ke1dHs6Z ZaLVUO/Q==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:51804 helo=server.local) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.87) (envelope-from ) id 1dSDe0-000Tzw-PF; Mon, 03 Jul 2017 21:32:52 -0500 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator3053.hostgator.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lawlist.com X-BWhitelist: no X-Source-IP: 45.48.239.195 X-Exim-ID: 1dSDe0-000Tzw-PF X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.local) [45.48.239.195]:51804 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t 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:134155 Archived-At: Thank you, @npostavs, for taking a look at this issue. The 26-count example (which does *not* crash) is a mini-version of the 6651-count example that I am using to replicate the crash. It may not possible to create a copy of the 6652-count example that crashes, because Emacs crashes before `prin1` can finish. The 6651-count example does *not* crash. I'll continue reading about how to increase the ulimit on OSX and try to find out whether this is a system-wide setting, or whether it can be done inside Emacs without modifying the system settings. Last login: Mon Jul 3 17:31:55 on ttys000 server:~ HOME$ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited max locked memory (kbytes, -l) unlimited max memory size (kbytes, -m) unlimited open files (-n) 256 pipe size (512 bytes, -p) 1 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 1250 virtual memory (kbytes, -v) unlimited server:~ HOME$ I load the 6651-count example using `read`, then I type a character, then I transfer the most recent entry from the buffer-undo-list to the undo tree history (in this case just one character breaks the camel's back) and then Emacs will crash if I call `prin1` on the history variable with `print-circle` set to `t`. I will work on trying to come up with a way to create the 6652-count example that doesn't involve using the custom version of undo-tree to go from a count of 6651 to a count of 6652. In terms of the reference to line 1350, I'm not sure what that refers to. The undo-tree history variable is buffer local, and I call `(prin1 my-history-variable (current-buffer))` and the current buffer is just a temp buffer that never gets populated because Emacs crashes. Or, at least, I never get to see the temporary buffer before Emacs crashes. Keith