Please help us by taking our survey
macnn

01/25/2008, 11:30am, EST

Friday, January 25th

Apple circumvents DTrace open source utility

Some open source developers are upset with Apple for "undermining" a key piece of open source software called DTrace in Mac OS X. Apple's introduction of a feature that allows programs like iTunes to disable tracing as well as other debugging tools is causing serious problems for open source developers, effectively rendering useless other parts of DTrace in unanticipated ways -- such as causing unrelated probes to fail while anti-tracing flags are running.

DTrace is a tracing framework that got its start at Sun Microsystems, and was later released as open source as part of OpenSolaris. The software allows developers to tune as well as troubleshoot applications and the operating system itself, according to Macworld UK.

Apple's implementation of DTrace breaks some of the utility's functionality and is "antithetical to the notion of systemic tracing, antithetical to the goals of DTrace, and antithetical to the spirit of open source," according to Adam Leventhal, one of DTrace's original developers.

"They're not just crippling DTrace in the way they intended, but also in ways that are, in some ways, more pervasive," Leventhal wrote in his blog. "It's annoying that Apple decided to disallow tracing for applications that choose to opt out, and it's a fairly serious issue, but the bigger issue is that in doing so they've broken DTrace."


Filed under: software, developer
Other story tags: open-source

, , 6comments, del.icio.us, slashdot, digg, buzz


6 comments
Reader Reactions (Please use <i></i> for italic text)

subscribe to comments
for this article




Expand All   Global Settings
i can see the
0
01/25, 12:12pm, EST
uses for such a tool, and Apple's including it was a nice touch, but I doubt Apple intentionally breaks Dtrace for use in applications that havn't "opted out" of tracing. Dtrace is a nice tool for legitimate developers, but arguably also a nice tool for less noble ends. Apple certainly has a right to opt out certain applications from Dtrace, and I'm sure that the side effects noted are bugs introduced by Apple's opting out. It could be that Dtrace has a hole in it's logic that allows anti-tracing flags to prevent other non-related probes to fail. Don't know. Seems like an issue between the Dtrace developers and Apple.

The blog post pointed to by the article could just be posturing to get more attention on the problem, rightly or wrongly. Don't know if the developer/s had much dialog with Apple regarding the problem. It appears from the MacWorld article that there is a workaround available, and my guess is that Apple will provide a fix for this eventually...
Fresh-Faced Recruit
Joined Jan 2007
User is offline
DRM
0
01/25, 12:32pm, EST
Sounds like it's simply another side-effect of Apple being required to enforce DRM? If Dtrace for "less than noble ends" (ie, helping to crack the DRM), then it may be a case of you get limited Dtrace functionality or none at all. Either you let Apple limit the capability of the tool in order to protect the DRM software, or you get no tool at all.
Fresh-Faced Recruit
Joined Mar 1999
User is offline
open source?
0
01/25, 1:43pm, EST
someone can port it again since it is open source
Fresh-Faced Recruit
Joined Oct 1999
User is offline
potential danger
0
01/25, 3:27pm, EST
The problem with the default Leopard dtrace is that any program can now can hide itself from tracing, including viruses, trojans, and rootkits.

Security researchers and anti-virus companies now have a more difficult job trying to detect malware on users' computers.

The workaround is simple - someone should release a version of dtrace that bypasses Apple's changes.
Fresh-Faced Recruit
Joined Jan 2008
User is offline
re: potential danger
0
01/25, 7:05pm, EST
jalb wrote: he problem with the default Leopard dtrace is that any program can now can hide itself from tracing, including viruses, trojans, and rootkits.

Exactly which viruses, trojans, and rootkits would those be?
Fresh-Faced Recruit
Joined Feb 2000
User is offline
Re: drm
0
01/28, 12:16pm, EST
It may be the case, but, again, Apple makes no such information available. They never explain why (let alone even tell people such a case). They just stick it in there, see if anyone notices, and go on from there.

They could just put in the developer's note: "DTrace does not work with iTunes or Quicktime, so do not run those programs when you actually expect DTrace to work correctly". Then again, if you're software that you're working on uses Quicktime or iTunes, you're screwed.

But that's not Apple's fault. It's those damned labels and studios! They're the ones to blame for everything!
Fresh-Faced Recruit
Joined Aug 2001
User is offline
Your Comments

In order to post comments: If you are a registered member, please login with your MacNN Forums username and password otherwise please uncheck the checkbox below.


Registered Member?
macnn forums login:

macnn forums password:

Not a member of the MacNN forums? Register now for free.

RSS Feeds

Have the latest content delivered to your desktop via RSS. Use the links below to get access to a specific blog, news, or reviews feed.



  MacNN -all

  MacNN Reviews

  MacNN Podcasts

  iPodNN

  Electronista

  Left Lane News
Turn your laptop into CASH: Sell us your used laptop. Working or not. Get money FAST. Instant online quote. Shipping is FREE.
Buy from The Apple Store, iTunes.com, Amazon.com, TechDepot, OfficeDepot, Computers4Sure, or donate.