Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
Bug Linux Business IT

Linux Has Fewer Bugs Than Rivals 626

sushant_bhatia_progr writes "Wired has an article stating that according to a four-year analysis of the 5.7 million lines of Linux source code conducted by five Stanford University computer science researchers, the Linux kernel programming code is better and more secure than the programming code of most proprietary software. The report, set to be released on Tuesday, states that the 2.6 Linux production kernel, shipped with software from Red Hat, Novell and other major Linux software vendors, contains 985 bugs in 5.7 million lines of code, well below the industry average for commercial enterprise software. Windows XP, by comparison, contains about 40 million lines of code, with new bugs found on a frequent basis. Commercial software typically has 20 to 30 bugs for every 1,000 lines of code, according to Carnegie Mellon University's CyLab Sustainable Computing Consortium. This would be equivalent to 114,000 to 171,000 bugs in 5.7 million lines of code."
This discussion has been archived. No new comments can be posted.

Linux Has Fewer Bugs Than Rivals

Comments Filter:
  • by thrill12 ( 711899 ) * on Tuesday December 14, 2004 @10:11AM (#11080793) Journal
    Proves it:

    better love (coding) your software, than making war selling it

    :)
  • by UltimaGuy ( 745333 ) on Tuesday December 14, 2004 @10:12AM (#11080803) Homepage
    How can one be sure about closed source kernels like Windows XP. Even though I agree that it has to contain more bugs, without the actual source how can any one make any judgement in this matter?
  • by MadKeithV ( 102058 ) on Tuesday December 14, 2004 @10:15AM (#11080835)
    From TFA

    Seth Hallem, CEO of Coverity, a provider of source-code analysis, noted that the majority of the bugs documented in the study have already been fixed by members of the open-source development community.
  • Re:Mistake (Score:5, Insightful)

    by chrish ( 4714 ) on Tuesday December 14, 2004 @10:16AM (#11080850) Homepage
    Somehow I doubt that the XP kernel is 40 million lines of code. I know it's not good "news" but they should really compare apples to apples in their study.

    This just in! "Hello world" has 0 bugs per three lines of code! Most stable and secure software ever devised!
  • by Anonymous Coward on Tuesday December 14, 2004 @10:16AM (#11080858)
    so we can fix them.
  • Re:Mistake (Score:2, Insightful)

    by jacksonj04 ( 800021 ) <nick@nickjackson.me> on Tuesday December 14, 2004 @10:18AM (#11080880) Homepage
    I disagree - some bits of Windows actually work as intended without glaring problems. In fact, the vast majority of Windows (especially in 2000 onwards) does what it's supposed to.

    Deleting half the DLLs in sys32 then trying to run applications does not constutute a bug, especially when Windows shouts at you that you really don't want to be deleting them. If the user being able to cause problems was a bug (some would say it is), then Linux is more buggy than anything else. Windows has the decency to complain if you're deleting anything essential, Linux at best goes "Y/N", and even that can be overridden with a switch.

    Lots of bugs maybe, but you can't say the entire codebase is badly written.
  • More /. FUD (Score:1, Insightful)

    by m00nun1t ( 588082 ) on Tuesday December 14, 2004 @10:19AM (#11080886) Homepage
    If the same article were submitted but used windows instead of linux, it would have either been rejected or severely criticised in the abstract.
  • by vasqzr ( 619165 ) <vasqzr@noSpaM.netscape.net> on Tuesday December 14, 2004 @10:19AM (#11080887)

    What about if you throw in KDE or GNOME, Mozilla, etc, everything that you'd have to add to really equal the features of Windows XP....

  • by lphuberdeau ( 774176 ) on Tuesday December 14, 2004 @10:20AM (#11080902) Homepage

    I doubt they looked up all the code. They probably only made statistics to compare the amount of bugs based on what has been reported and archives.

    As a side note, at 20 bugs per 1000 lines, the 40 millions lines of Windows would contain 800000 bugs. I'm not a M$ fan, but this sounds a little excessive.

  • by phasm42 ( 588479 ) on Tuesday December 14, 2004 @10:20AM (#11080905)
    Commercial software typically has 20 to 30 bugs for every 1,000 lines of code, according to Carnegie Mellon University's CyLab Sustainable Computing Consortium.
    I'm gonna call bullshit on this figure. This sounds like a number someone pulled out of their ass. A rate of 20-30 bugs per 1000 lines would render most programs unusable.
  • Four Years? (Score:2, Insightful)

    by !the!bad!fish! ( 704825 ) on Tuesday December 14, 2004 @10:21AM (#11080907) Homepage
    according to a four-year analysis of ...
    ... the 2.6 Linux production kernel

    The 2.6 kernel isn't even a year old yet. How'd they do a 4 year analysis?

    No I didn't RTFA.

  • by Anonymous Coward on Tuesday December 14, 2004 @10:29AM (#11080978)
    Why do you think code inspections work so well?

    Yes, the extra eyes looking at your code helps. But so does the fact that you know that there will be extra eyes looking at your code.

    So you do a better job.

    And the correllary is therefore that one of the big reasons some programmers don't like code inspections is that they don't want others to see their code.

    Gee, if you worked for me and didn't want others to see your code I'd wonder why.

  • Re:Apple != Orange (Score:5, Insightful)

    by abb3w ( 696381 ) on Tuesday December 14, 2004 @10:29AM (#11080979) Journal
    The Windows XP code base includes all of the extraneous crap that gets bundled with and on top of the kernel.

    This is what you get for integrating your web browser into your operating system. Legality aside, there was a low cunning to that business move when M$ did it. Now, however, that decision is coming back to bite them on the tender bits: the browser is part of the OS, ergo bugs in the browser count as bugs in the OS.

  • Re:Mistake (Score:4, Insightful)

    by Allen Zadr ( 767458 ) * <Allen.Zadr@nOspaM.gmail.com> on Tuesday December 14, 2004 @10:29AM (#11080986) Journal
    I actually agree here. I'm a big Linux proponent, but the whole text seems fishy to me. And if they are certain there are exactly that number of bugs in the code, then they probably have been addressed. Yet, there are probably more bugs yet to be found.

    Then, when speaking of XP, they don't quantify the bugs, but merely say, "more are being found daily". Great... a pear.

  • Re:More /. FUD (Score:3, Insightful)

    by phasm42 ( 588479 ) on Tuesday December 14, 2004 @10:31AM (#11080998)
    Mod parent up. Although I may believe Linux has fewer bugs, they don't really present any facts to support this other than some vague statement that Windows has "new bugs found on a frequent basis", and some blanket statement with a figure they pulled out of their ass about commercial software, "20 to 30 bugs for every 1,000 lines of code. The reporter for that article did a crappy job in his research. I'll bet that if CyLab is as good an institution as it's made out to be, the people doing the research are probably pissed about how full of it this Wired article is. The reporter probably twisted a couple vague statements he got from someone at CyLab.
  • Re:Apple != Orange (Score:1, Insightful)

    by Anonymous Coward on Tuesday December 14, 2004 @10:32AM (#11081011)
    You obviously don't know all that much about either Windows or the Linux kernel architecture.

    First of all I agree the comparison is a bit like apples and oranges, but it's not so far off if you keep in mind a few things:

    First of all, the Linux kernel contains nearly every single driver available for the GNU/Linux operating system. Windows XP does not.

    Of course, Windows XP includes a graphical windowing interface, which the Linux kernel does not.

    However the Linux Kernel does include most of the things desired in an operating system. Two fully working and implemented sound architectures are there (OSS and ALSA). A networking stack that is infinitely more robust than the Windows one. It includes kernel modules for doing everything you could possibly imagine (and many things you can't).

    There's a lot of obscure support for pretty interesting things. HAM / Amateur radio support. Bluetooth, framebuffer consoles, all sorts of interesting input devices (ranging from game pads for consoles to SUN keyboards and various touchscreens).

    Basically what I'm saying is, just because Windows XP includes some things in that 40 million lines of code that Linux does not, Linux includes many things in its relatively small code base that Windows does not.

    Having said that, the comparison is obviously apples and oranges, but regardless, a bug count of 985 as seen by various academic minds is very very good. It shows Linus' leadership has paid off, and bodes well for the Open Source community as a whole.

    One thing I can guarantee is that if those same people went over the XP code base (even just the core kernel stuff) in the same fashion they did with Linux, the bug count would be MUCH higher.
  • by Burb ( 620144 ) on Tuesday December 14, 2004 @10:32AM (#11081013)
    Also, take a close look at the statement Windows XP, by comparison, contains about 40 million lines of code, with new bugs found on a frequent basis

    Well, the number of lines of code in the code base isn't strictly relevant, but comparing an unquantified rate of bug discovery against a quantified absolute number of bugs doesn't sound like sound practice to me.

    It also makes no statement about the relative severity of the bugs - 100 trivial bugs with simple workarounds would certainly be worth fixing, but how can you compare them against, say, one bug that trashes your principal hard disk?

    OK that's my opinion, now to R the FA.

  • by BJZQ8 ( 644168 ) on Tuesday December 14, 2004 @10:35AM (#11081036) Homepage Journal
    Perhaps it's not a serious bug at first examination...but someday an exploit is discovered, and it becomes a VERY serious issue. With open software, there is no burying. If it's there, it at least CAN be found, even if it isn't immediately. Closed software depends on the goodwill of the software manufacturer, where there often is none.
  • by fizban ( 58094 ) <fizban@umich.edu> on Tuesday December 14, 2004 @10:37AM (#11081061) Homepage
    Did they file bug reports on those 985 items?
  • by MoebiusStreet ( 709659 ) on Tuesday December 14, 2004 @10:38AM (#11081067)
    In proprietary closed code, it's impossible for an outside party to determine the number of bugs.

    The best you can hope to do is to count the number of *symptoms*, but that's not the same thing as bugs. It's possible, even likely, that a single bug in the code manifests itself as 100 apparently different external symptoms.

    So this comparison is apples to oranges and completely meaningless.
  • by LiquidCoooled ( 634315 ) on Tuesday December 14, 2004 @10:46AM (#11081138) Homepage Journal
    so, if they're so good at identifying them, is it much different to fix them?


    Yes, its VERY easy for somebody to notice a bug or unexpected effect.
    it may also be very easy to suggest a possible fix for that bug.
    However, in a large system with lots of interconnected parts, you cannot just impliment the fix without being certain that you haven't screwed up other parts.

    Take for example the slashdot rendering bug in firefox. Plenty of people have reproduced the bug, plenty of people have suggested work arounds and fixes, however none has been stable enough to go into the proper branch (may have changed since I last looked, 1.0 is still problematic).

    Now, another source of bugs and errors is compiler updates. Problems with buffer overflows and other "standardised" bugs can often be removed by changing the compiler switches or obtaining an update to the compiler, this is in effect how MS managed to remove a great many problems with SP2.
    The inverse is also true, code which worked as expected on one version of the compiler may begin to fail during recompilation many years down the line leading to new unnoticed bugs.
  • smells like BS (Score:5, Insightful)

    by OldAndSlow ( 528779 ) on Tuesday December 14, 2004 @10:46AM (#11081142)
    This post pisses me off:

    How do you analyze 5.7 million lines of code except to run it through a static analyzer? Static analyzers can't detect most errors, which tend to be data dependent. So a company selling an uberlint donates their tool, 5 academics run it and write a paper. *Blech*

    Commercial software typically has 20 to 30 bugs for every 1,000 lines of code Bull. Software with 20-30 errors per KSLOC doesn't work. (I know, I just spent a year trying to save a project that had 10 errors per KSLOC. Even at that defect density (found and fixed) it was undeliverable. Notice that the link in TFA doesn't take you to anything that supports this assertion, just to the organization's home page. I could't find anything to support these numbers.

    Weasely non-comparisons: 2.6 Linux production kernel, ... contains 985 bugs in 5.7 million lines of code as opposed to Windows XP, by comparison, contains about 40 million lines of code, with new bugs found on a frequent basis.What, bug in Linux are found on an infrequent basis?

    This is all hot air.

  • Re:My thought, too (Score:2, Insightful)

    by chialea ( 8009 ) <chialea&gmail,com> on Tuesday December 14, 2004 @10:49AM (#11081166) Homepage
    (Err... just a note. The reason he's had trouble getting people to use them is not code-related, it's more ego-related. This, for me, really reinforces the moral -- be nice to people who patch your code as part of their research.)

    Lea
  • Re:Apple != Orange (Score:3, Insightful)

    by hackstraw ( 262471 ) * on Tuesday December 14, 2004 @10:54AM (#11081217)
    The Windows XP code base includes all of the extraneous crap that gets bundled with and on top of the kernel.

    The "Linux" code base just includes the kernel.


    MS gets dinged all the time (at least by us UNIX guys) for what crud they put into the kernelspace, and much of that "extraneous crap" has caused a number of security and stability issues over the years.

    Windows and Linux are fundamentally different in design and purpose. And I do believe that most of the "extraneous crap" code should be included in the kernel lines of code count if it runs in kernel space.
  • by Rob Riggs ( 6418 ) on Tuesday December 14, 2004 @11:01AM (#11081288) Homepage Journal
    I still believe this figure is BS

    It's not.

    There are bugs that affects applications to a level the user notices, and there are bugs that affect the maintainability of the code, the reusability of the code, and the ease of use of the code. Most bugs are hidden from the user's view.

    Does a stack overflow in a piece of code that only occurs when a craftily created exploit is executed constitute a bug? Yes it does -- even when no exploit exists. Under normal operations it does not affect the use of the system -- at least not until an exploit is developed and widely used. The fact that Windows, especially the older versions of the OS, were vulnerable to so many simple exploits illustrates the bugginess of the code. And most of the bugs are not even in close enough to the surface to be so readily exploited.

    Does an end user see API bugs? Does anyone outside of Microsoft experience architectural flaws in the Windows OS? No, but that does not mean they do not exist.

    What about code that misbehaves when presented with certain data. That may not be a problem for the original application that the code was written for, but any time that code gets reused, the programmer must know about these "hidden features" (read: bugs). Again, the user never sees this sort of bug.

    The number they came up with wasn't pulled out their ass. See this article on measuring bugs [ganssle.com] for a more detailed discussion on the topic.

    When reading it, bear in mind that most commercial software is produced for in-house use, receives very little QC, and frequently does not even compile cleanly. It's usuall just "good enough" to get the job done.

  • by Malc ( 1751 ) on Tuesday December 14, 2004 @11:08AM (#11081349)
    "Bug" is a very generic term. Some scaremongers like to use it in the worse sense of the word, but it could just be something simple like setting a screen area to the wrong colour or having a spelling mistake in a piece of text displayed to the user. A bug could just be the use of an inefficient algorithm leading to poor performance and making the user stare unnecessarily at a busy cursor.

    Why do people always look for the worst in things? Yes, you have to have a certain level of paranoia when coding as it is hard to see some of the ramifications, but I think this goes beyond that. In this case it's a sensationalist story...
  • Flawed comparison (Score:3, Insightful)

    by willgott ( 765108 ) on Tuesday December 14, 2004 @11:09AM (#11081355) Homepage
    The article claims that "...the Linux kernel programming code is better and more secure than the programming code of most proprietary software..."

    Of course it is.

    Most proprietary software are user-level apps where a bug here or a bug there isn't critical. The economic loss that can be atributed to a bug in MS Word's bullet-point-algorithm isn't as great as a datacenter going down due a Oops in the linux-box running the SQL-database. To put it simply: there are different requirements for different tasks. A comparison between the quality of WinXP's GUI and GNOME for example would have been much more interesting.

    I don't understand how this story could make slashdot's frontpage.
  • by p3d0 ( 42270 ) on Tuesday December 14, 2004 @11:14AM (#11081403)
    I think they must be counting compile-time errors.
  • by Derleth ( 197102 ) <chbarts AT gmail DOT com> on Tuesday December 14, 2004 @11:18AM (#11081430) Homepage
    void main...

    I found a bug in your code already.

  • by pjrc ( 134994 ) <paul@pjrc.com> on Tuesday December 14, 2004 @11:18AM (#11081434) Homepage Journal
    Vaporware marketing strikes again.

    Believe it or not, we're supposed to give Microsoft some credit for their recent good efforts. We're supposed to accept that someday in the future, they will ship secure, high quality software.

    That may yet happen, and indeed XP SP2 was a good step, but a soild Microsoft system is still vapor.

    Faced with superior products already existing on the market, Microsoft has consistently promised and promised and promised vapor... in the hopes of persuading everyone to keep on using their shoddy wares in hope that they'll someday, at an unknown time in the future, provide improvements. After all, they're "serious" and making a good effort.

    We're also supposed to believe that Microsoft's process is somehow superious, despite flawed results, because of a 3 year roadmap. It's all part of the vaporware marketing tactic... don't buy something better NOW, instead wait for us. Never mind their poor track record of slipping their own dates and dropping those ambitious planned features.

  • by Anonymous Coward on Tuesday December 14, 2004 @11:19AM (#11081444)
    I strongly suspect that this study only covers syntax-type bugs and not style issues like maintainablity or reusability (some older parts of Linux are reportedly very poor in this regard).

    It certainly doesn't cover "Linux can't suspend my laptop" type bugs which tend to be the ones that the user notices.
  • Re:Mistake (Score:2, Insightful)

    by fitten ( 521191 ) on Tuesday December 14, 2004 @11:23AM (#11081477)
    If that's the only qualification, every device driver ever written has to be included in the line and bug count. Also, pretty much any program that does anything interesting has to call into kernel space to have something done for it, so it's kind of running in kernel space too, just not all the time. Well... that pretty much pulls in every application ever written. I think that research group has a bit more work to do. If 5.7 million lines of code took them 5 years, they should only have about another 1000 years to go before they can publish :)
  • Re:Mistake (Score:2, Insightful)

    by blowdart ( 31458 ) on Tuesday December 14, 2004 @11:30AM (#11081541) Homepage
    And of course to do a proper comparision they would need to actually have access to the XP source code to analyse in the same way they analysed the linux source. Then, if they're doing a like for like compare you can't, for example, analyse IE if Firefox wasn't in the linux analysis. If X wasn't analysed, well there goes the Windows GUI.

    Hardly a fair comparison (just like certain TCO studies) but that's not going to stop Linux vendors using it and slipping down to MS marketing levels.

    However it's not clear if the comment

    Windows XP, by comparison, contains about 40 million lines of code, with new bugs found on a frequent basis.

    comes from Wired, or from the Stanford report.

  • Re:Apple != Orange (Score:5, Insightful)

    by falsified ( 638041 ) on Tuesday December 14, 2004 @11:33AM (#11081571)
    Forgive me, O Moderators, for being blunt:

    Do you use only the Linux kernel? No. You run Slackware, or Fedora, or SuSE (my personal choice), or Gentoo, or something. A fresh copy of the latest version of a distribution is what should have been analyzed. All of the other stuff that's piled onto the kernel is what you use, such as the GUI, time-killing games, and all the other shit that a standard XP install disc contains. You don't click on line 11359 of the Linux kernel to open up Konqueror. You click on an icon, which starts a process that you use. The stuff piled onto the kernel is far more buggy than the kernel would be. I'd bet that a distribution of Linux is still far less buggy than Windows is, but it's certainly not 985 vs. 800,000. For example, when I minimize my windows on XP, there isn't hard drive activity for the next five minutes, as can happen with SuSE with not very much open. I'm sure something's misconfigured, but if a distribution, in 2004, is that poorly configured by default, then that's a bug.

  • by Anonymous Coward on Tuesday December 14, 2004 @11:37AM (#11081607)
    Can you copy text by selecting it with the mouse, then dragging it from, let's say, pine to Abiword? Can you debug an C/C++ application properly? (text mode gdb does _not_ do the job for me). Can you create a mail with an attachment by dropping a document on the application's icon? (I can go on you know...)
    It's usability, user-friendliness and consistency in the GUI where gnu/linux fails. Yes, it's kernel is rock-solid and never crashes (although I've seen linux boxes completely frozen when running Matlab).
    But for it to be the success it is is acclaimed to be, the desktop is the area where it is still lacking with respect to both OSX and XP.
  • by Al Dimond ( 792444 ) on Tuesday December 14, 2004 @11:38AM (#11081616) Journal
    Well, right. The architectures are different so they crash and burn in hilariously different ways.

    On a Windows machine I used to use at work if I printed to a printer that was down from MS-Word the computer would completely lose it to the point where explorer.exe had to be killed (actually it would pop up the alert saying that explorer.exe is not responding, would I like to end task, so I clicked yes). I've actually never seen a Windows computer that ran smoothly after killing explorer.exe, every time I've done it I've had to do a restart to make it work well (that's probably because there was something else going wrong too). At least you can still save documents, etc., after killing explorer.

    On this here Linux box, if I ssh to University Solaris machines and use -X instead of -Y and start a remote X app, my system goes to a grinding halt. To get out of that I have to switch to the console (which takes about 10 seconds) and kill ssh, because X is completely unresponsive (keystrokes in the console are slow as well, but it's at least usable). Although once I kill ssh it runs perfectly well, and I remember to use -Y next time. I've never had my Linux box crash to the point where it had to be restarted, but I don't run KDE or Gnome, so if those can really take a computer down I wouldn't know.
  • by OhHellWithIt ( 756826 ) * on Tuesday December 14, 2004 @11:47AM (#11081687) Journal
    Where did they get the Windows source code to examine? If they didn't get the code, then how do they know they found all the bugs in Windows?

    There's also the question of defining a bug. Sometimes, one person's feature is another person's bug. Take allowing scripts in email, like Outlook Express used to do. (May still do, for all I know.)

  • by ClosedSource ( 238333 ) on Tuesday December 14, 2004 @11:52AM (#11081721)
    For most proprietary software, the source is not available. So when contemplating this study the authors should have realized that it couldn't possibly be valid and decided to go do something else. The fact that they went ahead anyway, is a strong indication of their lack of dedication to scientific principles.
  • by julesh ( 229690 ) on Tuesday December 14, 2004 @12:06PM (#11081843)
    Sounds like Windows to me! :-)

    It's a joke, laugh. :)


    It's a sure sign that the moderators are getting stupid when you have to point out the jokes to them. ;-) <--- NOTE SMILEY. :) :)
  • Re:Mistake (Score:5, Insightful)

    by dbacher ( 804594 ) <dave.bacher@earthlink.net> on Tuesday December 14, 2004 @12:09PM (#11081874) Homepage
    X.Org, Mesa and your choice of KDE/GNome and the tools necessary to have the same base application set as Windows has have over 5m lines of code, so it's safe to say Apache 2, Samba, etc. weren't included in this count, either, nor the GNU C compiler suite.

    There's no central Linux repository for reporting bugs in ancillary packages, while at Microsoft's site, all reported bugs go into a single database that can be queried. Each individual Linux distro and each individual Linux package maintains its own bug lists, which would have to be some how amalgamated.

    In order to do the stated comparison, you would need to state what distribution you were using, you would have to state which patches you were using, and you would have to document where the information on bug counts came from for both products.

    On top of all this, bugs per 1000 lines of code, while an industry metric, isn't a valid measurement of code quality, either, by the way.

    One good code metric is the number of control points per function. The more control points per function, the more likely that you have a bug. It's always possible to take a complicated function and break it up into smaller pieces, and with C/C++ (but not .NET or Java), it's possible to do so with no performance impact at all in all ISO compilers.

    Another good metric is the distribution of severity of the reported issues. Draw a bell curve of severity of issues, compare percentage to percentage. You're not concerned with 1000 bugs vs. 100 bugs, you're concerned about how many of those bugs compromise your system or cause a crash.

    Another good metric is delta bugs over time. There will always be bugs, everyone knows that there will be bugs. The question is the bug count going up or down.

    Another good metric is delta time between open and close. Again, there will always be bugs, but how fast they are getting closed is a measure of whether a product is good or bad.

    Another good metric is distribution of the number of days that bugs have been open and reported (by severity).

    The reason for this is that the number of lines to implement a given function using a given algorithm varies between programmers and programming styles. Some will use two lines or statements to do what can be done in one, to make code easier to read. The line number is something that a developer can manipulate easily.

    However, these other measurements are tied directly into the quality of the code. Nobody cares how big the Linux kernel is compared to the Windows kernel, or vice versa. What they care about is how well the Linux kernel works compared to the Windows kernel.

    Any count related to bugs, also, needs to take into account the fact that on Windows, you have billions of users any of whom could find and report a bug. On Linux, bugs are more likely to go undiscovered for a longer period of time, simply because there aren't as many people trying to hit them.

    The Windows and Linux kernel tend to be very similar in bug counts. The kernels of both OSes tend not to have bugs, because kernels tend to have simple code that's hard to mess up in any meaningful way.

    It's only when you start including all these ancillary subsystems, device drivers, etc. that you start to see significant percentages of the bug.

    And it is exceptionally hard to get an accurate count of those on Linux. On vMac, I documented approximately one bug in ten that I fixed, and I think that would be typical of other open source projects (although I can't swear to that).

    I think that on these other, valid measurements that aren't dependent on lines of code, that if you could collect the statistics on a package per package basis, and compare them, that Open Source would still come out ahead of Windows.

    It's just a matter of using a meaningless metric on widely divergent code bases to prove any point is irresponsible, and by reporting it, the media is doing a disservice to the Open Source community by perpetuating the image of the community as a bunch of college students who don't understand real development practices.
  • Re:Mistake (Score:2, Insightful)

    by Thundersnatch ( 671481 ) on Tuesday December 14, 2004 @12:22PM (#11082021) Journal

    But you're wrong, they don't. IE and Media player run in user space in Windows. As do the vast majority of "buggy" programs in Windows.

    It would be far more fair to compare XP with the Linux kernel + X + Gnome/KDE + browser + email app + xine + a bunch of other equivalent user-space utilities. But that would be a lot of work, and deciding where to draw the lines would be difficult. The two OS are architected very differently... shouldn't the horrendously buggy third-party video drivers that ship with most linux distros be included, since so many third-party drivers are included with Windows?

    I'm not saying Linux would lose such a "fair" comparison, it would probably still be found less buggy than Windows. My point is this referenced article is stupid, useless propaganda generated by someone with an axe to grind.

  • Plus (Score:3, Insightful)

    by Sycraft-fu ( 314770 ) on Tuesday December 14, 2004 @12:36PM (#11082173)
    If someone can confidently say Linux has 985 bugs, and ONLY 985 bugs, and point them all out, then one would think in short order Linux would have 0 bugs, since they'd all get fixed.

    The whole thing kind of strikes me as people talking out of their ass.
  • Re:Apple != Orange (Score:4, Insightful)

    by MojoRilla ( 591502 ) on Tuesday December 14, 2004 @12:39PM (#11082202)
    You are suggesting that they should have sacrifice usability for a meaningless statistic. What a typical dumb PHB statement.

    Exactly how does making the browser part of the operating system make Windows more usable?

    Because they did this, I now can't remove IE if I want to. I have trouble with outlook if I set mozilla as my default browser. I can't upgrade IE without patching the OS (which means other programs that use IE components might break). There is no way for me to downgrade to earlier browser versions. There is no way for me to have multiple versions of IE installed, so it makes it hard to test. Because IE is in the operating system, Microsoft has delayed releasing new features until the next version of the OS is shipped.

    I can't think of a single thing that integrating the browser into the OS buys you, except some code reusability. From my engineering perspective, this wasn't done for any legitimate engineering reason, but because of legal and business reasons.
  • by Sycraft-fu ( 314770 ) on Tuesday December 14, 2004 @12:45PM (#11082283)
    Is comparing the Linux kernel to the Windows OS as a whole. The Linux kernel by itself is essentially worthless as an OS. You at the very least have to add drivers, a shell, and some basic programs and services. In reality to have a workable desktop OS you need X, a good WM, and a ton of programs on top of that.

    Now I can see maybe comparing the kernel mode code. Windows throws a lot of stuff in the kernel, much of which UNIX types disagree with. Basically the whole graphics subsystem, including rendering engine, is all kernle mode. Microsoft decided that the speed increase was worth it and it didn't matter since if it goes down, the system halts anyhow since Windows doesn't drop to shell. UNIX is different, if X crashes, big deal, you now have a console and you restart X.

    However even with kmode comparisions it gets hairy. I mean what is really necessiary and proper there? Talk to a hard core microkernel fan of soemthing like QNX and they'll say NOTHING excpet the kernel, not even drivers. Linux put a LOT in kernel space as compared to some OSes.
  • by rd_syringe ( 793064 ) on Tuesday December 14, 2004 @12:46PM (#11082299) Journal
    Is anyone else bothered by the idea that an article entitled "Linux Has Fewer Bugs Than Rivals" is posted that compares 5 million lines of code that make up just a kernel to 40 million lines of code that make up a kernel, an operating system, a desktop, its integrated components, and its included applications? 40 million lines has more bugs than 5 million? Who'd have thunk it?

    Why does "Linux is just a kernel" suddenly not apply here? Is it because we're bashing Microsoft? This is kind of lame and makes the community look silly and vitriolic.
  • And yet (Score:3, Insightful)

    by Anonymous Coward on Tuesday December 14, 2004 @12:54PM (#11082387)
    And yet, Linux has more security advisories than Windows each month.

    I'd like to see a serious discussion of the methods and funding sources in this study. You know, the same kind of discussions that appear whenever a Microsoft study is posted. Mysteriously, that critical thinking is absent in articles like this.

    40 million lines of code != 5 million lines of code. If Microsoft attempted such a skewed study, I can already picture the kinds of posts people would be writing, asking about methods, funding, and more. Those posts aren't appearing in this article. Why? Well, that's because this isn't about the quest for finding out which operating system actually has less bugs (sorry, I forgot, "Linux is just a kernel!"...funny how that oft-uttered phrase is missing in the article discussion), this is nothing more than a Microsoft-bash article intended to generate Microsoft-bashing replies.

    OSTG, the corporation that owns Slashdot, makes money off of OSS products. It's rather convenient that they run a "tech news" site that just so happens to post news stories that are all critical of their competitors, isn't it? Imagine if Microsoft owned a tech news site that posted nothing but anti-Linux articles? You guys would be all over it, but your biases against Microsoft make you have a double-standard. So you ignore that Slashdot is a corporate-owned website with a major bias and an editorial staff that can barely read and write correctly, much less bother to read their own website.
  • by Macphisto ( 62181 ) on Tuesday December 14, 2004 @01:21PM (#11082594) Journal
    jeremyp@dhcp-2-1-56:jeremyp$

    Dude, letting dhcpcd set your hostname is extremely lame.

  • by ColMustard ( 698424 ) on Tuesday December 14, 2004 @01:23PM (#11082612)
    This guy has a valid point, and to mod him down as if this argument isn't valid is just silly. Mod points shouldn't be used to kill people who you happen to disagree with.
  • by Anonymous Coward on Tuesday December 14, 2004 @02:27PM (#11083285)
    Read the article again.

    According to the author: Linux has fewer lines of code AND fewer bugs per thousand lines of code when compared to typical commercial software.

    Currently linux has 985 known bugs in 5.7 million lines of code. If linux is to compete with commercial code it will need about 114,000 to 171,000 bugs in 5.7 million lines of code.
  • by Ignignot ( 782335 ) on Tuesday December 14, 2004 @02:40PM (#11083420) Journal
    With apologies to Douglas Adams:

    You don't understand how the story could possibly make the frontpage. To those that know how slashdot really works, it was inevitable that once this story was written, it would reach the front page.

    oh man I messed that up bad.
  • Re:And yet (Score:1, Insightful)

    by Anonymous Coward on Tuesday December 14, 2004 @04:36PM (#11084884)
    How come flame wars always spring up with the "microsoft is buggy" issue. You've made a pretty big jump from "this isn't a fair comparison" to "slashdot authors are idiots". You can't say that suporting OSS makes a newsite useless, it's a choice they make. Microsoft deal with problems by throwing money at them, OSS make news posts. so what?

    And while it isn't a fair comapison, you must admit that having so few bugs in the kernel alone suggest that the general standard of coding is high. nobody could trawl through the 40mill lines of WinXP code, just like no one could go through all the software that makes up the Linux desktop (especially seeing as it's constantly updated) But anyway: Do you run windows update? have you seen the number of patches that appear? do you have to keep an antivirus running 24/7 to watch over your security holes?
    I know i do. And yes, despite all the advantages of Linux, i run windows, because at the moment i need more ease of use, no time to learn a new OS.
    Bug-proof isn't everything.
  • by Overly Critical Guy ( 663429 ) on Tuesday December 14, 2004 @05:14PM (#11085518)
    Okay, kid, I'll bite.

    Anyone wonder why it takes 40 million lines of code to do what 5.7 million do?

    The Windows kernel, based on VMS, is smaller in size than the monolithic Linux kernel.

    And no, that doesn't include "all of Microsoft's applications."

    Yes, it does.

    What "included applications" were you referring to? Notepad? Gimme a break...

    How many lines of code is X-Windows? And GNOME? And all the Linux drivers? Windows is a kernel, a HAL, a graphical subsystem, a desktop environment, a shitload of APIs and DLLs, and basically every other desktop component that currently makes up GNOME/KDE/X-Windows/Linux. Yet the comparison only cited Linux and not the rest.

    Linux is written by programmers who obviously love programming, since they work on it in their spare time outside their normal programming jobs.

    You are obviously a fanboy. We know what Linux programmers are like.

    Windows is written by 24-year-old recent college CS graduates who have no fucking clue how to do anything - managed by "product managers" who have even less clue - managed by corporate execs who are KNOWN ASSHOLES!

    Stop by Microsoft sometime for a job interview. We'll see if you stand shoulder to shoulder with Microsoft's engineers. Ever compared the level of desktop Linux to the level of, say, Windows 95 from nine years ago?

    Mod me troll, mod this flamebait! Is that all you got, huh? Are you nuts? Come at me!

    I guess Flamebait.
  • by Inoshiro ( 71693 ) on Sunday December 19, 2004 @02:48AM (#11128612) Homepage
    From the manpage:
    -pedantic
    Issue all the warnings demanded by strict ISO C and ISO C++; reject all programs that use forbidden extensions, and some other programs that do not follow ISO C and ISO C++. For ISO C, follows the version of the ISO C standard specified by any -std option used.

    -- That seems to be exactly what I described it as doing.

    Now, you choosing to make standards un-conformance into a warning rather than an error is something else. (Old) C defines the default return type to be int, but C++ has it as undefined. Forcing it to a warning is not the way to solve that problem; you should've fixed the code, which is why g++ defaults to making the type checking as errors, instead of warnings.

Any circuit design must contain at least one part which is obsolete, two parts which are unobtainable, and three parts which are still under development.

Working...