I wondering is it possible to track down memory corruption like below using umem

char * p1= new char[8];
...
delete p1;
char * p2 =new char[8];
....
strcpy(p2, "56789");
strcpy(p1, "01234");  //Bug  causes memory corruption

p1 and p2 point to the "same size" memory. It's possible p1, p2 acctually point 
to the same address. In this case , can umem still be able to tracing down the 
memory corruption. It doesn't work for me. 
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
 
 
This message posted from opensolaris.org

Reply via email to