Bug 402604 - Report All Dangling pointers upon exit and monitor command
Summary: Report All Dangling pointers upon exit and monitor command
Status: REPORTED
Alias: None
Product: valgrind
Classification: Developer tools
Component: memcheck (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Julian Seward
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-27 13:22 UTC by asanka
Modified: 2018-12-27 13:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.