From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.bugs Subject: bug#18995: Error: Could not reserve dynamic heap area. Date: Sat, 08 Nov 2014 20:49:01 +0000 Message-ID: <545E81BD.8070904@dancol.org> References: <834mu9r47v.fsf@gnu.org> <83y4rlpmsr.fsf@gnu.org> <83wq75plkm.fsf@gnu.org> <83vbmppj4a.fsf@gnu.org> <83r3xdpiex.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="q4Hx5QnF0deGBP6QtPS4Uc54oxrQothp8" X-Trace: ger.gmane.org 1415479824 17450 80.91.229.3 (8 Nov 2014 20:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2014 20:50:24 +0000 (UTC) Cc: 18995@debbugs.gnu.org To: Eli Zaretskii , Alexander Shukaev Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 08 21:50:17 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 1XnCxd-0003Ye-8M for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 21:50:17 +0100 Original-Received: from localhost ([::1]:36830 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnCxc-00017v-RO for geb-bug-gnu-emacs@m.gmane.org; Sat, 08 Nov 2014 15:50:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnCxU-00016H-ED for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 15:50:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XnCxO-0006xr-W4 for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 15:50:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:56793) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XnCxO-0006wo-SQ for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 15:50:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XnCxN-0006zI-NV for bug-gnu-emacs@gnu.org; Sat, 08 Nov 2014 15:50:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Nov 2014 20:50: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.141547975926804 (code B ref 18995); Sat, 08 Nov 2014 20:50:01 +0000 Original-Received: (at 18995) by debbugs.gnu.org; 8 Nov 2014 20:49:19 +0000 Original-Received: from localhost ([127.0.0.1]:54006 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnCwd-0006yC-Dc for submit@debbugs.gnu.org; Sat, 08 Nov 2014 15:49:16 -0500 Original-Received: from dancol.org ([96.126.100.184]:47883) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XnCwY-0006y0-Nd for 18995@debbugs.gnu.org; Sat, 08 Nov 2014 15:49:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=yJ/LW52TyEtRCM218JsJZnVd+7NLlwReW8wDiaE/VZE=; b=gBxfEjXaweTOs9pb5P0dvPY/xDhXi4d3h+FO1voUVSGhq2CwC0APqzwV24E/a0USHNYZWiitWW1SZakmp+t8/FBd5AsHypb3UqLXb2Z1z+EIqfawvVHvR6ClysDo1qMueWvcYBshP0Na6FmWOHtlXNGBF/oBhOCyWAlMhszH5YD+eIGnPXYDhaKuRoZ92qAEiFW5VaFXIWNpDC8ErWjQJtxLtTsEiXGWEv40ps7MBqqEE20TVruxK3X7TMkiEea6OaTSjLuqRxRJsSHmtSy3mpPp9SpPl5xBUSGuU989SRFB+CBU7cU9QLjIkefLGwjY+jg3MfvudyMXTmiUle+I7g==; Original-Received: from [81.168.70.173] (helo=[192.168.1.11]) by dancol.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84) (envelope-from ) id 1XnCwW-0005bZ-NS; Sat, 08 Nov 2014 12:49:08 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <83r3xdpiex.fsf@gnu.org> 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:95750 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --q4Hx5QnF0deGBP6QtPS4Uc54oxrQothp8 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 11/08/2014 08:05 PM, Eli Zaretskii wrote: >> Date: Sat, 8 Nov 2014 20:58:02 +0100 >> From: Alexander Shukaev >> Cc: 18995@debbugs.gnu.org >> >> Do you understand why -funroll-loops causes the code to fail to wo= rk? >> =20 >> Because I cannot. Unless I'm missing something, this sounds like a= >> GCC bug. >> =20 >> >> I've no idea. For that we would have to look into generated assembly c= ode, but >> I'd rather leave that for compiler professionals to analyze. Would for= ward it >> to GCC guys? >=20 > It probably does warrant a GCC bug report. >=20 >> And how about filtering this flag for good as I asked earlier? >> >> CFLAGS :=3D $(filter-out -funroll-loops,$(CFLAGS)) >=20 > What for? It's a perfectly legitimate compiler switch, and should > work here as well, I think. Agreed on not filtering it out. Alexander, does it help to add explicit debug output (say, fprintf to stderr) on each iteration of the loop? If not, can you compare the debug output from the version with -funroll-loops to the one without, to see whether we're making the same sequence of VirtualAlloc calls? If they're the same, maybe it's not the loop that's broken, but the address space layout. --q4Hx5QnF0deGBP6QtPS4Uc54oxrQothp8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCAAGBQJUXoG9AAoJEN4WImmbpWBlqGwP/0Cfdl8byN0u9+nCjdWnxzGE B3+F6MX+74XMJPXFDt+DkTCmmXEkOMIEXZc8RtdbQc7TxZFjtLCCfMBxaxQqg8UX /fSm8R28oeAr9B1GV0IxOZrvt7SVoddY2iDZAnLpQMpe0nQuGkKQZtWLmWAx9pDz tLGhDeGQqExU5pBrdnk7FF4XsUcljKrr0f2B/dRHAMvUQhPuxY3lB9mqZH4pqpWH iKcz+TVesNNcflO6v2SLXDqoqOI6kSuraJVIhEW8XL34Z1CDzGZtC8GZQ2LntJ7q FMAPd9XKegCFi61BF5I6PHp2+RJJxNHIe7K96b1fGVIlKnkLd/EKmUyoNMZWL+Fd ifvk5cXy/prxzHLuQF9M+RuUldOU009LGT5COpKd7xUOzuYisR8bxmiiUoHK0NY1 IzlVkLw//v61BJTajauJdcwqgf1D8aFZs88FG9szSDibWu63cxu5qrunpjYrczvv pTk4qzlHdPlNwKb1EdqIy2vRAcNSuRFTSJeCjwk1G5NfF1Lvg4mHRXb3l4qnT4nS TsrQ3vkpzgTLCBw7uVPCyVG/vXXyaTHz7y2Yg3+BFOAHeMl6zp/Mh9NuavmSuvh/ APalMzLCTCTjTriAv9qkAIPZsLt5L+H5IhdippusvDPtqWBXVLd3s7nOcUHHvmSw VN/Gy1WpoOx/pLdGtsW+ =n1aU -----END PGP SIGNATURE----- --q4Hx5QnF0deGBP6QtPS4Uc54oxrQothp8--