• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Dtrace for tracing memory frees
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Dtrace for tracing memory frees
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Best practices for cross-project development (and version control too?)
  • Next by Date: debugging
  • Previous by thread: Re: objc_exception_throw (solved)
  • Next by thread: Re: Dtrace for tracing memory frees
  • Index(es):
    • Date
    • Thread