Dtrace for tracing memory frees
Dtrace for tracing memory frees
- Subject: Dtrace for tracing memory frees
- From: Jakub Bednar <email@hidden>
- Date: Tue, 1 Jul 2008 16:03:45 +0200
Hi,
I'm running MAC OS X Leopard with X-Code 3.1.
I have a C++ tool causing SIGSEGV when ending.
The SIGSEGV is caused by deleting a dynamic object holded
by a static object. I think its because the dynamic object was
unwillingly deleted somewhere else, as its pointer is publicly
accessible.
I thought I can use dtrace to print stack whenever a specified
address is deleted. I was trying some dtrace scripts like
$target:libc:free:entry
but it always says that there is no matching probe.
Just to get sure dtrace is ok, I tried $target:libc:malloc:entry and
this works but
after few seconds the application freezes.
Can somebody please give me any hints of what am I doing wrong
or how to track down this kind of error.
Thanks a lot
Jakub
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden