From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Any success with emacs 2.1.4 under cygwin 1.5.21? Date: Sat, 30 Sep 2006 11:32:15 +0300 Message-ID: References: <451C4380.7040800@pobox.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1159605287 22117 80.91.229.2 (30 Sep 2006 08:34:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 30 Sep 2006 08:34:47 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 30 10:34:45 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GTaJ0-00009L-Or for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Sep 2006 10:34:43 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTaJ0-0004W0-3b for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Sep 2006 04:34:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GTaGh-0003d7-I6 for help-gnu-emacs@gnu.org; Sat, 30 Sep 2006 04:32:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GTaGf-0003cB-95 for help-gnu-emacs@gnu.org; Sat, 30 Sep 2006 04:32:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GTaGf-0003bt-3m for help-gnu-emacs@gnu.org; Sat, 30 Sep 2006 04:32:17 -0400 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GTaM9-0005dV-IK for help-gnu-emacs@gnu.org; Sat, 30 Sep 2006 04:37:57 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-164-203.inter.net.il [84.228.164.203]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id APD28698 (AUTH halo1); Sat, 30 Sep 2006 10:05:35 +0300 (IDT) Original-To: help-gnu-emacs@gnu.org In-reply-to: <451C4380.7040800@pobox.com> (spaus@pobox.com) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:37730 Archived-At: > Date: Thu, 28 Sep 2006 17:49:52 -0400 > From: "Sean M. Paus" > > I've recently upgraded my cygwin installation to 1.5.21. Since then, I > have had no luck getting emacs to run. I've tried the stock 21.2 that > comes with the cygwin distribution, the test 21.3 that was posted a > while back, and I've even downloaded and (well half) built the latest > sources from the emacs CVS repository. > > The problem is that emacs just hangs and takes up gobs of CPU. I > ultimately tracked this down to a tight infinite loop in > _malloc_internal (gmalloc.c). For some reason, align (also in > gmalloc.c) is returning a pointer that is smaller than _heapbase. The > calculation to determine what block the newly requested memory is in > (BLOCK(result+size)) returns a ridiculously huge number. Since > _malloc_internal incrementally doubles the new size of the heap until > the requested memory fits, at some point the multiplication overflows > and newsize gets a value of 0. Since 0 * 2 is always zero, the test for > BLOCK(result+size) > newsize will always succeed and _malloc_internal > gets stuck in a tight loop multiplying 0 by 2 forever. Thanks for investigating the problem, but this is not a good place to post such reports. Please use emacs-devel@gnu.org, since the problem seems to exist in the CVS code as well (or did I misunderstand?). Also, you may wish to search the archives of emacs-devel and emacs-pretest-bug mailing lists, as I think something similar was reported in the past. (I myself don't use Cygwin, so I cannot help you more at this time.)