l***@rediffmail.com
2007-10-30 15:44:43 UTC
Hi,
I have a multithread console program (only C language used). The
program runs fine for some time, but it crashes at malloc
consistently. The call stack is given below. If there is heap
overrun, the free should crash. Why mallos crshes? What could be the
possible reasons? How can I detect the source of the problem?
NTDLL! 7c901230()
NTDLL! 7c9497f1()
NTDLL! 7c918238()
NTDLL! 7c92a326()
NTDLL! 7c96d6aa()
NTDLL! 7c949d18()
NTDLL! 7c91b298()
_heap_alloc_base(unsigned int 32816) line 161
_heap_alloc_dbg(unsigned int 32768, int 1, const char * 0x00000000,
int 0) line 367 + 9 bytes
_nh_malloc_dbg(unsigned int 32768, int 0, int 1, const char *
0x00000000, int 0) line 242 + 21 bytes
malloc(unsigned int 32768) line 130 + 21 bytes
Thanks
Mohan
I have a multithread console program (only C language used). The
program runs fine for some time, but it crashes at malloc
consistently. The call stack is given below. If there is heap
overrun, the free should crash. Why mallos crshes? What could be the
possible reasons? How can I detect the source of the problem?
NTDLL! 7c901230()
NTDLL! 7c9497f1()
NTDLL! 7c918238()
NTDLL! 7c92a326()
NTDLL! 7c96d6aa()
NTDLL! 7c949d18()
NTDLL! 7c91b298()
_heap_alloc_base(unsigned int 32816) line 161
_heap_alloc_dbg(unsigned int 32768, int 1, const char * 0x00000000,
int 0) line 367 + 9 bytes
_nh_malloc_dbg(unsigned int 32768, int 0, int 1, const char *
0x00000000, int 0) line 242 + 21 bytes
malloc(unsigned int 32768) line 130 + 21 bytes
Thanks
Mohan