delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/05/09:37:24

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Originating-IP: [202.129.95.21]
From: "Arash Partow" <arashp AT hotmail DOT com>
To: <cygwin AT cygwin DOT com>
Cc: <cygwin AT cygwin DOT com>
Subject: BUG - Cygwin to GNU CC compatibility
Date: Mon, 5 Aug 2002 23:47:03 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <OE73cChrBb2iDChs0u900007f12@hotmail.com>
X-OriginalArrivalTime: 05 Aug 2002 13:37:17.0109 (UTC) FILETIME=[37038650:01C23C85]

Hi all,

I've found a certain combination of simple code that is totally compatible
with unix/linux GNU compilers and runs perfectly on those OSs however
even though it compiles fine using Cygwin g++, causes the program to crash
under windows when executed.

The demo program is a simple counter example written in C++, no fancy
code, or special coding tricks have been used. The only libs used are:
stdio, stdlib and iostream.

The error occurs on a particular malloc, as state before the program runs
fine on all unix based systems and I was able to compile it with Borland C++
Builder 6.0 and the produced executable ran fine on windows.

I've tried running the cygwin produced executable on Win95,98,2K,XP,NT
and on all these OSs the program will crash.

I'm using the latest version of cygwin compiler system as of the 2nd of Aug.
I have no idea on how to go around fixing a patch for this cause i'm not
sure
where to begin, there are a number of places for which such an error like
this
can occur, I think it maybe something to do with the Cygwin DLL.

I have uploaded the sourcode, makefile, executable  and a copy of my cygwin
checkout, the url is:
http://www.froggy.com.au/arash/cygwin/cygwin_bug.zip

to make the application type:
make all

to run the application type:
countertest

If anyone has any suggestions or ideas to fix this BUG can you please e-mail
me
ASAP, any other help on how to avoid this bug until someone can come up with
a patch would be very much appreciated.



Arash




PS: The malloc in question can be found on line 114 of DigitList.cpp


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019