RE: gcc Core Dump

2003-03-06 Thread Bruce Adams [TEPG Sunbury]
>-Original Message- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: 06 March 2003 15:14 >To: Max Bowsher >Cc: [EMAIL PROTECTED] >Subject: Re: gcc Core Dump > > >Max, David, > >thanks very much for your help. >I didn't know that my cyg

Re: gcc Core Dump

2003-03-06 Thread Max Bowsher
[EMAIL PROTECTED] wrote: > Max, David, > > thanks very much for your help. > I didn't know that my cygwin version is so old. I had just clean > installed it about one week ago from programming.ccp14.ac.uk. > (obviously this mirror is meanwhile gone). > > I have now: > CYGWIN_NT-5.0 ZWG15-0274 1.3.1

Re: gcc Core Dump

2003-03-06 Thread David Starks-Browning
> just that the installation has crashed my bash installation (I had > [EMAIL PROTECTED] before...) It "crashed your bash installation"? Poor choice of words. You mean your user name is not displayed properly. Look at the mkpasswd command (mkpasswd --help) and possibly regenerate your /etc/pass

Re: gcc Core Dump

2003-03-06 Thread Klaus . Moschner
Max, David, thanks very much for your help. I didn't know that my cygwin version is so old. I had just clean installed it about one week ago from programming.ccp14.ac.uk. (obviously this mirror is meanwhile gone). I have now: CYGWIN_NT-5.0 ZWG15-0274 1.3.19(0.71/3/2) 2003-01-23 21:31 i686 unknown

Re: gcc Core Dump

2003-03-06 Thread Max Bowsher
[EMAIL PROTECTED] wrote: > David, > > I installed gcc-2 now and tried with gcc-2. That wasn't what he meant. Upgrade gcc (not gcc2) to the current version: 3.2-3. (This is what I would recommend in response to your reply with gdb results, as well) > It compiles and links without problem as well

Re: gcc Core Dump

2003-03-06 Thread David Starks-Browning
On Thursday 6 Mar 03, [EMAIL PROTECTED] writes: > uname -a says: > CYGWIN_NT-5.0 ZWG15-0274 1.3.15(0.63/3/2) 2002-11-06 22:41 i686 unknown ^^ This is rather old. I would upgrade the Cygwin package first. David -- Unsubscribe info: http://cygwin.com/ml/#unsub

Re: gcc Core Dump

2003-03-06 Thread Klaus . Moschner
David, I installed gcc-2 now and tried with gcc-2. It compiles and links without problem as well. When executing the program it doesn't go inside the function. The program just outputs 'Hello World' twice and ends. But with gcc-2 I don't have the core dump. uname -a says: CYGWIN_NT-5.0 ZWG15-0274

Re: gcc Core Dump

2003-03-06 Thread David Starks-Browning
On Thursday 6 Mar 03, [EMAIL PROTECTED] writes: > > cygcheck -c gcc > Cygwin Package Information > Package Version > gcc 3.2-1 Have you tried using setup to update the gcc package to the latest available? What does "uname -a" say? Regar

Re: gcc Core Dump

2003-03-06 Thread Klaus . Moschner
Hi Max, I tried gdb and followed the code from asm instance to asm instance. This is what I get in the code: Unable to Read Instructions at 0x61007730 in the _libkernel32_a_iname function. It seems to be somewhere inside <__main> after <__alloc> is finished. Actually the first command in <__main>

Re: gcc Core Dump

2003-03-06 Thread Klaus . Moschner
Hi David, please see my comments below. Cheers, Klaus > > Klaus, > > Since it's not a bug in your code (it works for me too, at least as > written), I suspect a problem with your gcc installation, or you're > picking up the wrong gcc. > > What do: > > type -a gcc gcc is /usr/bin/gcc gc

Re: gcc Core Dump

2003-03-06 Thread David Starks-Browning
On Thursday 6 Mar 03, Max Bowsher writes: > [EMAIL PROTECTED] wrote: > > Hi, > > > > I'm a newbie in programming under Cygwin, and I have a very basic > > problem with gcc: > > Any help is appreciated. > > OK, right mailing list this time, but, as I said in my previous reply, it > works fine for m

Re: gcc Core Dump

2003-03-06 Thread Max Bowsher
[EMAIL PROTECTED] wrote: > Hi, > > I'm a newbie in programming under Cygwin, and I have a very basic > problem with gcc: > Any help is appreciated. OK, right mailing list this time, but, as I said in my previous reply, it works fine for me. So, you are going to have to try to debug it a bit more y

gcc Core Dump

2003-03-06 Thread Klaus . Moschner
Hi, I'm a newbie in programming under Cygwin, and I have a very basic problem with gcc: Any help is appreciated. This code compiles and runs without any problems under Dev++ This is the output when I compile and run: $ gcc -Wall prog3.c -o prog3 $ ./prog3.exe Hello World Segmentation fault (core