Monday, December 19, 2005

user breakpoint - Breakpoint exceptions from the heap

New programmers sometimes ask why the debugger stopped at a ‘userbreakpoint’ exception in their program. The exception dialog will comeup and say something like:

Unhandled exception at 0x77f75a58 in CoruptHeap.exe: User breakpoint.

The callstack might be something like:

ntdll.dll!77f75a58()
ntdll.dll!77f9cb5e()
ntdll.dll!77f82c95()
ntdll.dll!77f9cf55()
ntdll.dll!77f8c366()
kernel32.dll!77e75b6c()
kernel32.dll!77e6c75a()

Or if you have symbols:

ntdll.dll!_DbgBreakPoint@0()
ntdll.dll!RtlpBreakPointHeap(void *)
ntdll.dll!RtlpValidateHeapEntry(_HEAP *, _HEAP_ENTRY *, char *)
ntdll.dll!RtlDebugFreeHeap(void *, unsigned long, void *)
ntdll.dll!RtlFreeHeapSlowly(void *, unsigned long, void *)
ntdll.dll!RtlFreeHeap(void *, unsigned long, void *)

The problem is that your program has corrupted the heap. Thisusually happens when writing to freed memory, or when writing past theend of a buffer. Use pageheap to try and figure out where your program went wrong.


the above text was taken from the following page:
http://blogs.msdn.com/greggm/default.aspx
btw ; great c++ developer blog.

you entar in the mySql command line client and enter the following command SET PASSWORD FOR 'user'@'host' = OLD_PASSWORD('password');

example:
my user: is peter, my password: something and my host: localhost

the command will be:

Here is a document on debugging linux aps.

electric fence - debug tool for linux: here and here
Lately is known as duma

No comments: