fsck.vfat hangs, eats CPU on problematic file

Bug #47215 reported by Christian Convey
8
Affects Status Importance Assigned to Milestone
dosfstools (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I'm using the Dapper release candidate that was released around 25 May 2006. During the boot process, the fsck of one of my Windows partitions hung indefinitely each time I booted. The error was always the same:

dosfsck 2.11, 12 Mar 2005, FAT32, LFN
/15-sept-2005-linux-home-backup.tar.gz
  File size is 0 bytes, cluster chain length is > 0 bytes.
  Truncating file to 0 bytes.

I could always get past this by ctrl-C during the boot process (and then ctrl-D to continue booting).

Once booted, I did the fsck.vfat in a terminal and watch the CPU monitor. The CPU is pegged when I run this.

I deleted that file. Now when I run fsck.vfat, no problem at all. The entire check completes in several seconds.

So I'm passed the problem for now, but a few note:
This problem never occured to me under Breezy (and I was using the same vfat filesystems under Breezy.) So it's a pretty serious regression.

Revision history for this message
Onno Benschop (onno-itmaze) wrote :

Hi, thank you for your bug report.

We've just been trying to reproduce this bug, but couldn't. Is there anything you can tell us about your computer that might give more information. For example:

* Was a specific file, or group of files, involved?
* What names did affected files have?
* Were they all in the same directory, what was the name of that directory?
* How big was the partition that contained the files?
* Which language was the file system?
* Was the file of a particular size?
* Was the file a Windows .lnk file?
* What other symptoms did you notice?

We realise that we're asking lots of questions, but the bug you reported has potentially been identified as being part of a problem tucked away in the internal workings of the operating system and if that is the case, it may affect many users.

Thanks,
Stefan and Onno

Revision history for this message
Christian Convey (christian-convey) wrote : Re: [Bug 47215] Re: fsck.vfat hangs, eats CPU on problematic file

Hi guys,

I'm afraid it's so long ago that I don't remember many details. I've
answered below as best I can...

On 12/17/06, Onno Benschop <email address hidden> wrote:
> Hi, thank you for your bug report.
>
> We've just been trying to reproduce this bug, but couldn't. Is there
> anything you can tell us about your computer that might give more
> information. For example:
>
> * Was a specific file, or group of files, involved?

It seemed to be a single file. That is, the fsck only complained
about that file, and I'm *pretty* sure that I only needed to delete
that one file to make the problem go away.

> * What names did affected files have?

It's listed in the original problem report.

> * Were they all in the same directory, what was the name of that directory?

Just one file. My *guess* is that it was in the root directory of
that partition, but that the partition was mounted somewhere like
"/mount/windows_f-drive/" or something like that.

> * How big was the partition that contained the files?

I don't remember - probably not super huge. This was just one of
several partitions residing on my 60 GB laptop hard drive. Almost
certainly smaller than 20 GB.

> * Which language was the file system?

I didn't realize they had languages. I've always told my OS installs
that I'm using American English.

> * Was the file of a particular size?

Don't remember. It wouldn't have been very small, because it was a
backup of a bunch of files. It was probably over 10 MB, and maybe
even a few GB in size. I don't remember.

> * Was the file a Windows .lnk file?

No.

> * What other symptoms did you notice?

None that I remember.

>
> We realise that we're asking lots of questions, but the bug you reported
> has potentially been identified as being part of a problem tucked away
> in the internal workings of the operating system and if that is the
> case, it may affect many users.

No problem. Thanks for looking into it.

- Christian

>
> Thanks,
> Stefan and Onno
>
> --
> fsck.vfat hangs, eats CPU on problematic file
> https://launchpad.net/bugs/47215
>

Revision history for this message
StefanPotyra (sistpoty) wrote :

Hi,

this might be a duplicate of #62831, not sure though. At least the code in question that's near the check of file size vs. cluster chain length contained an integer overflow (very large files affected only).

Too sad you don't have the file any longer, so that you could test my proposed fix. Would you mind if I close that bug, once the fix for bug #62831 is uploaded?

Cheers,
   Stefan.

Revision history for this message
Christian Convey (christian-convey) wrote :

May as well close my bug - we don't really have a way of making
progress on it even if it's not fixed :(

On 12/18/06, StefanPotyra <email address hidden> wrote:
> Hi,
>
> this might be a duplicate of #62831, not sure though. At least the code
> in question that's near the check of file size vs. cluster chain length
> contained an integer overflow (very large files affected only).
>
> Too sad you don't have the file any longer, so that you could test my
> proposed fix. Would you mind if I close that bug, once the fix for bug
> #62831 is uploaded?
>
> Cheers,
> Stefan.
>
> --
> fsck.vfat hangs, eats CPU on problematic file
> https://launchpad.net/bugs/47215
>

Revision history for this message
StefanPotyra (sistpoty) wrote :

Ok, I'm closing this bug now, since the newer version is in the archive. In case you stumble upon problems with dosfsck again, please reopen (or file a new bug).

Thanks.

Changed in dosfstools:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.