www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/24/22:14:21

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <19990525021624.4248.rocketmail@web118.yahoomail.com>
Date: Mon, 24 May 1999 19:16:24 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: gdb + cygwin
To: Charles Wilson <cwilson AT ece DOT gatech DOT edu>
Cc: cygwin AT sourceware DOT cygnus DOT com
MIME-Version: 1.0

--- Charles Wilson <cwilson AT ece DOT gatech DOT edu> wrote:
> Earnie Boyd wrote:
> 
> > --- Charles Wilson <cwilson AT ece DOT gatech DOT edu> wrote:
> > >
> > > Okay, I tried this:
> > >     gcc -Wall -c smain.c ===> no errors
> > >     gcc -Wall -c gaaout.c ===> a few errors having to do with a return
> (no
> > > args)
> > > in a function that isn't supposed to return void. After I fixed 'em,
> > >
> > >     gcc -Wall -c gaaout.c ===> no errors
> > >     gcc -o smain smain.o gaaout.o ===> no errors
> > >
> > > execute `smain' ==> core dump. sigh.
> >
> > How about referencing memory location zero due to a NULL pointer reference?
> > This will always SIGSEGV.
> >
> > BTW, Mumit always suggests using Purify or ElectricFence to check the
> memory
> > allocation.  I've often suggested using the -lmmalloc library.
> 
> Well, linking with electricfence on HP-UX showed no problems. Will
> electricfence
> run in cygwin? (I would just try it and see, but perens.com seems to be down
> right
> now, so I can't get the source code). Also, does efence check for NULL
> pointer
> references in addition to memory allocation errors?

Don't know, is the answer to both questions.  I've not had experience with
either Purify or ElectricFence yet.
===
"Earnie Boyd" <mailto:earnie_boyd AT yahoo DOT com>
CYGWIN RELATED HELP:
 DOCUMENTATION: <http://sourceware.cygnus.com/cygwin/docs.html>
       DLLHELP: <http://www.xraylith.wisc.edu/~khan/software/gnu-win32/>
ARCHIVE SEARCH: <http://www.delorie.com/archives/> OR
                <http://www.eGroups.com/list/gnu-win32/>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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