From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ryan Johnson Newsgroups: gmane.emacs.devel Subject: Re: 64-bit emacs crashes a lot Date: Fri, 16 Aug 2013 17:20:31 -0400 Message-ID: <520E979F.5050903@cs.utoronto.ca> 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> 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 1376688059 31148 80.91.229.3 (16 Aug 2013 21:20:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2013 21:20:59 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 16 23:21:00 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 1VARS6-0004bb-GJ for ged-emacs-devel@m.gmane.org; Fri, 16 Aug 2013 23:20:58 +0200 Original-Received: from localhost ([::1]:33183 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VARS6-0007qL-0G for ged-emacs-devel@m.gmane.org; Fri, 16 Aug 2013 17:20:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VARRz-0007q1-1C for emacs-devel@gnu.org; Fri, 16 Aug 2013 17:20:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VARRt-0005zK-VM for emacs-devel@gnu.org; Fri, 16 Aug 2013 17:20:50 -0400 Original-Received: from bureau93.ns.utoronto.ca ([128.100.132.251]:58357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VARRt-0005z0-QG; Fri, 16 Aug 2013 17:20:45 -0400 Original-Received: from [192.168.0.106] (76-10-140-156.dsl.teksavvy.com [76.10.140.156]) (authenticated bits=0) by bureau93.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id r7GLKc1Z024100 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Aug 2013 17:20:39 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <520E8CAF.3070601@cornell.edu> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.100.132.251 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:162830 Archived-At: On 16/08/2013 4:33 PM, Ken Brown wrote: > On 8/16/2013 3:37 PM, Eli Zaretskii wrote: >>> Date: Fri, 16 Aug 2013 13:12:17 -0400 >>> From: Ken Brown >>> CC: ryan.johnson@cs.utoronto.ca, emacs-devel@gnu.org >>> >>> I'm attaching two of them. The first was a SEGV, the second was an >>> abort. >> >> Both in regex.c. >> >>> Lisp Backtrace: >>> >>> Breakpoint 1, terminate_due_to_signal (sig=6, >>> backtrace_limit=2147483647) >>> at emacs.c:341 >>> 341 { >>> The program being debugged stopped while in a function called from GDB. >>> Evaluation of the expression containing the function >>> (backtrace_function) will be abandoned. >>> When the function is done executing, GDB will silently stop. >> >> Here, GDB called backtrace_function, which triggered an assertion >> violation. Which probably means that the array of specbindings >> (specpdl) is corrupted. >> >> Is it possible that the stack of the 64-bit Cygwin binary is too >> small? Can you try building Emacs with a larger stack? > > You are brilliant! I added LDFLAGS='-Wl,--stack,4194304' to the > compilation, and the bug is gone. Thank you. > > Ryan, can you confirm that this fixes the problem for your real uses > of M-x compile? I've been using it for an hour or so with no problems. Even the optimized build refuses to crash in 200-300 M-x compile cycles, which is enough to satisfy me. Thanks for all the help, I was pulling my hair out with this one... Ryan