heap errors when running in gdb

Harold L Hunt II huntharo@msu.edu
Fri Nov 15 11:14:00 GMT 2002


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
>  
>



More information about the Cygwin-xfree mailing list