Slashdot Mirror


Apple Crippled Its DTrace Port

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..."

102 of 476 comments (clear)

  1. And as quick as it is reported by Evets · · Score: 5, Informative

    As quickly as the issue is reported, a hack comes out to resolve it. Gotta love how quickly the community can respond to these things.

    1. Re:And as quick as it is reported by KublaiKhan · · Score: 2, Informative

      The joy of open source--with that many brains working on a problem, odds are that someone already knows how to fix it.

      --
      In Xanadu did Kubla Khan
      A stately pleasure dome decree
    2. Re:And as quick as it is reported by Reverend528 · · Score: 5, Funny

      Thank god apple has a thriving community that is constantly working to fix apple's design decisions. Someone should try building an OS that's entirely community supported. Imagine how productive they would be without apple working against them.

    3. Re:And as quick as it is reported by msuarezalvarez · · Score: 4, Funny

      wooooooosh

    4. Re:And as quick as it is reported by zr-rifle · · Score: 4, Funny

      Joke --------------------> Thinking Computer

      . . . . . . . . You

      --
      Hack your mind out of its sandbox.
    5. Re:And as quick as it is reported by meringuoid · · Score: 4, Funny
      How many distros do they have?

      Going by namechecks on Slashdot, three. Ubuntu, Fedora, and Gentoo. But I don't think anyone's ever finished installing Gentoo.

      --
      Real Daleks don't climb stairs - they level the building.
    6. Re:And as quick as it is reported by nilbud · · Score: 5, Funny

      Where can I download the wooooooosh.iso?

      --
      never let a man put his dirty how-do-you-do into your bajingo
    7. Re:And as quick as it is reported by rubycodez · · Score: 2, Funny

      if gentoo ever stops compiling, I gotta try that install thing next

    8. Re:And as quick as it is reported by Anonymous Coward · · Score: 3, Funny

      How does Steve's dick taste, anyways?

      To use a famous bit of cricket sledging... "I don't know, ask your wife"

    9. Re:And as quick as it is reported by larry+bagina · · Score: 2, Informative
      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    10. Re:And as quick as it is reported by cbreaker · · Score: 3, Insightful

      And what does UNIX actually mean?

      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..

      --
      - It's not the Macs I hate. It's Digg users. -
    11. Re:And as quick as it is reported by Schmool · · Score: 2, Informative

      I never said OSX is a microkernel. OSX has XNU, a cozy blend of Mach, GNU and I/O Kit. To quote Apple:

      "It is not technically a microkernel implementation, but still has many of the benefits of a microkernel, such as Mach interprocess communication mechanisms and a relatively clean API separation between various parts of the kernel."
      http://developer.apple.com/documentation/Porting/Conceptual/PortingUnix/additionalfeatures/chapter_10_section_8.html

      This one has pickshurez!!11!1!: http://developer.apple.com/documentation/Darwin/Conceptual/KernelProgramming/Architecture/chapter_3_section_2.html#//apple_ref/doc/uid/TP30000905-CH1g-TPXREF101

    12. Re:And as quick as it is reported by cbreaker · · Score: 2, Insightful

      I don't necessarily believe that Aqua is better than X. X can do some mighty cool stuff, and if you haven't been following X development in recent times, it's improved quite a bit. The next major version of X.org will introduce a lot of new features and correct some long standing X shortcomings.

      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?

      --
      - It's not the Macs I hate. It's Digg users. -
    13. Re:And as quick as it is reported by TheThiefMaster · · Score: 2, Funny

      You have to be careful what you download, as "woooooosh.iso" is an old version.

  2. DRM? by StevisF · · Score: 4, Interesting

    Could this to help prevent circumvention of DRM?

    1. Re:DRM? by mwsmith824 · · Score: 2, Interesting

      Most likely yes as iTunes is the only app that sets the flag. How quickly will Apple patch around the hack is the interesting question....

    2. Re:DRM? by KublaiKhan · · Score: 4, Insightful

      That may have been Apple's intent, but as usually happens in such cases, the end result is to encourage people to find out new ways around the 'protections' that have been inflicted.

      --
      In Xanadu did Kubla Khan
      A stately pleasure dome decree
    3. Re:DRM? by mstone · · Score: 5, Insightful

      Most likely, Apple's intent is to deliver a 'credible effort' to prevent circumvention and/or reverse engineering.

      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.

    4. Re:DRM? by cduffy · · Score: 3, Insightful

      If you can't get accurate counter data (on some completely unrelated thing... say, disk accesses, or page faults, or cache hits) because any interrupts that happen whenever a protected process is on top of the run list are silently eaten, that's pretty darned broken.

      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.

    5. Re:DRM? by mikael · · Score: 2, Interesting

      It might even help someone write a subversive program that cannot be traced - create a new executable file with these bits set (or have them set during execution, or whatever), execute this process and you have something running that can't be traced.

      --
      Vintage computer adverts: http://www.vintageadbrowser.com/computers-and-software-ads
    6. Re:DRM? by Jeremi · · Score: 2, Insightful
      If the work-around does well, I predict they will give up that route and iTunes will once again respond to dTrace.


      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.

      --


      I don't care if it's 90,000 hectares. That lake was not my doing.
  3. DRM bad, but "classist sensibilities"? by kherr · · Score: 3, Insightful

    Come on, this isn't a class struggle. It's Big Business trying to protect their intellectual property. DRM sucks, this is yet another way in which it degrades computer systems. But Apple's just being a company, and their hack to DTrace is actually good coding. Dislike their choice, sure. But there's no epic struggle for humanity here.

    1. Re:DRM bad, but "classist sensibilities"? by Hsensei · · Score: 4, Insightful

      Of course if it was MS you would have you pitchfork and torch ready. I forget Jobs can do no wrong.

      --
      ~
    2. Re:DRM bad, but "classist sensibilities"? by Anonymous Coward · · Score: 2, Insightful

      Some would argue that the struggle against corporations is the struggle for humanity and that it plays out in seemingly innocuous things like this.

      A battle is not the war, but it is part of it.

    3. Re:DRM bad, but "classist sensibilities"? by Samgilljoy · · 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.

    4. Re:DRM bad, but "classist sensibilities"? by Anonymous Coward · · Score: 3, Insightful

      Good coding my ass.

      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.

    5. Re:DRM bad, but "classist sensibilities"? by Anonymous Coward · · Score: 2, Interesting

      Dislike their choice, sure. But there's no epic struggle for humanity here.

      "Do you want to spend the rest of your life selling sugared water or do you want a chance to change the world?"
    6. Re:DRM bad, but "classist sensibilities"? by dcollins · · Score: 4, Insightful

      Completely disagree.

      "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.

      --
      We know where leadership by an anti-intellectual "strongman" who scapegoats minorities and likes boisterous rallies goes
    7. Re:DRM bad, but "classist sensibilities"? by jbn-o · · Score: 2, Insightful

      I've not seen any evidence Apple has weighed in on this beyond crippling DTrace. As I understand it, a DTrace user has experimented with the program, determined it to be specifically crippled, and given an educated guess about why it is crippled in that way. However I agree with the bulk of your post; Sadly, there will be a lot of young naive Slashdotters willing to go along with such behavior, even defend the proprietors engaged in that practice (coming up with excuses for the proprietor) as we see in this thread.

      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.

    8. Re:DRM bad, but "classist sensibilities"? by Quadraginta · · Score: 5, Insightful

      Friend, a corporation is a miniature society. It's an organization of people that divides labor for the purpose of maximizing the welfare of all, subject to an agreed-upon heirarchical distribution scheme. (That is, the wealth it creates is not usually distributed equally.) Society is merely the largest possible corporation, in which we are all, whether we like it nor not, employed.

      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.

    9. Re:DRM bad, but "classist sensibilities"? by VidEdit · · Score: 5, Insightful

      "As I understand it, a DTrace user has experimented with the program, determined it to be specifically crippled, and given an educated guess about why it is crippled in that way"

      No, the frickin' **author** of DTrace has found the specific code used by Apple to cripple it.

      --
  4. Yet another example of how Apple is not our friend by Zombie+Ryushu · · Score: 4, Insightful

    Apple is as much the DRM laden threat to open computing as Microsoft is. We may have circumvented this issue this time, but what about the time after that? and after that? Its a cat and mouse game Apple is going to play.

  5. Great! by Jeremi · · Score: 5, Insightful
    So can I apply this NOATTACH flag to my l33t rootkit software to make sure it goes undetected by any system diagnostic tools?


    This will be a big help for me in my quest for a legion of Mac zombies ;^)

    --


    I don't care if it's 90,000 hectares. That lake was not my doing.
    1. Re:Great! by Sponge+Bath · · Score: 5, Funny

      ...my quest for a legion of Mac zombies

      It might be easier to just attend a Macworld conference.

  6. Luckily... by cromar · · Score: 5, Interesting

    From the DTrace source (in an #IFDEF APPLE):
    /*
    * If the thread on which this probe has fired belongs to a process marked P_LNOATTACH
    * then this enabling is not permitted to observe it. Move along, nothing to see here.
    */


    Luckily no malicious programmer will mark their malware's process with this flag!

    1. Re:Luckily... by crunchy_one · · Score: 2, Interesting

      This reminds me of the bozo bit in the early Macintosh file system. Not much protection, but it did force the attacker to take an action that might be later used to demonstrate intent. Perhaps the P_LNOATTACH serves a similar purpose?

    2. Re:Luckily... by Kjella · · Score: 2, Funny

      /*
      * If the thread on which this probe has fired belongs to a process marked P_LNOATTACH
      * then this enabling is not permitted to observe it. Move along, nothing to see here.
      */

      So... written by a slashdot reader? Don't know of many other places that displays that message on a regular basis.

      --
      Live today, because you never know what tomorrow brings
    3. Re:Luckily... by Hamilton+Lovecraft · · Score: 5, Insightful

      So, uh, why don't you open source wizards recompile DTrace without the code that checks P_LNOATTACH?

      --
      step 3: god dammit, it doesn't work
    4. Re:Luckily... by Hamilton+Lovecraft · · Score: 3, Interesting

      Google says Results 1 - 10 of about 91,600 for "move along, nothing to see here" -site:slashdot.org.

      --
      step 3: god dammit, it doesn't work
    5. Re:Luckily... by geekoid · · Score: 2, Insightful

      People will, and probably have; but when Apple starts to allow only Apple signed software to run, then that can't do much.

      This course will cause Apple to loose what they have gained in the last 5 years.

      --
      The Kruger Dunning explains most post on /. http://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect
    6. Re:Luckily... by Kjella · · Score: 2, Interesting

      Google says Results 1 - 10 of about 91,600 for "move along, nothing to see here" -site:slashdot.org. Yes, but:
      Google says Results 1 - 10 of about 21,900 for "move along, nothing to see here" -slashdot. That makes it 70,000 hits mentioning slashdot, 22000 that don't.
      --
      Live today, because you never know what tomorrow brings
  7. Freedom Crippled when you use Proprietary Software by Anonymous Coward · · Score: 5, Insightful

    You of all people should know that you give up your freedom to use your software and hardware as you wish when you use proprietary software. Apple's continuous attempt to stop people from changing software on their home computers is a good example of how they feel about freedom. They only side with freedom when it is immediately beneficial.

  8. Eagles have nothing to do with this by Quiet_Desperation · · Score: 4, Funny

    Is "egalitarian" the Slashdot word of the day today?

  9. Operating System Tying by bill_mcgonigle · · Score: 2, Insightful

    Could this to help prevent circumvention of DRM?

    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.

    --
    My God, it's Full of Source!
    OUTSIDE_IP=$(dig +short my.ip @outsideip.net)
    1. Re:Operating System Tying by mstone · · Score: 3, Insightful

      ---- They're probably not going to get into a DOJ tiff over it, though . . .

      *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."

    2. Re:Operating System Tying by jocknerd · · Score: 2, Informative

      Really? iTunes Plus is more expensive than DRM'ed music, and almost double the $ of some of the same songs on Amazon. What hole did you just climb out of? iTunes Plus tracks are 99 cents.
  10. Classist Apple? Anti-egaliitarian IBM tolls? by Malevolent+Tester · · Score: 5, Funny

    Fuck me, it's like a Student Union bar in here. What next, comrades, do we storm the Winter Palace or just go and sell some copies of Socialist Worker?

    --
    If you haven't made a developer cry, you've wasted a day.
    1. Re:Classist Apple? Anti-egaliitarian IBM tolls? by martinX · · Score: 2, Funny

      I say we hold a meeting to draft a resolution. Brian, you take the minutes.

      --
      When they came for the communists, I said "He's next door. Take him away. Goddam commies."
  11. Well, Apple is *my* friend! :-P by Quiet_Desperation · · Score: 2, Informative

    Oh, piffle. Without Apple DRM, iTunes (store) would be impossible due to the idiot record labels. Go grouse at them. Outside of iTunes, what is there in Mac OS X that's DRMed?

    When Apple begins sending out legions of hunter-killer robots to take down open source projects and assassinate their maintainers, then you might have a point, Mr. Zombie, sir.

  12. From the Fine Article by Stanistani · · Score: 3, Insightful

    Quote:
    "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.

  13. gcc -ideo ramshackle world.cpp by Quiet_Desperation · · Score: 5, Funny

    Are you kidding?

    This is Slashdot where "paper or plastic" is an epic struggle directly and immediately affecting the fates of billions!

    BILLIONS, I tell you! BILLIONS!

  14. Slashdot Headline Accuracy? by aberkvam · · Score: 5, Funny

    The article says, "To say that Apple has crippled DTrace on Mac OS X would be a bit alarmist..." So what is the Slashdot headline? "Apple Crippled Its DTrace Port"

    Nice...

  15. It's worse, they have broken DTrace by mzs · · Score: 5, Informative

    Basically profile and tick are useless since they will not fire if a thread with PT_DENY_ATTACH is on proc. Perfectly good DTrace scripts simply will not work correctly on OS X.

  16. it's kdawson day by Quadraginta · · Score: 2, Interesting

    It's like this every time kdawson takes a turn posting stuff to the front page. Wish he'd join up with his natural comrades at digg.com and take the tired rewarmed leftovers of 19th and 20th century politics away with him.

  17. Re:C'mon, seriously? by bersl2 · · Score: 5, Insightful

    (Note: IANA DTrace user or developer.)

    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.

  18. One question: by MsGeek · · Score: 3, Interesting

    Isn't this a F/OSS program? Couldn't you just recompile an uncompromised version of the source?

    --
    Knowledge is power. Knowledge shared is power multiplied.
    1. Re:One question: by statusbar · · Score: 4, Informative

      For now, yes... But apple has been in the process of creating cryptographically secure signing and verification of system applications. The next step for them will be to have system tools like this be executed ONLY if they are the unmodified, signed applications that apple originally released.

      When that happens, it wouldn't matter if you recompile dtrace - your modified version would just not run.

      for info on the current code signing specification from apple (which is pretty much benign for now), see:

      --jeffk++

      --
      ipv6 is my vpn
    2. Re:One question: by wyldeone · · Score: 4, Insightful

      You've (like many) completely misunderstood the point of Apple's code signing efforts. It's not to stop unauthorized code from running--Apple is not Microsoft, no matter how you cut it; they don't even have activation, nor any protections on their software besides serial numbers. The real point of code signing is so that when you have a piece of software that claims to be from Company X, you can be sure it's actually from Company X. It's a tool to reduce malware pretending to be legitimate software, not a means for Apple to lock down your computer.

      --
      In the beginning the universe was created. This made a lot of people very angry and is widely considered as a bad move.
  19. Evil bit by flyingfsck · · Score: 4, Funny

    Together with careful use of the Evil Bit by malicious coders, we will have complete security in Apple system software.

    --
    Excuse me, but please get off my Pennisetum Clandestinum, eh!
  20. So what? by gilesjuk · · Score: 2, Insightful

    I've never seen Apple market OSX as a Unix system or even talk about the shell.

    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.

    1. Re:So what? by SanityInAnarchy · · Score: 3, Informative

      I've never seen Apple market OSX as a Unix system or even talk about the shell.

      You obviously didn't look very hard.

      Its main market is for an easy to use home computer and as a creative platform for video editing, graphic design and professional audio.

      And software development. Or where did you think the developers of those video editors work and test their code?

      If you want a command line you're fully in control of, use Linux or a BSD Unix.

      No disagreement there, but it doesn't hurt to remind people that OS X is not that. People often leave Linux for OS X, claiming that it's basically an easier-to-use Linux than Linux, you still have all your stuff, etc. And you can always ssh to a Linux server to do real work.

      It's a commercial OS and Apple will do what they like so long as its legal.

      Why is this OK?

      --
      Don't thank God, thank a doctor!
    2. Re:So what? by that+this+is+not+und · · Score: 2, Informative

      Why is this OK?

      Actually, it's fine, so long as there's a vigorous community ready to reveal what they're up to. As long as they don't do anything illegal, it's our prerogative to point out things they do that, while legal, are pretty sleazy.

      Another black mark against Apple. It's almost like the 80's again, when Stallman and the FSF had well written anti-Apple essays about their Look-and-feel lawsuit.

      Maybe the icon for apple.slashdot.org articles needs updating, though.

    3. Re:So what? by ContractualObligatio · · Score: 2, Informative

      Take a look at the way they go after the science market (http://www.apple.com/science/).

      Apple market OS X as a UNIX system and have done for a long time. They're just smart enough only to market it as a UNIX system to the markets that appreciate UNIX.

  21. The point of the article by aberkvam · · Score: 4, Insightful

    The /. summary and most of the /. posters seem to be missing the point of the article. (To be fair, the author wasn't too clear himself. He's done some clarification in the comments section of his article.)

    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.

    1. Re:The point of the article by aberkvam · · Score: 4, Informative

      Doh! "this feature actually does break iTunes" should have been "this feature actually does break DTrace". My bad.

    2. Re:The point of the article by jeff4747 · · Score: 2, Interesting

      The real problem though is that this feature actually does break DTrace. If DTrace probes while the iTunes application happens to be the application currently running on the CPU, the DTrace probe won't run.

      In what situation is this a problem if you are not probing iTunes? If you're trying to get info from another program, iTunes won't be the application currently runing on the CPU when the event happens.

  22. Headline: Slashbot learns from masters... by msimm · · Score: 2, Interesting

    Is it just my imagination or is this post a dupe? And a positively moderated dupe at that (twice!).

    Not that I mind, but suddenly I feel at least 50% less efficient.

    --
    Quack, quack.
  23. Thanks Community, now fix Quicktime 7.4 by voidstin · · Score: 5, Informative

    It's nice that Dtrace works again. But I'm betting a lot more people use After Effects or Premiere. The QT 7.4 update which enables movie rentals from iTunes breaks any render that takes longer than 10 minutes. Thank god DRM is here to protect me from the work I need to do. Wasn't apple supposed to me the machine for media professionals?

    http://blogs.adobe.com/keyframes/2008/01/dont_update_to_quicktime_74.html

    1. Re:Thanks Community, now fix Quicktime 7.4 by BrynM · · Score: 2, Informative

      It's nice that Dtrace works again. But I'm betting a lot more people use After Effects or Premiere.
      Don't know which DTrace you're thinking of (possibly a video editing program), but it most certainly isn't this one.
      --
      US Democracy:The best person for the job (among These pre-selected choices...)
    2. Re:Thanks Community, now fix Quicktime 7.4 by BrynM · · Score: 3, Insightful

      The point, which seems to have eluded you, is that while it's great people are fixing DTrace Apple has also broken applications used by far more people and no fix is available for those (nor can it be).

      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.

      --
      US Democracy:The best person for the job (among These pre-selected choices...)
    3. Re:Thanks Community, now fix Quicktime 7.4 by voidstin · · Score: 2

      I know they can't fix it (and I do know what DTrace is), I was just giving another example of apple screwing it's customers - and in the QT case, indefensibly screwing it's most loyal and free spending customers. In the QT case, it was probably ignorance rather than malevolence, but still. Maybe it was a bit OT, but thought it as relevant.

    4. Re:Thanks Community, now fix Quicktime 7.4 by djdavetrouble · · Score: 2, Insightful

      I am an IT professional, and the common wisdom is to not install updates
      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.

      --
      music lover since 1969
  24. Re:Yet another example of how Apple is not our fri by gilesjuk · · Score: 2, Insightful

    There's no friendship, you're just a fan and Apple rakes in your money. They love this cult like status, some of it is well deserved, their design is unmatched in the computer field. If Mac fans were a little more reserved instead of opening their wallets then Apple would stop and think a bit more.

    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 :)

  25. So? by Plekto · · Score: 4, Insightful

    I just don't see what the big deal with all of this is. Smart people don't touch ITunes, because it's just going to help feed the beast. People seem to have forgotten how Jobs ran Apple the last time he was in charge. He's merely a lot more charismatic than Gates. But they are both equally self-serving.

    Thankfully there are options which involve neither company.

  26. Re:Huh? by drcagn · · Score: 3, Insightful

    Darwin is Apple's stuff. They made it. It is based on BSD, but the BSD license doesn't require them to release the source (does it? IANAL). It is also based on NeXTSTEP, which was acquired by Apple in the 90s.

    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.

    --
    Scorta futuere amo!
  27. One step back by bdgregg · · Score: 5, Interesting

    Yes, it's annoying - every time we examine the system we are now looking at everything except for iTunes (and possibly Spy-WaR3 ;-). But this issue is about more than just that.

    I've introduced DTrace to many companies. While most people love it, some developers of closed source software are concerned about people DTracing their code. DTrace allows customers to gather proof of bugs that are embarrassing, hard to fix, or that the developers have deny existed. I've been asked many times if DTrace can be disabled for an application, usually to avoid negative publicity from the bugs that DTrace will expose. The answer has always been no. It's been great to see developers accept this reality and escelate bug fixing.

    This is expected - DTrace visibility should improve overall code quality in IT. Hopefully it will also encourage employers to hire better programmers - since if customers don't use DTrace to point out embarassing bugs, then competitors may. It also erodes reasons to stay closed source - customers can use DTrace to see the code anyway.

    Giving developers another option, to disable DTrace visibility, is allowing a backwards step from the future.

  28. OS-X itself by Sycraft-fu · · Score: 3, Interesting

    It is DRM'd to only run on Apple hardware. There is nothing technical that prevents it from running on any modern PC since that is indeed what Macs are now. However that won't work, hence there are groups out there that have to hack it to disable that and allow it to run on any hardware.

    You can argue till your blue in the face that they need to do this, doesn't change what they are doing. If it wasn't DRM'd, it'd run fine on any hardware that met its technical requirements.

    1. Re:OS-X itself by jeff4747 · · Score: 4, Insightful

      Apple boxes don't use the same kind of BIOS as a non-Apple box. If you somehow got a retail OS-X DVD to install on your Compaq, it wouldn't boot.

      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".

    2. Re:OS-X itself by onefriedrice · · Score: 2, Interesting
      Mac OS X runs on a Mac. This is the way it has always been. Apple started using Intel chips, but why did you expect that anything would (or should) change? Let me repeat: Mac OS X runs on a Mac!

      You can argue till your blue in the face that they need to do this, doesn't change what they are doing. If it wasn't DRM'd, it'd run fine on any hardware that met its technical requirements. Your statement is false. If Mac OS X was allowed to (marketed to, sold to) run on commodity x86 hardware, then you can be sure that _many_ people would do it! I think you agree. You are wrong, however, in saying that it (OS X) would run just fine. It wouldn't, and have you considered how much support costs would sky-rocket with people trying to use OS X on hardware or with hardware that wasn't designed for it? The only reason OS X as we know it is possible is because it must only support a much narrower spectrum of hardware. Therefore Apple can put their resources to better use actually developering their products.

      The trade-off of course, if you want to get on-board you had better get a Mac, because Mac OS X runs on a Mac. You can whine and moan all day long about how that mean Apple doesn't support using OS X on commodity hardware to reduce their support costs. On the other hand, you can realize that OS X doesn't carry enough value itself to justify having to buy extra hardware to use it and go along your merry way with Ubuntu or Windows or whatever tool has justifiable value to you.
      --
      This author takes full ownership and responsibility for the unpopular opinions outlined above.
    3. Re:OS-X itself by Christopher+Rogers · · Score: 2, Insightful

      not really, why apple decided to use a non standard boot process is unclear...

      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.

    4. Re:OS-X itself by 99BottlesOfBeerInMyF · · Score: 3, Insightful

      It is DRM'd to only run on Apple hardware.

      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.

    5. Re:OS-X itself by zlogic · · Score: 2, Informative

      They don't have BIOS, they have EFI instead. And there already exists a bootloader that emulates EFI and allows booting a non-patched OSX installation.

  29. Re:Yet another example of how Apple is not our fri by Jugalator · · Score: 2

    I agreed, if MS had done this, the mob would already have gathered. :-p

    Now it's more about "Thankfully a hack is already out. Move along folks, it was just another DRM decision by Apple."

    --
    Beware: In C++, your friends can see your privates!
  30. What a tragedy by Slashcrap · · Score: 4, Funny

    It's a real shame that you can't trace iTunes. I was all set to reverse engineer it and use the code to make my own total fucking abortion of a media player. Now I'll have to settle for grafting a horrible GUI onto Mplayer, removing most of the supported formats and making it sleep without releasing the CPU 90% of the time. If I can work out some way to reliably fuck up the contents of the user's iPod, then I doubt anyone will notice the difference.

    It will be tricky to make the Windows port twice as horrible though. Maybe I can get it to punch the user in the face every ten minutes?

  31. it's a slippery slope to genocide, folks by commodoresloat · · Score: 5, Funny

    Come on, this isn't a class struggle. It's Big Business trying to protect their intellectual property. DRM sucks, this is yet another way in which it degrades computer systems. But Apple's just being a company, and their hack to DTrace is actually good coding. Dislike their choice, sure. But there's no epic struggle for humanity here. First, they crippled DTrace, but I did not use DTrace, so I did not speak up.
    Then, they came for gettytab, but I did not speak out, because I was happy with Apple's default terminal configuration.
    Then, they came for snort, but I was not worried about intrusion detection so I did not speak up.
    Next, they came for mkdep, but I did not speak out, because the maid does all my compiling.
    Sadly, when it came time for them to use killall, there was nobody left to speak up for me!
  32. Wow by Lally+Singh · · Score: 3, Informative

    Mac haters really are drama queens, aren't they? Here, read this.

    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.

    --
    Care about electronic freedom? Consider donating to the EFF!
    1. Re:Wow by ahl_at_sun · · Score: 5, Informative

      Actually, Leopard's DTrace is broken, and that was the point of the blog post. Here's the issue: DTrace programs that would normally work and collect valid data will fail if a process is running with Apple's trace-me-not bit set. Forget tracing iTunes or other applications that don't want to be traced. It's that probes that should fire don't as an unintended side-effect of Apple's hack to obscure certain applications.

      A much smarter approach would have been for Apple to deny visibility into such a process, but still allow a user to monitor system-level events (e.g. timers and system calls). This would have allowed for the (questionably motivated, and highly circumventable) protection while not damaging DTrace and correctly phrased queries.

    2. Re:Wow by jvkjvk · · Score: 3, Insightful

      Mac haters really are drama queens, aren't they? Here, read this.

      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. Why are you standing up for Apple in this? By your own admission, DTrace is broken (oh yes, you can get around it, Bah!) Why in the world should you have to do any of that!

      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.
    3. Re:Wow by Lally+Singh · · Score: 4, Insightful

      Sure I read the post, I just don't agree with the conclusions.

      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.

      --
      Care about electronic freedom? Consider donating to the EFF!
  33. Diplomacy much? by try_anything · · Score: 2, Insightful

    The guy wants Apple to ship a working DTrace. Why should they? To regain community goodwill and get absolution from an official DTrace developer. He left the door open for that. That's the carrot. By publicizing statements on his blog and getting it submitted to Slashdot, he has proved how much trouble he can stir up. By understating the case, he reserves the threat of stating it plainly if they take no action. That's the stick. Now Apple has to weigh community goodwill against DRM dollars and decide whether to ship a working DTrace. Whereas, if he had immediately shoved the carrot up his ass and started flailing around with the stick, Apple would have shrugged their shoulders and moved on.

  34. Right. Because that's how the OS community is by Weaselmancer · · Score: 5, Insightful

    We never ever criticize our heroes ever.

    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.

    --
    Weaselmancer
    rediculous.
  35. Re:Apple is not a monopoly!!!1!!1 by Anonymous Coward · · Score: 2, Funny

    forgot the ruby slippers...

  36. "DTrace is hardly crippled" by Chas · · 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!

    --


    Chas - The one, the only.
    THANK GOD!!!
  37. Not equivalent, no double standard by BeanThere · · Score: 3, Insightful

    We are more forgiving of people who aren't more chronically evil, life just is that way, get over it.

    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.

    1. Re:Not equivalent, no double standard by nguy · · Score: 3, Informative

      We are more forgiving of people who aren't more chronically evil, life just is that way, get over it.

      But Jobs is chronically evil.

  38. Everyone needs to use this now by Count+Sessine · · Score: 3, Informative

    The best thing to do now is to make DTrace as useless as possible until Apple removes this limitation.

    Every developer reading this who cares about DTrace and wants to be able to use it for system-wide metrics should set the P_LNOATTACH flag in the next point release for their app. Apple won't like it, but if enough developers do it as a form of protest, it would effectively make DTrace/Instruments ineffective, eliminating a bullet-point feature from Leopard.

  39. DTRACE by ed.markovich · · Score: 5, Informative

    Maybe everyone knows what dtrace is. I didn't. Then I watched this: link and now I do.

  40. Re:Yet another example of how Apple is not our fri by Eskarel · · Score: 2, Insightful

    Apple is Las Vegas, Microsoft is Atlantic City. In both cities you wake up with a hangover and an empty wallet most of the time, but Las Vegas is a lot prettier so you feel better about it.

  41. Re:Yet another example of how Apple is not our fri by toddestan · · Score: 2, Informative

    That's because the CEO of Apple wrote and published an open letter on their website expressing his desire to rid their music store of DRM, and the CEO of Microsoft has done no such thing, instead integrating DRM support into their entire audio and video driver stack. (To the detriment of the stability and functionality of the rest of the OS, I might add...) Please, please, let me know when Microsoft (or a major figurehead thereof) takes an official position against DRM. I'll be waiting eagerly.

    Remember, that's the same CEO that refused to remove the DRM off of non-RIAA tracks, even at the request of the copyright holders, until he had colluded with major labels to design iTunes Plus. Double standard indeed.

  42. Old is New Again by HumanEmulator · · Score: 5, Informative

    Back in 2000, if you installed MacsBug on a Mac you couldn't play DVDs. When you opened the DVD Player you got an error message telling you a debugger was installed. In these pre-memory protection days, MacsBug was the only debugger low-level enough to catch a whole mess of problems. Unfortunately, MacsBug was loaded when the system booted, so the only way to play a DVD was to remove MacsBug and restart your machine.

    Long time Mac developer ally Bare Bones Software (they have a great text editor) created a patch that "fixed" this limitation. AFAIK, Apple never said anything about their patch and just quietly let it exist. http://www.macobserver.com/news/00/april/000418/dvdplayerhelper.shtml

    This whole message mess came about because Macrovision didn't want people disabling their protection on video-output (there were Macs you could literally plug into VCRs then), and I suspect it was also to guard the CSS "encryption."

    When Blu-ray movies finally show up in Macs, this kind of thing is probably going to get a lot worse than patches to D-Trace.

  43. Re:Lol what? by ajs318 · · Score: 2, Insightful

    EULA: "Sharing is stealing".
    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.

    --
    Je fume. Tu fumes. Nous fûmes!
  44. Alarmist my backside. by Chas · · Score: 2, Insightful

    Simply because a fanboi doesn't see the need for full dtrace functionality doesn't mean it's a Good Thing to disable it.

    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.

    --


    Chas - The one, the only.
    THANK GOD!!!