From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: 64-bit emacs crashes a lot Date: Sat, 17 Aug 2013 08:17:23 -0400 Message-ID: <520F69D3.8060205@cornell.edu> References: <51F3151D.7040000@cs.utoronto.ca> <51F33565.1090406@cornell.edu> <51F33F52.4060405@cs.utoronto.ca> <51FB1D9E.5090102@cs.utoronto.ca> <20130802080211.GA18054@calimero.vinschen.de> <51FB9228.2020309@cornell.edu> <51FBA100.90005@cs.utoronto.ca> <51FD5462.5020400@cs.utoronto.ca> <51FFBDFF.7040501@cornell.edu> <51FFC4F2.8080909@cs.utoronto.ca> <5203D89E.6030801@cornell.edu> <5203DCCA.1010105@cs.utoronto.ca> <5205B364.8090007@cs.utoronto.ca> <52064730.50404@cornell.edu> <"52065B3C.6060104@cs.utoronto <520CCA41.3000107"@cs.utoronto.ca> <520D089A.1020806@cornell.edu> <83ioz6op5v.fsf@gnu.org> <520D4036.8010303@cs.utoronto.ca> <520D900A.8000907@cornell.edu> <834naqnh9t.fsf@gnu.org> <520E0FF8.1070709@cs.utoronto.ca> <83txipn4n4.fsf@gnu.org> <520E3510.8080101@cornell.edu> <83eh9tmyg7.fsf@gnu.org> <520E5D71.3020307@cornell.edu> <837gflmnpw.fsf@gnu.org> <520E8CAF.3070601@cornell.edu> <8338q8n6lo.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1376741898 8742 80.91.229.3 (17 Aug 2013 12:18:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Aug 2013 12:18:18 +0000 (UTC) Cc: ryan.johnson@cs.utoronto.ca, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 17 14:18:20 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VAfSU-0000xS-SD for ged-emacs-devel@m.gmane.org; Sat, 17 Aug 2013 14:18:18 +0200 Original-Received: from localhost ([::1]:35748 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAfSU-0000Sh-8N for ged-emacs-devel@m.gmane.org; Sat, 17 Aug 2013 08:18:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAfSL-0000K6-Hi for emacs-devel@gnu.org; Sat, 17 Aug 2013 08:18:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAfSF-0000WS-Cp for emacs-devel@gnu.org; Sat, 17 Aug 2013 08:18:09 -0400 Original-Received: from limerock04.mail.cornell.edu ([128.84.12.60]:48436) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAfS9-0000VD-3A; Sat, 17 Aug 2013 08:17:57 -0400 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock04.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id r7HCHgb7010298; Sat, 17 Aug 2013 08:17:42 -0400 Original-Received: from [192.168.1.5] (cpe-67-249-194-47.twcny.res.rr.com [67.249.194.47]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id r7HCHfnZ031125 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 17 Aug 2013 08:17:42 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: <8338q8n6lo.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 128.84.12.60 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162841 Archived-At: On 8/17/2013 3:01 AM, Eli Zaretskii wrote: >> Date: Fri, 16 Aug 2013 16:33:51 -0400 >> From: Ken Brown >> I added LDFLAGS='-Wl,--stack,4194304' to the compilation, and the >> bug is gone. Thank you. > > So what size of stack was Emacs using before that? Whatever is the default on Cygwin; I never used '--stack' to change it until yesterday. 'ulimit -s' returns 2025, so I guess that means the default stack is only 2MB. I've asked on the Cygwin list whether this should be increased. > FWIW, even the 32-bit native Windows build uses twice that number > (8MB), so perhaps enlarge the parameter even more. OK. > Also please note that Ryan couldn't build with --enable-checking=all > because the value of STATIC_HEAP_SIZE in sheap.c was too small. I > suggest to enlarge it as needed. The reason Ryan had to increase it is that he was building from my patched sources for the Cygwin distribution. I deliberately reduce the static heap for that build, because building from the source tarball doesn't require as big a static heap as a bootstrap. I bootstrapped the trunk yesterday with --enable-checking=all and the static heap was big enough for that (but just barely). Thanks. Ken