[Bug 1103146] [NEW] fsck.vfat crashes

Launchpad Bug Tracker 1103146 at bugs.launchpad.net
Tue Jan 22 20:35:18 UTC 2013


You have been subscribed to a public bug:

root at Rezak:~# fsck.vfat -v /dev/sdh
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     65536 bytes per cluster
         6 reserved sectors
First FAT starts at byte 3072 (sector 6)
         2 FATs, 16 bit entries
    104960 bytes per FAT (= 205 sectors)
Root directory starts at byte 212992 (sector 416)
       512 root directory entries
Data area starts at byte 229376 (sector 448)
     52284 data clusters (3426484224 bytes)
63 sectors/track, 255 heads
         0 hidden sectors
   6692864 sectors total
/.Trash-1000
  Contains a free cluster (400). Assuming EOF.
/eReading/knihovna/muzi-kteri-nenavidi-zeny.epub
  File size is 1179164 bytes, cluster chain length is > 1179648 bytes.
  Truncating file to 1179164 bytes.
Checking for unused clusters.
Reclaimed 10 unused clusters (655360 bytes).
Leaving file system unchanged.
/dev/sdh: 58 files, 420/52284 clusters


root at Rezak:~# fdisk -l /dev/sdh

Disk /dev/sdh: 3426 MB, 3426746368 bytes
106 heads, 62 sectors/track, 1018 cylinders, total 6692864 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x6f20736b

This doesn't look like a partition table
Probably you selected the wrong device.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1   ?   778135908  1919645538   570754815+  72  Unknown
/dev/sdh2   ?   168689522  2104717761   968014120   65  Novell Netware 386
/dev/sdh3   ?  1869881465  3805909656   968014096   79  Unknown
/dev/sdh4   ?           0  3637226495  1818613248    d  Unknown

Partition table entries are not in disk order
root at Rezak:~#


root at Rezak:~# fsck.vfat -v /dev/sdh -a
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     65536 bytes per cluster
         6 reserved sectors
First FAT starts at byte 3072 (sector 6)
         2 FATs, 16 bit entries
    104960 bytes per FAT (= 205 sectors)
Root directory starts at byte 212992 (sector 416)
       512 root directory entries
Data area starts at byte 229376 (sector 448)
     52284 data clusters (3426484224 bytes)
63 sectors/track, 255 heads
         0 hidden sectors
   6692864 sectors total
/.Trash-1000
  Contains a free cluster (400). Assuming EOF.
/eReading/knihovna/muzi-kteri-nenavidi-zeny.epub
  File size is 1179164 bytes, cluster chain length is > 1179648 bytes.
  Truncating file to 1179164 bytes.
Reclaiming unconnected clusters.
*** buffer overflow detected ***: fsck.vfat terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f8b29268807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f8b29267700]
/lib/x86_64-linux-gnu/libc.so.6(+0x108b69)[0x7f8b29266b69]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdd)[0x7f8b291da13d]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1d42)[0x7f8b291a8702]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x7f8b29266c04]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f8b29266b4d]
fsck.vfat[0x404409]
fsck.vfat[0x40645d]
fsck.vfat[0x401442]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f8b2917f76d]
fsck.vfat[0x401525]
======= Memory map: ========
00400000-0040c000 r-xp 00000000 08:07 131142                             /sbin/dosfsck
0060b000-0060c000 r--p 0000b000 08:07 131142                             /sbin/dosfsck
0060c000-0060d000 rw-p 0000c000 08:07 131142                             /sbin/dosfsck
0060d000-0060f000 rw-p 00000000 00:00 0
02514000-0254e000 rw-p 00000000 00:00 0                                  [heap]
7f8b28f48000-7f8b28f5d000 r-xp 00000000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8b28f5d000-7f8b2915c000 ---p 00015000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8b2915c000-7f8b2915d000 r--p 00014000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8b2915d000-7f8b2915e000 rw-p 00015000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f8b2915e000-7f8b29313000 r-xp 00000000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f8b29313000-7f8b29512000 ---p 001b5000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f8b29512000-7f8b29516000 r--p 001b4000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f8b29516000-7f8b29518000 rw-p 001b8000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f8b29518000-7f8b2951d000 rw-p 00000000 00:00 0
7f8b2951d000-7f8b2953f000 r-xp 00000000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7f8b29649000-7f8b2971a000 rw-p 00000000 00:00 0
7f8b2973b000-7f8b2973f000 rw-p 00000000 00:00 0
7f8b2973f000-7f8b29740000 r--p 00022000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7f8b29740000-7f8b29742000 rw-p 00023000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7fffc94d1000-7fffc94f2000 rw-p 00000000 00:00 0                          [stack]
7fffc95af000-7fffc95b0000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)
root at Rezak:~#

root at Rezak:~# dosfsck -a -w /dev/sdh
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
/.Trash-1000
  Contains a free cluster (400). Assuming EOF.
/eReading/knihovna/muzi-kteri-nenavidi-zeny.epub
  File size is 1179164 bytes, cluster chain length is > 1179648 bytes.
  Truncating file to 1179164 bytes.
*** buffer overflow detected ***: dosfsck terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f7a9db5f807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f7a9db5e700]
/lib/x86_64-linux-gnu/libc.so.6(+0x108b69)[0x7f7a9db5db69]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdd)[0x7f7a9dad113d]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1d42)[0x7f7a9da9f702]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x7f7a9db5dc04]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f7a9db5db4d]
dosfsck[0x404409]
dosfsck[0x40645d]
dosfsck[0x401442]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f7a9da7676d]
dosfsck[0x401525]
======= Memory map: ========
00400000-0040c000 r-xp 00000000 08:07 131142                             /sbin/dosfsck
0060b000-0060c000 r--p 0000b000 08:07 131142                             /sbin/dosfsck
0060c000-0060d000 rw-p 0000c000 08:07 131142                             /sbin/dosfsck
0060d000-0060f000 rw-p 00000000 00:00 0
00948000-00982000 rw-p 00000000 00:00 0                                  [heap]
7f7a9d83f000-7f7a9d854000 r-xp 00000000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f7a9d854000-7f7a9da53000 ---p 00015000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f7a9da53000-7f7a9da54000 r--p 00014000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f7a9da54000-7f7a9da55000 rw-p 00015000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f7a9da55000-7f7a9dc0a000 r-xp 00000000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f7a9dc0a000-7f7a9de09000 ---p 001b5000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f7a9de09000-7f7a9de0d000 r--p 001b4000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f7a9de0d000-7f7a9de0f000 rw-p 001b8000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f7a9de0f000-7f7a9de14000 rw-p 00000000 00:00 0
7f7a9de14000-7f7a9de36000 r-xp 00000000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7f7a9df40000-7f7a9e011000 rw-p 00000000 00:00 0
7f7a9e032000-7f7a9e036000 rw-p 00000000 00:00 0
7f7a9e036000-7f7a9e037000 r--p 00022000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7f7a9e037000-7f7a9e039000 rw-p 00023000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7fffdcd11000-7fffdcd32000 rw-p 00000000 00:00 0                          [stack]
7fffdcdff000-7fffdce00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)


root at Rezak:~# fsck.vfat -v /dev/sdh
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     65536 bytes per cluster
         6 reserved sectors
First FAT starts at byte 3072 (sector 6)
         2 FATs, 16 bit entries
    104960 bytes per FAT (= 205 sectors)
Root directory starts at byte 212992 (sector 416)
       512 root directory entries
Data area starts at byte 229376 (sector 448)
     52284 data clusters (3426484224 bytes)
63 sectors/track, 255 heads
         0 hidden sectors
   6692864 sectors total
Checking for unused clusters.
Reclaimed 10 unused clusters (655360 bytes).
Leaving file system unchanged.
/dev/sdh: 55 files, 418/52284 clusters


root at Rezak:~# fsck.vfat -v /dev/sdh -a
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "MSDOS5.0"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     65536 bytes per cluster
         6 reserved sectors
First FAT starts at byte 3072 (sector 6)
         2 FATs, 16 bit entries
    104960 bytes per FAT (= 205 sectors)
Root directory starts at byte 212992 (sector 416)
       512 root directory entries
Data area starts at byte 229376 (sector 448)
     52284 data clusters (3426484224 bytes)
63 sectors/track, 255 heads
         0 hidden sectors
   6692864 sectors total
Reclaiming unconnected clusters.
*** buffer overflow detected ***: fsck.vfat terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7f190c3d4807]
/lib/x86_64-linux-gnu/libc.so.6(+0x109700)[0x7f190c3d3700]
/lib/x86_64-linux-gnu/libc.so.6(+0x108b69)[0x7f190c3d2b69]
/lib/x86_64-linux-gnu/libc.so.6(_IO_default_xsputn+0xdd)[0x7f190c34613d]
/lib/x86_64-linux-gnu/libc.so.6(_IO_vfprintf+0x1d42)[0x7f190c314702]
/lib/x86_64-linux-gnu/libc.so.6(__vsprintf_chk+0x94)[0x7f190c3d2c04]
/lib/x86_64-linux-gnu/libc.so.6(__sprintf_chk+0x7d)[0x7f190c3d2b4d]
fsck.vfat[0x404409]
fsck.vfat[0x40645d]
fsck.vfat[0x401442]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f190c2eb76d]
fsck.vfat[0x401525]
======= Memory map: ========
00400000-0040c000 r-xp 00000000 08:07 131142                             /sbin/dosfsck
0060b000-0060c000 r--p 0000b000 08:07 131142                             /sbin/dosfsck
0060c000-0060d000 rw-p 0000c000 08:07 131142                             /sbin/dosfsck
0060d000-0060f000 rw-p 00000000 00:00 0
014c2000-014fc000 rw-p 00000000 00:00 0                                  [heap]
7f190c0b4000-7f190c0c9000 r-xp 00000000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f190c0c9000-7f190c2c8000 ---p 00015000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f190c2c8000-7f190c2c9000 r--p 00014000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f190c2c9000-7f190c2ca000 rw-p 00015000 08:07 4325388                    /lib/x86_64-linux-gnu/libgcc_s.so.1
7f190c2ca000-7f190c47f000 r-xp 00000000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f190c47f000-7f190c67e000 ---p 001b5000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f190c67e000-7f190c682000 r--p 001b4000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f190c682000-7f190c684000 rw-p 001b8000 08:07 4325719                    /lib/x86_64-linux-gnu/libc-2.15.so
7f190c684000-7f190c689000 rw-p 00000000 00:00 0
7f190c689000-7f190c6ab000 r-xp 00000000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7f190c7b5000-7f190c886000 rw-p 00000000 00:00 0
7f190c8a7000-7f190c8ab000 rw-p 00000000 00:00 0
7f190c8ab000-7f190c8ac000 r--p 00022000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7f190c8ac000-7f190c8ae000 rw-p 00023000 08:07 4334511                    /lib/x86_64-linux-gnu/ld-2.15.so
7fff6cd5d000-7fff6cd7e000 rw-p 00000000 00:00 0                          [stack]
7fff6cdff000-7fff6ce00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

** Affects: dosfstools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment
-- 
fsck.vfat crashes
https://bugs.launchpad.net/bugs/1103146
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to dosfstools in Ubuntu.




More information about the foundations-bugs mailing list