From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18995: Error: Could not reserve dynamic heap area. Date: Sat, 08 Nov 2014 20:30:44 +0200 Message-ID: <83y4rlpmsr.fsf@gnu.org> References: <834mu9r47v.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1415471547 26232 80.91.229.3 (8 Nov 2014 18:32:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 18:32:27 +0000 (UTC) Cc: 18995@debbugs.gnu.org To: Alexander Shukaev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 19:32:18 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XnAo5-0003Uj-Km for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 19:32:17 +0100 Original-Received: from localhost ([::1]:36583 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnAo4-0001jJ-UA for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 13:32:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnAnw-0001jD-7e for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 13:32:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnAnq-00068x-Ag for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 13:32:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnAnq-00068s-82 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 13:32:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnAnp-0003X9-Ps for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 13:32:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Nov 2014 18:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18995 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18995-submit@debbugs.gnu.org id=B18995.141547146413506 (code B ref 18995); Sat, 08 Nov 2014 18:32:01 +0000 Original-Received: (at 18995) by debbugs.gnu.org; 8 Nov 2014 18:31:04 +0000 Original-Received: from localhost ([127.0.0.1]:53940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnAmu-0003Vj-6b for submit@debbugs.gnu.org; Sat, 08 Nov 2014 13:31:04 -0500 Original-Received: from mtaout24.012.net.il ([80.179.55.180]:53638) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnAmq-0003VF-Sy for 18995@debbugs.gnu.org; Sat, 08 Nov 2014 13:31:02 -0500 Original-Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NEQ00F00FSXQO00@mtaout24.012.net.il> for 18995@debbugs.gnu.org; Sat, 08 Nov 2014 20:23:40 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NEQ009G2GFGN980@mtaout24.012.net.il>; Sat, 08 Nov 2014 20:23:40 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:95741 > Date: Sat, 8 Nov 2014 19:17:55 +0100 > From: Alexander Shukaev > Cc: 18995@debbugs.gnu.org > > I've got something amazing/phenomenal here. Read carefully. With "-g -O0" it > can reserve memory just fine and everything builds successfully. With "-O3" it > fails with the first try, i.e. with the size of 0x68000000 and the > corresponding error is: > > ERROR_NOT_ENOUGH_MEMORY > 8 (0x8) > Not enough storage is available to process this command. > > Since with "-g -O0" it succeeds, it cannot be debugged with GDB. For "-O3" I > used simple `printf' testing. > > I can test "-O2" if you are interested. Yes, please do. I don't think I ever tried -O3 (and I don't think it's a good idea in Emacs in general). > What does it smell like? A toolchain bug? Could be. What GCC version are you using? Also, when -O3 is used, does it help to declare reserved_heap_size volatile, like this: size_t volatile reserved_heap_size; (You might need to change the extern declaration on w32heap.h as well.)