delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/11/11/13:19:23

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: [203.29.131.24]
X-Originating-Email: [arashp AT hotmail DOT com]
From: "Arash Partow" <arashp AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Segmentation fault with all c programs
Date: Tue, 11 Nov 2003 18:18:51 +0000
Mime-Version: 1.0
Message-ID: <BAY9-F17vgCBoE1pbzE00049644@hotmail.com>
X-OriginalArrivalTime: 11 Nov 2003 18:18:51.0659 (UTC) FILETIME=[423585B0:01C3A880]

I tried your code, it compiles and runs ok, there is no problem!
If i was you i would try the following:

1. make sure there is only 1 location on your pc where cygwin1.dll
   can be found, it should be cygwin/bin/cygwin1.dll + make sure
   you have the latest cygwin1.dll (1.5.5-1)

2. download the latest gcc and frontend (gcc 3.3.1-2 cygming release)

3. use -g in your compilation string then using gdb see where the
   program crashes

4. if all else fails try to give this ml more info about what
   the segmentation fault actually is, when a seg fault occurs
   gcc gives a 1 line description of what kind of seg fault it is...



Regards


Arash








>Hi,
>
>Each C program that I compile with gcc causes a segmentation fault. Even 
>such simple and harmless programs:
>
>    void funct() {
>    }
>
>    int main() {
>        funct();
>        return 0;
>    }

>With compilation I don?t get any warnings or errors. I tried it with gcc 
>version 3.2.1 and version 2.95. In both cases I have the same problem. I?m 
>using WinXP.
>
>Any Ideas?
>
>Michael

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to  
http://ninemsn.com.au/mobilemania/default.asp


--
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/

- Raw text -


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