Apple Crippled Its DTrace Port 476
Linnen writes in to note that one of developers of Sun's open source system tracing tool, DTrace, has discovered that Apple crippled its port of the tool so that software like iTunes could not be traced. From Adam Leventhal's blog: "I let it run for a while, made iTunes do some work, and the result when I stopped the script? Nothing. The expensive DTrace invocation clearly caused iTunes to do a lot more work, but DTrace was giving me no output. Which started me thinking... did they? Surely not. They wouldn't disable DTrace for certain applications. But that's exactly what Apple's done with their DTrace implementation. The notion of true systemic tracing was a bit too egalitarian for their classist sensibilities..."
DRM bad, but "classist sensibilities"? (Score:3, Insightful)
Yet another example of how Apple is not our friend (Score:4, Insightful)
Great! (Score:5, Insightful)
This will be a big help for me in my quest for a legion of Mac zombies
Alarmist Much? (Score:1, Insightful)
From TFA:
Re:DRM bad, but "classist sensibilities"? (Score:4, Insightful)
Re:DRM? (Score:5, Insightful)
C'mon, seriously? (Score:1, Insightful)
Re:DRM bad, but "classist sensibilities"? (Score:2, Insightful)
A battle is not the war, but it is part of it.
Freedom Crippled when you use Proprietary Software (Score:5, Insightful)
Operating System Tying (Score:3, Insightful)
Of course.
The interesting issue is that nobody can compete with Apple on, say, a music store effectively.
When they add a new iTunes feature, they can change Quicktime to support it or they can disable DTrace so people can't easily reverse it. Nobody else can do that. They're probably not going to get into a DOJ tiff over it, though - Bush [the _ administration] isn't likely to get into it, and Al Gore is on their board.
And so it's probably not surprising that the iTunes DRM defeaters are on Windows, which is where their sales base is anyway. So, spending this effort on OSX is really just a waste of time.
Personally, Amazon is my iTunes DRM defeat. I own a total of 2 iTunes Plus songs - they never have anything I want without DRM.
From the Fine Article (Score:4, Insightful)
"So Apple is explicitly preventing DTrace from examining or recording data for processes which don't permit tracing. This is antithetical to the notion of systemic tracing, antithetical to the goals of DTrace, and antithetical to the spirit of open source."
Diagnostic tool that won't look at all processes is no tool at all.
Re:DRM bad, but "classist sensibilities"? (Score:1, Insightful)
Re:DRM bad, but "classist sensibilities"? (Score:4, Insightful)
The struggle against corporations may be an important part of the defense of humanity, but some would argue that seemingly innocuous things are often just small, innocuous things, and that to go ape shit about them and blow them out of proportion is characteristic of small minds and spirits.
Some would also argue that getting hung up on the small things and seeing battles to be won therein is a good way to ensure that people never take on any large and not so seemingly innocuous issues, that they self indulgently imagine themselves to be revolutionaries fighting the good fight and propagating righteous and enlightened rhetoric.
And even if these people are totally wrong, it still doesn't excuse the ideologically loaded "classist sensibilities" bullshit. But I'm sure the original poser, err poster, feels good about his awesomeness.
Re:DRM bad, but "classist sensibilities"? (Score:3, Insightful)
It BREAKS dtrace.
If iTunes happens to be the process interrupted to run the dtrace probe, that flag being set prevents the probe from running.
Re:C'mon, seriously? (Score:5, Insightful)
The real effects seem to be that while a process which sets this flag has control of the system, any DTrace events that fire off during this time will not be detected, as if they never occurred, regardless of whether what is being traced has anything to do with that process. It seems to break a few important(?) idioms used by DTrace users, so that the results returned are not what they should be.
The furor seems to be that this subtle breakage has gone undocumented; and although only iTunes currently uses it, that does not stop other software (including software that should not be there) from using it. That a DTrace developer discovered this, combined with that this is in all likelihood being done for no reason other than that of DRM, is what makes this notable. If I were working on DTrace, I'd probably be pissed too.
So what? (Score:3, Insightful)
Its main market is for an easy to use home computer and as a creative platform for video editing, graphic design and professional audio.
If you want a command line you're fully in control of, use Linux or a BSD Unix.
It's a commercial OS and Apple will do what they like so long as its legal.
The point of the article (Score:5, Insightful)
Sure, it's annoying that DTrace can't "see" iTunes. But that's more of a DRM issue. Whether you agree with DRM and Apple's implementation of it or not, this DTrace feature is merely a logical extension of that issue.
The real problem though is that this feature actually does break iTunes. If DTrace probes while the iTunes application happens to be the application currently running on the CPU, the DTrace probe won't run. (It's technically a thread of iTunes' at that moment.) So not only will DTrace not show iTunes, it won't show ANY information until it happens to fire off when iTunes isn't the app running on the CPU.
It is fair to say that Apple has made a change to DTrace that has introduced a bug that they need to fix. It is possible for them to fix that bug while continuing to block using DTrace on iTunes.
Re:Yet another example of how Apple is not our fri (Score:3, Insightful)
I'm by no means a fan boy, I own a Mac Pro and I run Leopard. They're just tools and even with Apple's flaws I'll still with them until something better appears.
Right now I'd sooner eat a slightly damaged apple than look through broken windows
So? (Score:5, Insightful)
Thankfully there are options which involve neither company.
Apple Fanboy Spin (Score:0, Insightful)
Apple Fanboy: "Well, you see, Apple had to do this because they were protecting their interests. Yeah, thats right, Apple can do no wrong. Wait, what's that!? Microsoft is implementing DRM in Windows Media Player.. How dare they! Microsoft = EVIL"
Apple is not a monopoly!!!1!!1 (Score:1, Insightful)
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
Apple is not a monopoly...
If I say it enough times, maybe I'll start to believe it...
Re:Luckily... (Score:5, Insightful)
Re:DRM bad, but "classist sensibilities"? (Score:5, Insightful)
"Apple's just being a company" = "Class struggle"
The fact that there are two classes of legally recognized entities, with competing rights allocated to each, is sort of the definition of a class struggle.
Re:Huh? (Score:4, Insightful)
Apple's record with open source is inconsistent. Sometimes they develop internally and release source (Darwin, Bonjour), sometimes they collaborate with open source projects and share (WebKit with KDE), sometimes they buy out someone's software (Cover Flow), sometimes they steal ideas and never credit original authors (Dashboard).
Apple has its own open source license, the Apple Public Source License, approved by OSI and the FSF. However, they also release under the Apache license as well.
I would say in general, Apple is very open source-friendly, and a lot of open source developers I know have flocked to the Mac. It's just sometimes they have some evil empire corporation actions that make us Apple users shake our heads.
Re:DRM bad, but "classist sensibilities"? (Score:2, Insightful)
It's difficult for some to grasp that a proprietor's (Apple's in this case) interests don't change. With a completely free software system (and yes, I'm not using the term "open source" here to highlight the freedoms the open source movement doesn't want to talk about) this would never be an issue. Someone would release improved versions of any program making it fully traceable and one could get on with studying and improving their entire system as they see fit. Users of non-free software are never going to be in the class that gets the freedom to learn or determine how their own computer works. DRM is simply one modern computer implementation of a class system.
Re:Well, Apple is *my* friend! :-P (Score:1, Insightful)
If don't plan on getting out of your easy chair till you see the hunter-killer robots running about...you sir are fucked.
You're a sheep. You would have been kindling at Auschwitz. You're the kind of person that's "ohhhh look at the pretty colors, life is so sweet" meanwhile the city is burning.
I'm not even talking about getting up and attacking apple. I'm talking about SIMPLY RECOGNIZING that this isn't a good thing. You could take 2 minutes to write them "as a supporter of apple" you don't appreciate their nonsense.
But no, you're going to go whole heartedly out to defend such bullshit.
Well...you deliver yourself up. Other people died for your right to breathe. And now others will fight for your right to privacy. While you do nothing, in fact worse then nothing.
Re:DRM? (Score:5, Insightful)
Even though the labels have largely dropped DRM, they still don't like the idea of users having control over digital music. It's part of their DNA. Their whole business revolved around having control over the production and distribution systems, and they just can't contemplate existence without having control over something. The contracts between Apple and the labels reflect that fear, with Apple having the job of making it look like the horses are still in the barn even though the door is open.
Now technically, that's impossible. But my experience with corporate software development has shown me that you can balance 'customers who don't want to know what's impossible' with judicious use of handwavium. You don't have to build a solution that's bulletproof, you just need something that works most of the time. It doesn't matter if there are workarounds, or even if those workarounds are practically trivial for anyone with a technical background, as long as you can't discuss the workaround without using technical terms.
It's sort of an extension of the Sapir-Whorf hypothesis. It's not that your customers can't think about the problem if you lack the vocabulary, it's more that they won't want to think about the problem if they have to spend effort learning how to discuss it intelligently.
So from a contractual standpoint, providing a 'credible effort' is more about obfuscation than actually trying to do the impossible. Apple probably doesn't care if people can work around this issue, as long as the explanation boils down to 'blah blah blah' to aggressively uninformed label executives.
Re:DRM bad, but "classist sensibilities"? (Score:5, Insightful)
What you are saying is that the smaller organization we may voluntarily join (e.g. the corporations that employ us) should be policed by and subject to the larger organizations that we are a member of whether we like it or not (e.g. the country in which we are born).
Yeah, well, not by me. I prefer to choose with whom I associate, and to whom I listen. I most definitely do not like the idea of the largest possible organization of which I'm a member, like it or not, enforcing the ultimate rules of my life. I'm much happier if the rules are defined by a smaller organization that I voluntarily join, and which I can voluntarily leave if I don't like the rules.
In a free society, where the largest powerful organizations are much smaller than the entire country, I can find the corner of it that plays by the rules I like. I have choices. I can be mostly who I want to be. In your "social" society, I have no more choices. I have to be what the majority thinks I should be, act accordingly to their morality and expectations.
No thanks! I know my average fellow man too well to think it would be fun to allow him to dictate the terms of my life.
Re:And as quick as it is reported (Score:1, Insightful)
Diplomacy much? (Score:3, Insightful)
Re:Luckily... (Score:3, Insightful)
This course will cause Apple to loose what they have gained in the last 5 years.
Re:Operating System Tying (Score:4, Insightful)
*sigh*
There are plenty of alternative sources for digital music, almost all of which will play on an iPod and be indexed by iTunes. The ones that don't are formats the market isn't beating down Apple's door to support (Ogg), or which require licensing fees (WMA). All the MP3s you've bought from Amazon play on an iPod. All the tracks you import from a CD will play on an iPod. The iTunes store is a convenience for iPod owners, not a necessity.
Besides, the standard operational definition of a monopoly is that a company can raise prices without losing sales, because consumers don't have credible alternatives. So far, Apple's behavior with regard to pricing is to fight against price increases.
There are credible alternatives to the iPod for people who want a digital music player. There are credible alternatives to the iTunes store for people who want to buy digital music. There are credible ways to get music without a digital music player. Apple has the leading products in the digital music player market, and is one of the leading outlets for digital music, but there is a big-ass difference between being a market leader and being a monopolist engaging in anticompetitive behavior, and the DOJ's attitude toward market leaders in competitive markets is "don't bother me, I have real work to do."
Right. Because that's how the OS community is (Score:5, Insightful)
We never ever criticize our heroes ever. [infoworld.com]
The difference you seem to be missing here is that Steve Jobs only occasionally does a boneheaded thing like this against his fan base. Bill Gates only occasionally doesn't.
Re:OS-X itself (Score:5, Insightful)
Now, it's not too hard to get around this (install Darwin), but there actually is something "technical that prevents it from running on any modern PC".
Re:DRM? (Score:2, Insightful)
That isn't a monopoly. Buy a dictionary.
Re:DRM? (Score:4, Insightful)
Look, I understand that Apple cares about their DRM. Fine and dandy, good for them -- but it'd be nice if they could protect it in a way that didn't break DTrace scripts that have nothing to do with trying to hack the DRM in iTunes.
Re:Well, Apple is *my* friend! :-P (Score:1, Insightful)
Serious question...
And this would be bad, why exactly?
Because we all so desperately need a way to pay about the same, or perhaps more, for 128kbps lossily-compressed, DRM'd audio, only available through a hideous bloatware piece of shit software, and only playable on an overpriced, underfeatured hipster accessory, than we do for uncompressed, un-DRM'd CD audio, which we can buy in any record shop and play on any CD player?
"DTrace is hardly crippled" (Score:5, Insightful)
I call BULLSHIT.
If they're selectively telling this app NOT to log "certain types of traffic", and give no notification of such, or allow the functionality to be restored, then it's CRIPPLED.
I'm so sick of apologists telling me that stuff that's broken is broken for a good reason and that I should be glad someone deigned to allow me to hack it back to some semblance of functionality without getting sued into oblivion!
Not equivalent, no double standard (Score:4, Insightful)
Nobody and nothing is perfect, this does NOT mean that everything imperfect, is equivalent.
Do you divorce your wife for making occasional mistakes? No, only if she is habitually and frequently bad. Are you more forgiving of a son who just occasionally screws up lightly, as opposed to one who does drugs and steals from you and ends up in jail regularly? Of course. Is every political leader who has lied at least once, just as bad as Hitler? Is somebody who beats his wife every day equally bad to somebody who once slapped his wife over 50 years of marriage?
Please, stop with this pretending that all things are equivalent. There is NO double-standard here.
Re:DRM bad, but "classist sensibilities"? (Score:5, Insightful)
No, the frickin' **author** of DTrace has found the specific code used by Apple to cripple it.
Re:Thanks Community, now fix Quicktime 7.4 (Score:1, Insightful)
Re:Wow (Score:4, Insightful)
Leopard's DTrace isn't broken. Apple put in an API for a program to request that debugging & dtrace be disabled for it. Clearly it's there to keep FairPlay from being broken (too easily). Something that commercial developers could understandably want for their software, to prevent keygen hacks, etc.
The link I provide shows a simple way to get around it. Hell, debugging iTunes is directly encouraged in an Apple Technote (linked in the article).
As listed in the article I linked to, you can get around it by trapping the API call in gdb and disabling it.
DTrace is a system level tool that should work properly on any and every process and thread in the system without smoke and mirrors.
Leopard's DTrace is broken. It does not do what it should.
There's no hating or drama about it. I don't care why they did it, and you're probably right that DRM is the reason. That doesn't mean it's not fubar'd.
Re:OS-X itself (Score:2, Insightful)
Perhaps the choice to not go with BIOS is because it is ancient technology. For instance, the new MacBook Air can network boot off a CD/DVD disc mounted on another computer...wirelessly (I believe). I'm sure this would be an insurmountable task in BIOS.
EFI was supposed to be supported in Vista, but support for it was not included. I read it should be supported for 64-bit systems in SP1, however.
Re:Thanks Community, now fix Quicktime 7.4 (Score:4, Insightful)
I get the point now. You are making a logical leap that since the community can "fix" something that the sources are freely available for, then they should be responsible for "fixing" everything that Apple may cripple in some way even though all of the sources to things you want fixed are proprietary. Whether or not that is even remotely possible (which you, in fact, state in your reply that it is not), you were able to vent semi-topical frustration with Apple's breaking popular applications. Even got modded "informative" for it somehow. Good for you. When you have the sources for Quicktime, let the community know and someone may fix it for you.
Also, the point that Apple essentially crippled something that was futile to cripple (remember the sources?) may have eluded you.
Re:And as quick as it is reported (Score:3, Insightful)
In terms of a "modern" UNIX, a Linux distribution is more "UNIX" than OSX. The filesystem layout is more standard UNIX, the graphical environment is more UNIX, etc etc etc without using add-ons like a non-native X server running on top of Aqua, and the list goes on..
MacOS is a decent system in of itself, but to say it's more UNIX than a Linux distribution is laughable. I mean, c'mon. Get over it. Next you'll say MacOS washes a car better than a sponge..
Re:Yet another example of how Apple is not our fri (Score:3, Insightful)
Re:OS-X itself (Score:4, Insightful)
Well sort of, but it is also licensed to only run on Apple hardware, so unless you're planning on breaking the license you don't have a problem. DRM on media attempts to apply licensing to content, which is a slightly different matter. As a Linux supporter I object to users modifying Linux and redistributing it without the source as that violates the license. I don't see why Apple should not only object but take measures to prevent people from violating their license. (Especially given that they are in a bad place economically as their crown jewels is a desktop OS and the desktop OS market is monopolized, which means if they can't bundle their OS with a complete system, there is no long-term way to stay in business unless the courts act effectively against MS... and we all know our court system is way too corrupt for that.)
Look I admit it would be nice if Apple unbundled their OS and hardware, but I'm also smart enough to know that would quickly lead to Apple having to stop developing their OS altogether. I'm also smart enough to see how much collateral damage that would do to open standards and Linux as it would change the market from, 8% OS X and 1% Linux and 80% Windows to 98% Windows in a hurry. MS doesn't need more power to break the market and that is exactly what we'd have if Apple dropped their hardware and OS bundling as a license requirement.
Re:Not equivalent, no double standard (Score:1, Insightful)
Re:Wow (Score:5, Insightful)
DTrace works on processes it's supposed to, and doesn't work on those it's not. I'm happy to agree the implementation of the latter is buggy, but I don't think it's the end of the world or a conspiracy theory. Maybe later the providers can be adapted to more intelligently deal with these closed-off processes to give more consistent results.
Apple decided to put in some measures to keep some software locked-down. The correctness of doing so isn't a technical issue, that's a philosophical one.
DTrace is a wonderful tool: one that's saved me *months* off my PhD work, and I love it. And you have my deepest respect for it. But, I don't take dtrace as a philosophy -- I gave up on software religion a long time ago. Everyone's got their own requirements (e.g. locking down iTunes to keep FairPlay from being cracked -- to keep record producers from leaving iTunes) and they've gotta get them done however they can. Call it mercenary ethics if you want, but we don't all work at Sun with CEOs who get it.
Re:DRM? (Score:3, Insightful)
That's the optimistic view.... the cynical prediction is that they will give up and remove dTrace support from the release builds of the OS.
Re:And as quick as it is reported (Score:2, Insightful)
Chuckle all you want; as far as performance, X is capable of running OpenGL every bit as fast as Aqua or Windows. When you run X as the primary back end for your graphical environment, it's quite a different experience over running it on top of another GUI system. When I run Linux, I don't see any performance or usability issues that could be contributed to X itself.
Ohh, and X is open source, the specification is freely available to any system (which is WHY you can run it on MacOS and Windows) and that actually is a factor to be considered. There's something about free software that makes sense.
Anyways, the point wasn't that X was better than Aero though, the point was that X is a common part of Unix and it's not a part of MacOS. You can add it on top of Aqua, but it's not native. Darwin isn't MacOS, although the back-end is the same. One could argue that what one considers "MacOS" is in fact what runs on top of Darwin, not Darwin itself. Of course, it's the whole system that makes up MacOS. Still, the argument is valid.
Wait.. what were we talking about?
Re:One question: (Score:5, Insightful)
Re:Lol what? (Score:3, Insightful)
BSD licence: "Sharing is not stealing".
GPL2 = "Not sharing is stealing".
GPL3 = "Not sharing is definitely stealing, but just simply sharing is not necessarily not stealing either".
The BSD licence interpreted literally can permit distribution of binaries without Source Code. The BSD people work their backsides off to ensure that nobody does this. The GNU people decided to write their own licence explicitly forbidding it. There is no other word for this except laziness. On the other hand, taking somebody else's code to use in your Caged software project, as opposed to writing it yourself from scratch, is also laziness; so those who bitch about it are like the pot calling the kettle black.
Alarmist my backside. (Score:3, Insightful)
Doing so is simply the first step on the slippery slope to disabling it for other things.
If you want to pay someone for the privilege of computing on a system that's essentially a black box, more power to you.
Other people don't.
Re:Wow (Score:1, Insightful)
Except that if you want system-wide statistics on CPU or I/O usage you'll get inaccurate / invalid results because some processes aren't accounted for. If too many developers block probing of their app then DTrace becomes useless.
It should also be mentioned that putting DTrace probes into an application has to be done explicitly. So while timer, system, and library calls made by iTunes can be traced, what it does internally can be opague just by not adding probes.
Sun recently helped put probes into Ruby and Postgres, so you can see things like triggers firing via DTrace when you (say) do an INSERT, but MySQL doesn't have internal probes (yet), so you can't tell what it's internally besides the calls to external symbols that have been probed.
Giving access to system-level measurement doesn't necessarily mean that Apple has to give internal probing to the app. I would say that GDB (and other debuggers) would be a much higher "threat" to breaking DRM since you can look at the instructions being run, whereas as DTrace is mostly an instrumentation tool.
Re:Thanks Community, now fix Quicktime 7.4 (Score:3, Insightful)
the day, week, or even month that they are released, unless it fixes
a problem that you are experiencing. The quicktime 7.4 update has little
to offer to someone in a production environment.
Over the years, this has been proved time and time again.
I have a graphics studio that is still on 10.4.6, and they are
very happy with it. The studio manager won't let me do mass updates
unless we try it on one machine first, and feel comfortable that it doesn't
introduce any new problems. I can't imagine that a content producer
using after effects would need to rent movies from Apple. Thanks to the
early updaters for throwing themselves under the bus though.