This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Building Insight snapshot on CygWin?


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]