From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13262 invoked by alias); 7 Apr 2005 23:01:30 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13070 invoked from network); 7 Apr 2005 23:01:22 -0000 Received: from unknown (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org with SMTP; 7 Apr 2005 23:01:22 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DJfxH-0001XM-RY for cygwin@cygwin.com; Fri, 08 Apr 2005 00:58:31 +0200 Received: from clam.niwa.cri.nz ([202.36.29.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2005 00:58:31 +0200 Received: from m.hadfield by clam.niwa.cri.nz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 08 Apr 2005 00:58:31 +0200 To: cygwin@cygwin.com From: Mark Hadfield Subject: Re: cygheap base mismatch detected Date: Fri, 08 Apr 2005 00:10:00 -0000 Message-ID: References: <000d01c53b5a$59cf4b20$75986686@doas.iup.physik.unibremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: clam.niwa.cri.nz User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) In-Reply-To: <000d01c53b5a$59cf4b20$75986686@doas.iup.physik.unibremen.de> X-IsSubscribed: yes X-SW-Source: 2005-04/txt/msg00306.txt.bz2 Andreas Heckel wrote: > Hello all, > > I know there were a lot of similar questions to this point in the past, > but I didn't find a answer to my problem: > > I get the error message: > > --- > v:\julian\TRAJ\Traj2.xi686 (2116): *** cygheap base mismatch detected - > 0x61800000/0x72140000. > This problem is probably due to using incompatible versions of the > cygwin DLL. > Search for cygwin1.dll using the Windows Start->Find/Search facility > and delete all but the most recent version. The most recent version > *should* > reside in x:\cygwin\bin, where 'x' is the drive on which you have > installed the cygwin distribution. Rebooting is also suggested if you > are unable to find another cygwin DLL. > --- > > The program Traj2.i686 is a FORTRAN prog I "ported" from a ALPHA machine > where it is running perfectly. Compilation with g77 gave no problems. > > I checked several times but there is really not more than ONE > cygwin1.dll in the system. > I installed a fresh cygwin version right today, rebooted, the error > remains. I got this error for the first time yesterday while running my script to test the limits of Fortran array sizes. The reference to "incompatible versions of the cygwin DLL" is spurious, I think. By varying my array size I can get "*** MapViewOfFileEx(0x224, in_h 0x224) failed, Win32 error 6" or the program just fails to produce output. The symptoms may differ, but the problem is the same. Cygwin versions of g77 (and gfortran) are broken with regard to handling large amounts of memory, where "large" equals 150 MiB or so and is *not* all that large for a Fortran program. The solutions: - Try the -mno-cygwin switch (thus creating a non-Cygwin executable). Be aware that you may need to recompile any external libraries. - Install g95 (http://www.g95.org/) If the first does not work for you immediately, i suggest going straight to the second. G95 is pretty good these days and the Cygwin snapshot currently available for downloading has no major bugs, I believe. -- Mark Hadfield "Ka puwaha te tai nei, Hoea tatou" m.hadfield@niwa.co.nz National Institute for Water and Atmospheric Research (NIWA) -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/