I have a core dump sitting on disk, created by an app that failed an assert and aborted. The app was compiled in debug mode on Linux/g++. I suspect that in the stack frame at the top of the stack, my this
object has been delete
'd (I think this
is no longer a valid ptr). However it could take days or longer to reproduce this abort.
Is there a way for me to query the new/free implementation from within gdb (or elsewhere) and verify whether a given memory address is valid allocated memory? In other words, can I see if my this
is still allocated, or if it has likely been deleted
'd? It'd have to be static, since I just have a core dump and not a running executable.