Clan x86

General Forums => General Discussion => Topic started by: Warrior on November 06, 2007, 02:25:21 AM

Title: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 02:25:21 AM
http://tomkarpik.com/articles/massive-data-loss-bug-in-leopard/


"Leopard's Finder has a glaring bug in its directory-moving code, leading to horrendous data loss if a destination volume disappears while a move operation is in action. I first came across it when Samba crashed while I was moving a directory from my desktop over to a Samba mount on my FreeBSD server.

I've now run tests on a Windows XP SP2 SMB mount, as well as a local HFS+ formatted USB drive, and the bug surfaces every time the destination disappears while the Finder is moving something to the destination."


In short, upon any condition that a Move operation fails the source directory is still deleted. This source dir should only be deleted if the transfer to the destination did not fail.

The bug has existed since Panther, I guess it blows any sort of "Microsoft is late to fixing bugs" complaints right into hypocrisy.
Title: Re: Dataloss Bug in Leopard
Post by: Blaze on November 06, 2007, 02:36:03 AM
There was a windows update for Windows 2000 that created a data-loss bug.  If a hard drive was using compression and was accessed, it would lose data every time something was saved, IIRC.  :P

This is still a pretty serious bug.  :P
Title: Re: Dataloss Bug in Leopard
Post by: Sidoh on November 06, 2007, 02:43:33 AM
According to my friend, "it only happens if you have a file that's over the size of 500 MB".

That still sucks, but at least it's well known (he knew about it before I sent him the link).
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 07:58:51 AM
Test file in the article is 384MB. Seems any operation that takes over 10 seconds, so it may very well depend on hardware though
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 09:02:03 AM
Quote from: Sidoh on November 06, 2007, 02:43:33 AM
That still sucks, but at least it's well known (he knew about it before I sent him the link).

I don't see this as a plus. At all. The fact that it's been known for now two point releases is astounding. It's a severe bug, which can result in data-loss. The fact that this even got out of QA is amazing.

I'm sure if this were happening to Vista, the entire internet would be apeshit demanding a fix. It happens to OSX and people learn to live with it..

Seems Apple focused more on making Finder pretty, as opposed to fixing a glaring bug which has been present since Panther. But hey, at least they have the iPhone.
Title: Re: Dataloss Bug in Leopard
Post by: chuck on November 06, 2007, 09:38:05 AM
At least its a bug, and not a feature. ;)
Title: Re: Dataloss Bug in Leopard
Post by: Sidoh on November 06, 2007, 10:33:43 AM
Quote from: Warriorx86] link=topic=10605.msg135145#msg135145 date=1194357723]
Quote from: Sidoh on November 06, 2007, 02:43:33 AM
That still sucks, but at least it's well known (he knew about it before I sent him the link).

I don't see this as a plus. At all. The fact that it's been known for now two point releases is astounding. It's a severe bug, which can result in data-loss. The fact that this even got out of QA is amazing.

I'm sure if this were happening to Vista, the entire internet would be apeshit demanding a fix. It happens to OSX and people learn to live with it..

Seems Apple focused more on making Finder pretty, as opposed to fixing a glaring bug which has been present since Panther. But hey, at least they have the iPhone.

How is it being well known not good for the user? :P
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 10:37:15 AM
Quote from: Sidoh on November 06, 2007, 10:33:43 AM
Quote from: Warriorx86] link=topic=10605.msg135145#msg135145 date=1194357723]
Quote from: Sidoh on November 06, 2007, 02:43:33 AM
That still sucks, but at least it's well known (he knew about it before I sent him the link).

I don't see this as a plus. At all. The fact that it's been known for now two point releases is astounding. It's a severe bug, which can result in data-loss. The fact that this even got out of QA is amazing.

I'm sure if this were happening to Vista, the entire internet would be apeshit demanding a fix. It happens to OSX and people learn to live with it..

Seems Apple focused more on making Finder pretty, as opposed to fixing a glaring bug which has been present since Panther. But hey, at least they have the iPhone.

How is it being well known not good for the user? :P

Ah, I thought you meant at Apple.
I think that while it's good the users know of the bug, it's obvious not enough really know since it's cropping up again. It's a very dangerous bug, which is pretty easy to reproduce.
Title: Re: Dataloss Bug in Leopard
Post by: Hitmen on November 06, 2007, 11:54:49 AM
Ugh, more microsoft v apple. Same shit different platform. Buy whichever turd you perfer.
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 11:58:48 AM
Quote from: Hitmen on November 06, 2007, 11:54:49 AM
Ugh, more microsoft v apple. Same shit different platform. Buy whichever turd you perfer.

What exactly do you want them to do? Hold hands? This is competition, and the consumer deserves the right to inquire about the quality of the product he/she is buying.

Title: Re: Dataloss Bug in Leopard
Post by: MyndFyre on November 06, 2007, 12:38:32 PM
War, stop being such a bleeting fanboy.
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 12:57:25 PM
Quote from: MyndFyrex86/64] link=topic=10605.msg135188#msg135188 date=1194370712]
War, stop being such a bleeting fanboy.

I'm pointing out flaws in a flawed system, while at the same time asking others to try to justify the fact that such a critical bug was ignored.

I will admit, I'm having fun.
Title: Re: Dataloss Bug in Leopard
Post by: iago on November 06, 2007, 12:58:59 PM
Quote from: Warriorx86] link=topic=10605.msg135182#msg135182 date=1194368328]
Quote from: Hitmen on November 06, 2007, 11:54:49 AM
Ugh, more microsoft v apple. Same shit different platform. Buy whichever turd you perfer.

What exactly do you want them to do? Hold hands? This is competition, and the consumer deserves the right to inquire about the quality of the product he/she is buying.

If they worked together, they'd both have a better product. But they don't, so they both have worse products than otherwise.

That's why competition (and, hence, capitalism) sucks. :)
Title: Re: Dataloss Bug in Leopard
Post by: MyndFyre on November 06, 2007, 01:04:23 PM
Do you think that your little tank notebook would exist if not for competition? :P
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 01:05:48 PM
Quote from: iago on November 06, 2007, 12:58:59 PM
Quote from: Warriorx86] link=topic=10605.msg135182#msg135182 date=1194368328]
Quote from: Hitmen on November 06, 2007, 11:54:49 AM
Ugh, more microsoft v apple. Same shit different platform. Buy whichever turd you perfer.

What exactly do you want them to do? Hold hands? This is competition, and the consumer deserves the right to inquire about the quality of the product he/she is buying.

If they worked together, they'd both have a better product. But they don't, so they both have worse products than otherwise.

That's why competition (and, hence, capitalism) sucks. :)

What happens when the one unified company achieves complete domination of the market? There is no incentive to deliver a better product, innovation is stagnated.
Title: Re: Dataloss Bug in Leopard
Post by: iago on November 06, 2007, 03:34:26 PM
Quote from: MyndFyrex86/64] link=topic=10605.msg135191#msg135191 date=1194372263]
Do you think that your little tank notebook would exist if not for competition? :P
Yes, if there was no competition computers would still be required in dangerous situations.

Quote from: Warriorx86] link=topic=10605.msg135193#msg135193 date=1194372348]
What happens when the one unified company achieves complete domination of the market? There is no incentive to deliver a better product, innovation is stagnated.
Like I said, it's why capitalism sucks. Money is a crappy incentive because at the same time as making better products, it also encourages companies to make cheaper products.
Title: Re: Dataloss Bug in Leopard
Post by: Camel on November 06, 2007, 04:41:50 PM
I've been trying for the past half hour, have tried files of all sizes, and I can't get this bug to occur. Maybe they haven't fixed it because they couldn't reproduce it, because it's rare?

Also, Warrior, you can hardly use this minor bug as an excuse to hold Windows above OSX. I'm not interested in starting a war, but I will point out that it's a fact that there has only ever been one virus for OSX, and the fix was distributed before the exploit became known. Microsoft seems to release a critical update for windows ever other week.

I was at the Apple store last night (talking them in to Leopard for free, which worked btw), and one of the geniuses explained to some old lady that he removed the anti-virus software from her mac because it was unnecessarily slowing down her old ass G3.
Title: Re: Dataloss Bug in Leopard
Post by: iago on November 06, 2007, 05:06:22 PM
Quote from: Camel on November 06, 2007, 04:41:50 PM
...it's a fact that there has only ever been one virus for OSX, and the fix was distributed before the exploit became known.
That doesn't really make sense, since viruses don't depend on exploiting vulnerabilities.
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 06:06:33 PM
Quote from: Camel on November 06, 2007, 04:41:50 PM
Also, Warrior, you can hardly use this minor bug as an excuse to hold Windows above OSX. I'm not interested in starting a war, but I will point out that it's a fact that there has only ever been one virus for OSX, and the fix was distributed before the exploit became known. Microsoft seems to release a critical update for windows ever other week.

I was at the Apple store last night (talking them in to Leopard for free, which worked btw), and one of the geniuses explained to some old lady that he removed the anti-virus software from her mac because it was unnecessarily slowing down her old ass G3.

Minor bug? Data loss is a minor bug? Only in the Apple world I suppose.

I'm aware of at least two OSX viruses, but either way there have been even more critical holes found which could lead to remote code execution. That's the problem with the Apple camp, they pretend they're immune to malware.
Title: Re: Dataloss Bug in Leopard
Post by: Sidoh on November 06, 2007, 06:17:16 PM
It's minor in the sense that the conditions it occurs under are fairly obscure, specific and unlikely to arise for the average user.  I agree that data loss is a big deal, though.

I'm sure I don't have to point out that statistically, apple users are far less likely to run into problems.  Immune is the wrong word in most reasonable cases I'd say.  I'm sure there are ignorant mazis (mac nazis?) that say shit like that, but no one with a fairly encompassing knowledge of the subject believes that macs don't have vulnerabilities.
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 06:41:03 PM
Quote from: Sidoh on November 06, 2007, 06:17:16 PM
I'm sure I don't have to point out that statistically, apple users are far less likely to run into problems.  Immune is the wrong word in most reasonable cases I'd say.  I'm sure there are ignorant mazis (mac nazis?) that say shit like that, but no one with a fairly encompassing knowledge of the subject believes that macs don't have vulnerabilities.

Of course, I also don't think it's fair to rag on an Operating System with 95% more market share than you in terms of security. Windows is infinitely more targeted, it's impossible to make a direct comparison between the two in terms of security.

What it is possible to do is shoot down the sense of "It just works" or there "is no malware on OSX". It's a very ignorant, and dangerous stance.
Title: Re: Dataloss Bug in Leopard
Post by: Hitmen on November 06, 2007, 06:49:25 PM
Quote from: Warriorx86] link=topic=10605.msg135182#msg135182 date=1194368328]
What exactly do you want them to do? Hold hands? This is competition, and the consumer deserves the right to inquire about the quality of the product he/she is buying.
I meant people who use the products, not the compaines.  I do not hold myself responsible for the anticapitalistic conversation which followed.
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 06:51:29 PM
Quote from: Hitmen on November 06, 2007, 06:49:25 PM
Quote from: Warriorx86] link=topic=10605.msg135182#msg135182 date=1194368328]
What exactly do you want them to do? Hold hands? This is competition, and the consumer deserves the right to inquire about the quality of the product he/she is buying.
I meant people who use the products, not the compaines.  I do not hold myself responsible for the anticapitalistic conversation which followed.

The second sentence still holds merit in that case.
Title: Re: Dataloss Bug in Leopard
Post by: Hitmen on November 06, 2007, 06:59:24 PM
Quote from: Warriorx86] link=topic=10605.msg135226#msg135226 date=1194393089]
The second sentence still holds merit in that case.
I wasn't complaining that you posted the topic, it is a perfectly valid topic for discussion. It just sucks that it turns into microsoft v. apple rather than looking at it objectively.
Title: Re: Dataloss Bug in Leopard
Post by: Warrior on November 06, 2007, 07:02:32 PM
Quote from: Hitmen on November 06, 2007, 06:59:24 PM
Quote from: Warriorx86] link=topic=10605.msg135226#msg135226 date=1194393089]
The second sentence still holds merit in that case.
I wasn't complaining that you posted the topic, it is a perfectly valid topic for discussion. It just sucks that it turns into microsoft v. apple rather than looking at it objectively.

They are two direct competitors. It's inevitable that it will turn into that kind of discussion. Competition is not always pretty.
Title: Re: Dataloss Bug in Leopard
Post by: Hitmen on November 06, 2007, 07:10:45 PM
Quote from: Warriorx86] link=topic=10605.msg135230#msg135230 date=1194393752]
They are two direct competitors. It's inevitable that it will turn into that kind of discussion. Competition is not always pretty.
But it could be, if people weren't assholes for no reason!
Title: Re: Dataloss Bug in Leopard
Post by: Camel on November 08, 2007, 11:24:28 AM
Quote from: iago on November 06, 2007, 05:06:22 PM
Quote from: Camel on November 06, 2007, 04:41:50 PM
...it's a fact that there has only ever been one virus for OSX, and the fix was distributed before the exploit became known.
That doesn't really make sense, since viruses don't depend on exploiting vulnerabilities.

The defining characteristic of a computer virus, as opposed to malware, is the ability to spread to other computers. OS X is resilient to this type of attack because of its atomic design. I don't know anything about how Windows was designed, but if you look at the vulnerabilities that have existed in the past, the vast majority of them result from unchecked buffer overflows. Professional developers should be aware of how to avoid this flaw; hell, I took a 2000-level class in my Sophomore year of college where the professor would fail students that created this type of vulnerability, because it's so simple to avoid!

I'm not saying that I demand perfection from every piece of software I use, but I am saying that Microsoft - someone is here to install ram, i'll finish this later :)
Title: Re: Dataloss Bug in Leopard
Post by: MyndFyre on November 08, 2007, 11:51:23 AM
You need someone to install your memory but you're going to criticize Microsoft?  LOL  :D
Title: Re: Dataloss Bug in Leopard
Post by: iago on November 08, 2007, 12:07:31 PM
Quote from: Camel on November 08, 2007, 11:24:28 AM
The defining characteristic of a computer virus, as opposed to malware, is the ability to spread to other computers.
Incorrect: the defining characteristic of a computer virus is that it's capable of infecting other files or programs.

You're probably thinking of a worm, where the defining characteristic is the ability to propagate on its own (or with minimal user interaction -- not part of the definition, but email worms have skewed it a bit).

Quote from: Camel on November 08, 2007, 11:24:28 AM
OS X is resilient to this type of attack because of its atomic design. I don't know anything about how Windows was designed, but if you look at the vulnerabilities that have existed in the past, the vast majority of them result from unchecked buffer overflows. Professional developers should be aware of how to avoid this flaw; hell, I took a 2000-level class in my Sophomore year of college where the professor would fail students that created this type of vulnerability, because it's so simple to avoid!

I'm not saying that I demand perfection from every piece of software I use, but I am saying that Microsoft - someone is here to install ram, i'll finish this later :)
The rest of this is reasonable. My issue is simply a semantic one.
Title: Re: Dataloss Bug in Leopard
Post by: Camel on November 08, 2007, 12:27:09 PM
Quote from: MyndFyrex86/64] link=topic=10605.msg135329#msg135329 date=1194540683]
You need someone to install your memory but you're going to criticize Microsoft?  LOL  :D
No, I'm at work. It's a stupid policy they have; I have no control over it.

Quote from: Camel on November 08, 2007, 11:24:28 AM
I'm not saying that I demand perfection from every piece of software I use, but I am saying that Microsoft - someone is here to install ram, i'll finish this later :)

...but I am saying that Microsoft does not live up to the standards that are set by every operating system that isn't Windows. Of course, it's reasonable to say that it's possible that more vulnerabilities have been found because it's a bigger target, but I think it's also reasonable to say "come on, everyone knows it's just less secure."

In any event, this isn't really the reason I jumped in to the topic, my intent was to show that Warrior's attack was overzealous. Sure, it's a bug, and it has pretty serious consequences, but it's unreasonable to make that kind of a comparison to Windows. For starters, the products don't even target the same markets. The overlap is almost exclusively limited to home computers, and even there Microsoft has a huge hold on the market, but it has been shrinking at a substantial rate ever since Apple switched to Intel processors.

On a completely unrelated note, the wireless connection at my apartment sucks. There are 28 visible access points, and even if I pick a channel that is unused, I'm still lucky to get a couple megabits of throughput with line-of-sight to the AP. I've been plugging in to the router every time I need to transfer files across the network. It's still reasonable to download files from the internet over the wireless (we have an 8Mbit cable connection).