Heap corruption

Hi All,

We have a in issue, where one of the process of our application is crashing frequently (core dump). The program is written in C++ in Soloris 10. On debugging the program we were able to narrow down to a particular function that is causing the crash.As part of debugging, in the suspected function we added a char pointer and allocated memory and deleted it.

char *ptr7= new char [ 1000];
delete [] ptr7;


To our surprise after this change the process was not crashing and we are able to take the application. We tested this in two environments in our testing area and in both the areas the application seems to be working perfectly.

I reverted the above code change and the process started crashing.

Could you please help on the strange behavior of the program. What I understand this seems to be a buffer overrun.

Regards
Viji
Could you please help on the strange behavior of the program. What I understand this seems to be a buffer overrun.

Most likely. Either that or another form of memory corruption.
Topic archived. No new replies allowed.