This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 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: heap errors when running in gdb


Kris,

You know, you bring up a good point. I used to use gdb on Cygwin all the time for debugging both XWin.exe and non-X applications that I write. However, gdb has been broken for me on Cygwin for months now; it never works properly anymore. I think I recall CGF insisting that gdb works for him, so I must be doing something wrong.

I do recall getting the SIGTRAP errors, and I generally have to kill gdb via Task Manager anytime I try to use it, but I do not recall getting any HEAP errors.

I don't know what to tell you :(


Harold

Thielemans, Kris wrote:

Hi,

I'm trying to debug my X program. However, when I run it in gdb, I get a
SIGTRAP when stepping over XOpenDisplay(""). Continuing I get it another
time (sorry, not exactly sure where), continuing, my program runs fine
(except for the bugs that I introduce...).
Should this worry me?

I've downloaded cygwin an dXfree 1 week ago, so am running the latest of
everything.

gdb screenshot:
---------------

warning: HEAP[test_display.exe]:
warning: Heap block at 002541A8 modified at 002544FA past requested size of
34a


Program received signal SIGTRAP, Trace/breakpoint trap.
0x77fa018d in ?? ()
(gdb) c
Continuing.
warning: HEAP[test_display.exe]:
warning: Invalid Address specified to RtlReAllocateHeap( 230000, 2541b0 )


Program received signal SIGTRAP, Trace/breakpoint trap.
0x77fa018d in ?? ()
(gdb) c
Continuing.

--------------------------


Thanks!


Kris Thielemans







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