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: C stack overflow from `prin1' on deeply nested lisp object. Date: Sun, 28 Jan 2018 20:26:07 -0800 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 1517199919 12407 195.159.176.226 (29 Jan 2018 04:25:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 29 Jan 2018 04:25:19 +0000 (UTC) Cc: 27571@debbugs.gnu.org To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 29 05:25:15 2018 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 1eg10G-0002VG-2j for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Jan 2018 05:25:08 +0100 Original-Received: from localhost ([::1]:35906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eg12G-0000L8-N5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Jan 2018 23:27:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eg12A-0000KY-61 for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 23:27:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eg127-0002aY-1p for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 23:27:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39133) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eg126-0002aP-QV for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 23:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eg126-0000cQ-BI for bug-gnu-emacs@gnu.org; Sun, 28 Jan 2018 23:27:02 -0500 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: Mon, 29 Jan 2018 04:27: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: confirmed Original-Received: via spool by 27571-submit@debbugs.gnu.org id=B27571.15171999732316 (code B ref 27571); Mon, 29 Jan 2018 04:27:02 +0000 Original-Received: (at 27571) by debbugs.gnu.org; 29 Jan 2018 04:26:13 +0000 Original-Received: from localhost ([127.0.0.1]:47030 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eg11I-0000bI-OK for submit@debbugs.gnu.org; Sun, 28 Jan 2018 23:26:12 -0500 Original-Received: from gateway21.websitewelcome.com ([192.185.45.159]:11346) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eg11G-0000b9-KB for 27571@debbugs.gnu.org; Sun, 28 Jan 2018 23:26:11 -0500 Original-Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway21.websitewelcome.com (Postfix) with ESMTP id BCC87400D959B for <27571@debbugs.gnu.org>; Sun, 28 Jan 2018 22:26:09 -0600 (CST) Original-Received: from gator3053.hostgator.com ([50.87.144.69]) by cmsmtp with SMTP id g11FeYGkgcGlpg11FeatRp; Sun, 28 Jan 2018 22:26:09 -0600 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=813sdx+ospDsTbomN8ETlQZ8fYy5nB0CzcWqW/CIMVk=; b=DSj1Zm+rP6MCPpDkqsA5uniGLz 4qI7sty2RjpT/x8hu7aItalLqag+56uukJ37eT8KpCVvewE7yv+A1yZiu8HfzeB/sVuMk5+vS77Dy H0wT9EomyoW2FZUR33yWLCqMa6vd8uXE9k0oq8wRgLpSUUbN0ygKTR6RhMOi7xoR7/w1z1kuM8m+s joczwFzhm9khEv0MW9BNMU1N+Qb9q8cgx8LadBCAhAo0t9DMM+NGzvvlwJ6iwx6Jj+7qFAPhAMm/l 2G5BOVJYpZtrGE+umJlRTXNJMgqpTqQ+200HvG2KBj4i8NvWfOzuImIv1do9TVmqoOANRZ0bUReUI Z18Tldlw==; Original-Received: from cpe-45-48-239-195.socal.res.rr.com ([45.48.239.195]:49619 helo=server.private) by gator3053.hostgator.com with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.89_1) (envelope-from ) id 1eg11E-003eET-IK; Sun, 28 Jan 2018 22:26:08 -0600 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-Source-L: No X-Exim-ID: 1eg11E-003eET-IK X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: cpe-45-48-239-195.socal.res.rr.com (server.private) [45.48.239.195]:49619 X-Source-Auth: lawlist X-Email-Count: 1 X-Source-Cap: bGF3bGlzdDtsYXdsaXN0O2dhdG9yMzA1My5ob3N0Z2F0b3IuY29t X-Local-Domain: yes 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:142641 Archived-At: After several Google searches, it appears that there is a 65532 (65 MB) hard limit on the stack size for OSX 10.6.8 and at least a few subsequent iterations of the OS. $ ulimit -a * * * stack size (kbytes, -s) 8192 * * * $ ulimit -s 65533 -bash: ulimit: stack size: cannot modify limit: Operation not permitted $ ulimit -s 65532 $ [Back to a command prompt without any error message; i.e., the operation succeeded.] We now know that `ulimit -S -s unlimited` gives me only 65532. I still have a note on my "to-do list" to perform hard resets of Emacs 25 branch going back in time to each of the thirteen (13) commits mentioned in Message #41 of this thread to pinpoint which one caused me to launch this bug#27571 pursuant to the merge commit on November 19, 2016 (c61ee94959ba96b2a327df0684593f7e569e30be). Things seemed to be working well prior to that commit, and reversing that commit as to emacs.c appears to make things work well again on my end. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27571#41 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; DATE: [01-28-2018 16:13:40] <28 Jan 2018 19:13:40 -0500> FROM: Noam Postavsky > > Keith David Bershatsky writes: > > >> > Second, I _did_ manually set the terminal with `ulimit -S -s > >> > unlimited`. The STDERR message when I open Emacs is: > >> > > >> > getrlimit: 0 > >> > > >> > rlim.rlim_cur: 67104768 > > > Starting a fresh terminal session, with no special settings: > > > > $ ulimit -H -s > > > > 65532 > > Ah, 65532 * 1024 = 67104768, so there we are. You just need to figure > out if and how that limit can be lifted.