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 10:16:59 -0400 Message-ID: <520E345B.2050100@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> 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 1376664539 31767 80.91.229.3 (16 Aug 2013 14:48:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Aug 2013 14:48:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 16 16:49:01 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 1VALKn-0002HE-0e for ged-emacs-devel@m.gmane.org; Fri, 16 Aug 2013 16:49:01 +0200 Original-Received: from localhost ([::1]:59464 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VALKm-000629-L9 for ged-emacs-devel@m.gmane.org; Fri, 16 Aug 2013 10:49:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAKq1-0006B2-HU for emacs-devel@gnu.org; Fri, 16 Aug 2013 10:17:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VAKpv-0000KL-Rg for emacs-devel@gnu.org; Fri, 16 Aug 2013 10:17:13 -0400 Original-Received: from bureau85.ns.utoronto.ca ([128.100.132.185]:38243) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VAKpv-0000KE-NC; Fri, 16 Aug 2013 10:17:07 -0400 Original-Received: from [192.168.0.106] (76-10-140-156.dsl.teksavvy.com [76.10.140.156]) (authenticated bits=0) by bureau85.ns.utoronto.ca (8.13.8/8.13.8) with ESMTP id r7GEH5T9007351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 16 Aug 2013 10:17:06 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <83txipn4n4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 128.100.132.185 X-Mailman-Approved-At: Fri, 16 Aug 2013 10:48:56 -0400 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:162814 Archived-At: On 16/08/2013 9:31 AM, Eli Zaretskii wrote: >> Date: Fri, 16 Aug 2013 07:41:44 -0400 >> From: Ryan Johnson >> >> On 16/08/2013 4:58 AM, Eli Zaretskii wrote: >>> Again, please move this discussion to emacs-devel. >> Back pointer: http://cygwin.com/ml/cygwin/2013-08/msg00273.html >> >>>> Date: Thu, 15 Aug 2013 22:35:54 -0400 >>>> From: Ken Brown >>>> >>>> 1. Invoke 'emacs-nox -Q' in mintty. >>>> >>>> 2. M-x compile C-a C-k ls RET >>>> >>>> 3. C-x o >>>> >>>> 4. Hit 'g' repeatedly. >>>> >>>> I got it to abort with Fatal error 6 after slightly over 100 repetitions. >>>> >>>> I then tried the same thing with emacs-X11 (running under X, not in >>>> mintty). I hit 'g' 200 times without a problem. I repeated this with >>>> emacs-w32, again 200 times without a problem. >>>> >>>> So there's a bug somewhere. But if it's an emacs bug, it's strange that >>>> it only occurs with emacs-nox and not with either of the GUI versions of >>>> emacs. >>> I suspect that buffer relocation might be the reason. Can you show a >>> backtrace from the fatal error in an unoptimized build, with the above >>> recipe? >> I'll try to get one. Meanwhile, is there a quick way to disable buffer >> relocation as a sanity test? > I don't think so, but maybe it's already disabled in your build. What > do you see on these two lines when configure finishes: > > Should Emacs use a relocating allocator for buffers? yes > Should Emacs use mmap(2) for buffer allocation? no > > In any case, you could configure with --enable-checking=all, it might > catch the problem earlier. Should Emacs use the GNU version of malloc? yes Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? yes Hmm... during bootstrap I got the following with checking enabled: > Loading loadup.el (source)... > Using load-path (/scratch/emacs-24.3/lisp > /scratch/emacs-24.3/lisp/emacs-lisp /scratch/emacs-24.3/lisp/language > /scratch/emacs-24.3/lisp/international /scratch/emacs-24.3/lisp/textmodes) > Loading emacs-lisp/byte-run... > Loading emacs-lisp/backquote... > Loading subr... > Loading version... > <** snip **> > Loading international/mule-cmds... > Loading case-table... > Loading /scratch/emacs-24.3/lisp/international/charprop.el (source)... > Loading international/characters... > static heap exhausted: avail 10485760 used 9751456 failed request 790528 > Makefile:795: recipe for target `bootstrap-emacs.exe' failed > make[1]: *** [bootstrap-emacs.exe] Error 1 > make[1]: Leaving directory `/scratch/emacs-24.3/src' > Makefile:334: recipe for target `src' failed > make: *** [src] Error 2 Without checking I get this output instead (and bootstrap completes): > Finding pointers to doc strings... > Finding pointers to doc strings...done > Dumping under the name emacs > Static heap usage: 9753632 of 10485760 bytes > 77714 pure bytes used Is there a way to grow the static heap? Ryan