Bug 402604

Summary: Report All Dangling pointers upon exit and monitor command
Product: [Developer tools] valgrind Reporter: asanka <asankau>
Component: memcheckAssignee: Julian Seward <jseward>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description asanka 2018-12-27 13:22:36 UTC
SUMMARY
Please provide a feature to report dangling pointers on
- exit
- upon a monitor command (similar to leak_check) 

e.g.
char* globalVar;

void main()
{
   char* z1 = new char[10];
   char* z2 = z1;
   globalVar = z2;

   delete[] z1;

}

At exit/monitor command of the program say that “globalVar” holds a pointer to a freed memory.