Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78334 - gentoo-dev-sources on kernel>2.6 crashes reiserfs filesystem
Summary: gentoo-dev-sources on kernel>2.6 crashes reiserfs filesystem
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Git (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-17 03:13 UTC by Andrey Abramov
Modified: 2011-10-30 22:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Abramov 2005-01-17 03:13:06 UTC
I'm using kernel 2.6.10-gentoo-r4. It crashes during hard work with reiserfs filesystem. Lines from kern.log:

Jan 17 11:30:08 mysrv ReiserFS: warning: is_tree_node: node level 3 does not match to the expected one 1
Jan 17 11:30:08 mysrv ReiserFS: hda4: warning: vs-5150: search_by_key: invalid format found in block 1638400. Fsck?
Jan 17 11:30:08 mysrv ReiserFS: hda4: warning: vs-13050: reiserfs_update_sd: i/o failure occurred trying to update [4 48 0x0 SD] stat data
....(many times again)....
Jan 17 11:32:08 mysrv ------------[ cut here ]------------
Jan 17 11:32:08 mysrv kernel BUG at fs/reiserfs/journal.c:524!
Jan 17 11:32:08 mysrv invalid operand: 0000 [#1]
Jan 17 11:32:08 mysrv PREEMPT
Jan 17 11:32:08 mysrv Modules linked in: reiserfs ipv6
Jan 17 11:32:08 mysrv CPU:    0
Jan 17 11:32:08 mysrv EIP:    0060:[<e0a04d29>]    Not tainted VLI
Jan 17 11:32:08 mysrv EFLAGS: 00010286   (2.6.9-gentoo-r6)
Jan 17 11:32:08 mysrv EIP is at reiserfs_in_journal+0x139/0x1a0 [reiserfs]
Jan 17 11:32:08 mysrv eax: e0a1d178   ebx: e095d10c   ecx: 00000ff0   edx: 00400000
Jan 17 11:32:08 mysrv esi: 00200000   edi: c1577800   ebp: c158faa0   esp: d8827bd8
Jan 17 11:32:08 mysrv ds: 007b   es: 007b   ss: 0068
Jan 17 11:32:08 mysrv Process mv (pid: 21059, threadinfo=d8826000 task=dc003560)
Jan 17 11:32:08 mysrv Stack: e08391a8 00008000 00000000 c158faa0 00000040 00000000 e0839200 00008000
Jan 17 11:32:08 mysrv e09df161 c1577800 00000040 00000000 00000001 d8827c1c 00000000 c1577800
Jan 17 11:32:08 mysrv 00000000 00000000 00000040 d8827c60 00000001 c1577800 e09df59a d8827ebc
Jan 17 11:32:08 mysrv Call Trace:
Jan 17 11:32:08 mysrv [<e09df161>] scan_bitmap_block+0x161/0x300 [reiserfs]
Jan 17 11:32:08 mysrv [<e09df59a>] scan_bitmap+0x1ca/0x220 [reiserfs]
Jan 17 11:32:08 mysrv [<e09e082b>] reiserfs_allocate_blocknrs+0x1ab/0x520 [reiserfs]
Jan 17 11:32:08 mysrv [<e09ede67>] reiserfs_allocate_blocks_for_region+0x267/0x16d0 [reiserfs]
Jan 17 11:32:08 mysrv [<c015a2c8>] set_bh_page+0x48/0x60
Jan 17 11:32:08 mysrv [<e09e7b79>] make_cpu_key+0x59/0x70 [reiserfs]
Jan 17 11:32:08 mysrv [<e09ff538>] pathrelse+0x28/0x40 [reiserfs]
Jan 17 11:32:08 mysrv [<e09eff51>] reiserfs_prepare_file_region_for_write+0x3b1/0xa60 [reiserfs]
Jan 17 11:32:08 mysrv [<e09f0ac0>] reiserfs_file_write+0x4c0/0x7f0 [reiserfs]
Jan 17 11:32:08 mysrv [<c013767a>] generic_file_aio_read+0x5a/0x80
Jan 17 11:32:08 mysrv [<c015731e>] vfs_write+0x14e/0x190
Jan 17 11:32:08 mysrv [<c0157431>] sys_write+0x51/0x80
Jan 17 11:32:08 mysrv [<c01042cb>] syscall_call+0x7/0xb
Jan 17 11:32:08 mysrv Code: 01 00 00 8b 5c 24 30 89 44 24 0c 8b 47 0c c1 e0 03 0f af 44 24 28 85 db 8d 34 10 74 98 e9 51 ff ff
 ff 39 78 04 75 c5 85 c0 74 c8 <0f> 0b 0c 02 60 1f a1 e0 b8 01 00 00 00 83 c4 10 5b 5e 5f 5d c3


Reproducible: Always
Steps to Reproduce:
1. Create reiserfs patition (may by large partition, >10G)
2. cp -a /usr/portage /mnt/mounted_reiserfs_partition


Actual Results:  
In my machine it breaks with segmentation fault and I can view lines above in 
dmesg and kern.log.
After that I can't even reboot host normally because sync hang up.

Expected Results:  
In kernels 2.4 it worked normally.

Portage 2.0.51-r8 (default-linux/x86/2004.0, gcc-3.4.2, glibc-2.3.4.20040808-r0, 
2.6.10-gentoo-r4MWAS i686)
=================================================================
System uname: 2.6.10-gentoo-r4MWAS i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.6
Python:              dev-lang/python-2.3.4 [2.3.4 (#1, Jul 12 2004, 11:39:37)]
dev-lang/python:     2.3.4
sys-devel/autoconf:  2.59-r4
sys-devel/automake:  1.8.5-r1
sys-devel/binutils:  2.15.90.0.1.1-r3
sys-devel/libtool:   1.5.10
virtual/os-headers:  2.4.22
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
LDFLAGS=""
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="adns apache2 apm bcmath bitmap-fonts bzlib clamav crypt cups curl 
curlwrappers dba dio exif f77 flash flatfile font-server fortran ftp gd gd-
external gdbm gif gmp gphoto2 gpm gtk2 iconv imagemagick imap imlib imlib2 
inifile innodb ipv6 javascript jpeg kerberos ldap libwww maildir mbox memlimit 
mhash mime mysql ncurses nls pam passfile pcntl pcre pdflib php pic png posix 
python readline samba sasl session simplexml skey slang slp snmp sockets spell 
sqlite sse ssl svga sysvipc tcpd threads tiff truetype truetype-fonts type1-
fonts wddx x86 xfs xml xml2 xmlrpc xsl zlib"
Comment 1 Daniel Drake (RETIRED) gentoo-dev 2005-01-17 16:16:33 UTC
Please could you test with development-sources-2.6.11_rc1 ?
Comment 2 Andrey Abramov 2005-01-18 06:35:29 UTC
Another picture with development-sources-2.6.11_rc1.
My test with copy passes Ok, then I tryed to test stability using bonnie++ :

# bonnie++  -n 100:10000:100:10 -d bonnie -s 1000 -u andrey
Using uid:1001, gid:100.
Writing with putc()...done
Writing intelligently...done
Rewriting...done
Reading with getc()...done
Reading intelligently...done
start 'em...done...done...done...
Create files in sequential order...Can't write data.
Cleaning up test directory after error.
=====
tail of dmesg:

ReiserFS: warning: is_leaf: item location seems wrong (second one): *3.6* [6 10266 0x0 SD], item_len 45, item_location 420, free_space(entry_count) 65535
ReiserFS: sda5: warning: vs-5150: search_by_key: invalid format found in block 1736704. Fsck?
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738775)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738774)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1736704)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738777)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738776)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738780)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738779)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738784)[dev:blocknr]: bit already cleared
ReiserFS: sda5: warning: vs-4080: reiserfs_free_block: free_block (sda5:1738783)[dev:blocknr]: bit already cleared

Comment 3 Daniel Drake (RETIRED) gentoo-dev 2005-01-28 03:50:40 UTC
Please report this at http://bugzilla.kernel.org as its not a problem with gentoo's patches. Please inform us here of any progress.