This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
RE: Building Insight snapshot on CygWin?
- From: Keith Seitz <keiths at redhat dot com>
- To: Kevin Powell <KPowell at sirf dot com>
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: 23 Jun 2003 18:18:01 -0700
- Subject: RE: Building Insight snapshot on CygWin?
- Organization:
- References: <C2190B0C813D9E49BBAA0293F900204301C8B22D@sjexchange.sirf.com>
On Mon, 2003-06-23 at 17:14, Kevin Powell wrote:
> Starting program: /home/Administrator/testing/HelloWorld.exe
> 58 [main] gdb 2348 handle_exceptions: Error while dumping state (probably corrupted stack)
> Segmentation fault (core dumped)
Yeah, that doesn't look promising, eh? ;-)
One quick question: did you really do this with "gdb HelloWorld.exe"? In
other words, gdb itself crashes trying to debug this?
> Note that it is gdb segfaulting there, not HelloWorld. So, any clues there? Am I totally braindead?
I don't think your out of your mind. Well, at least you're not alone!
> Does insight get compiled with optimization on by default? In any case, I'm reconfiguring with CFLAGS=-g -O0 right now. I'll post results in a bit.
Yes, that's right: the toolchain, by default, uses -O2. You can
configure with CFLAGS="-g" or something to supress it (this is how I do
it):
$ CFLAGS="-g" /path/to/src/configure --prefix=...
Keith