Package: e2fsprogs
Version: 1.39-1
Severity: important

Hi, e2fsck segfaults when checking an ext3 fs.

I suspect the corruption was due to my writing to the ext3 from Windows XP
using the driver from http://www.fs-driver.org/ which does not appear to
support -O dir_index (but happily tries to write stuff anyway).

e2fsck rebuilt with -g:

[19:13] /usr/src/e2fsprogs-1.39 # debian/BUILD-STD/e2fsck/e2fsck.static -nvfC0 
/dev/hdb1                    burek
e2fsck 1.39 (29-May-2006)
Pass 1: Checking inodes, blocks, and sizes
HTREE directory inode 1060239 has an invalid root node.
Clear HTree index? no

HTREE directory inode 1060239 has an unsupported hash version (232)
Clear HTree index? no

HTREE directory inode 1060239 uses an incompatible htree root node flag.
Clear HTree index? no

HTREE directory inode 1060239 has a tree depth (9) which is too big
Clear HTree index? no

HTREE directory inode 1630724 has an invalid root node.
Clear HTree index? no

Pass 2: Checking directory structure
Problem in HTREE directory inode 1040453: root node is invalid
Clear HTree index? no

Problem in HTREE directory inode 1060239: node (0) has invalid limit (25188)
Clear HTree index? no

Problem in HTREE directory inode 1060239: node (0) has invalid count (51818)
Clear HTree index? no

Problem in HTREE directory inode 1060239 (/d/Temp): bad block number 635.
Clear HTree index? no

Problem in HTREE directory inode 1060239 (/d/Temp): bad block number 7303938.
Clear HTree index? no

zsh: segmentation fault (core dumped)  debian/BUILD-STD/e2fsck/e2fsck.static 
-nvfC0 /dev/hdb1
[19:23] /usr/src/e2fsprogs-1.39 # gdb debian/BUILD-STD/e2fsck/e2fsck.static core
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library 
"/lib/tls/i686/cmov/libthread_db.so.1".

Core was generated by `debian/BUILD-STD/e2fsck/e2fsck.static -nvfC0 /dev/hdb1'.
Program terminated with signal 11, Segmentation fault.
#0  check_dir_block (fs=0x8131cb0, db=0xa76234ec, priv_data=0xaf9bdf38)
    at /mnt/src/e2fsprogs-1.39/e2fsck/pass2.c:600
600                     if (dx_db->flags & DX_FLAG_REFERENCED) {
(gdb) bt
#0  check_dir_block (fs=0x8131cb0, db=0xa76234ec, priv_data=0xaf9bdf38)
    at /mnt/src/e2fsprogs-1.39/e2fsck/pass2.c:600
#1  0x08064bc9 in ext2fs_dblist_iterate (dblist=0x8156ca8, func=0x80537b0 
<check_dir_block>,
    priv_data=0xaf9bdf38) at /mnt/src/e2fsprogs-1.39/lib/ext2fs/dblist.c:234
#2  0x0805513b in e2fsck_pass2 (ctx=0x8131a50) at 
/mnt/src/e2fsprogs-1.39/e2fsck/pass2.c:149
#3  0x0804b928 in e2fsck_run (ctx=0x8131a50) at 
/mnt/src/e2fsprogs-1.39/e2fsck/e2fsck.c:203
#4  0x0804a240 in main (argc=3, argv=0xaf9be404) at 
/mnt/src/e2fsprogs-1.39/e2fsck/unix.c:1144
(gdb) p *db
$10 = {ino = 1060239, blk = 20919358, blockcnt = 0}
(gdb) p *dx_dir
$5 = {ino = 1060239, numblocks = 3, hashversion = 232, depth = 10, dx_block = 
0x8167c68}
(gdb)

BTW the kernels 2.6.15 - 2.6.16.20 oops when I try to access a particular
directory on this system, even when mounted ro.

Regards,
Zoran

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (990, 'testing'), (400, 'stable'), (50, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16.20
Locale: LANG=C, LC_CTYPE=hr_HR (charmap=ISO-8859-2)

Versions of packages e2fsprogs depends on:
ii  e2fslibs      1.39-1                     ext2 filesystem libraries
ii  libblkid1     1.38+1.39-WIP-2005.12.31-1 block device id library
ii  libc6         2.3.6-15                   GNU C Library: Shared libraries
ii  libcomerr2    1.39-1                     common error description library
ii  libdevmapper1 2:1.02.07-1                The Linux Kernel Device Mapper use
ii  libselinux1   1.30-1                     SELinux shared libraries
ii  libsepol1     1.12-1                     Security Enhanced Linux policy lib
ii  libss2        1.39-1                     command-line interface parsing lib
ii  libuuid1      1.39-1                     universally unique id library

e2fsprogs recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to