Skip to contentSkip to conversation

reiser4 problems in 2.6.10-rc1-mm

DISCUSSION Kacper Wysocki 3 participants 7 messages Nov 17, 2004 – Nov 22, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I decided to try out reiser4 yesterday, when I got a new harddrive for my laptop. In the process, I had some terrible problems, and gave up after a good full day of trying to make it work.

System: Thinkpad 240, debian sid, kernel 2.6.10-rc1-mm5

Configuration: kernel config attached. reiser4 was set up with 'mkfs.reiser4 /dev/hda1', no fancy tweaks. root filesystem was rsync'ed from old to new harddrive using a usb laptop harddrive enclosure.

Steps to reproduce: run 'apt-get update' (or any apt-get command really, and some other apps as well). 'apt-get update' will fetch all the index files and then oops on 'reading package lists..' First time after reboot: recoverable kernel oops. Second time: process enters unkillable sleep, as does strace and gdb when attempting to attach to it.

fixes attempted:
Thinking apt or its dependencies were corrupted, I reinstalled apt, libc6, libstdc++ and libgcc, but can still reproduce the error. I also disabled 'Preempt Big Kernel Lock' and the newer IO schedulers thinking they might have something to do with it, but alas, no go. Finally I disabled preempt altogether, yet that did not help either. The new -mm kernel, 2.6.10-rc2-mm1 came out tonight, so I gave that a try as well.

I finally booted into single user mode and ran an fsck.reiser4, found tons of errors. Repairing the filesystem with --build-fs, then rebooting just made the whole thing oops until it hit max oops depth.

other symptoms:
processes lock up randomly (vim, gdb, reboot process...)
system froze hard a couple of times in X.. Magic SysReq never completes an emergency sync after a lockup, but does reboot the system.

Just in case this might be a hardware problem, the new harddrive is a Toshiba 20GB MK2023GAS-(PM), but it works fine in any other configuration (as a non-root drive, reiserfs 3 etc)

I'm pretty much giving up on this, as it's cost me far more time than I can afford spending. However, I would like to know whether there is something essential that I've missed - surely there must be something unique about my setup that is causing such difficulties?

Cheers,
Kacper

Nov 16 10:25:33 debbie kernel: kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:32!
Nov 16 10:25:33 debbie kernel: invalid operand: 0000 [#1]
Nov 16 10:25:33 debbie kernel: PREEMPT 
Nov 16 10:25:33 debbie kernel: Modules linked in: airo_cs airo snd_es1938 snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd esssolo1 gameport
Nov 16 10:25:33 debbie kernel: CPU:    0
Nov 16 10:25:33 debbie kernel: EIP:    0060:[get_exclusive_access+46/64]    Not tainted VLI
Nov 16 10:25:33 debbie kernel: EFLAGS: 00010282   (2.6.10-rc1-mm5-debbie) 
Nov 16 10:25:33 debbie kernel: EIP is at get_exclusive_access+0x2e/0x40
Nov 16 10:25:33 debbie kernel: eax: ca5766b8   ebx: 00000001   ecx: 00000000   edx: cb849140
Nov 16 10:25:33 debbie kernel: esi: 00000000   edi: ca5766b8   ebp: ca576710   esp: ca8a5dfc
Nov 16 10:25:33 debbie kernel: ds: 007b   es: 007b   ss: 0068
Nov 16 10:25:33 debbie kernel: Process apt-get (pid: 2357, threadinfo=ca8a4000 task=cb9a4040)
Nov 16 10:25:33 debbie kernel: Stack: c02197f1 ca5766b8 b711f000 0080d8d0 00000001 ca8a5e34 003a5661 ca8a4000 
Nov 16 10:25:33 debbie kernel:        63706b67 00000001 00000001 0080d8d0 00000000 00000008 00008000 c1154500 
Nov 16 10:25:33 debbie kernel:        c1154060 c114af00 c10f66e0 c10f6840 c10f6860 c10f6880 c1148d80 00000000 
Nov 16 10:25:33 debbie kernel: Call Trace:
Nov 16 10:25:33 debbie kernel:  [write_unix_file+465/1088] write_unix_file+0x1d1/0x440
Nov 16 10:25:33 debbie kernel:  [init_context+108/160] init_context+0x6c/0xa0
Nov 16 10:25:33 debbie kernel:  [reiser4_write+119/208] reiser4_write+0x77/0xd0
Nov 16 10:25:33 debbie kernel:  [vfs_write+200/368] vfs_write+0xc8/0x170
Nov 16 10:25:33 debbie kernel:  [do_fcntl+258/464] do_fcntl+0x102/0x1d0
Nov 16 10:25:33 debbie kernel:  [sys_write+81/128] sys_write+0x51/0x80
Nov 16 10:25:33 debbie kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
Nov 16 10:25:33 debbie kernel: Code: ff ff 8b 44 24 04 21 e2 8b 12 8b 92 b8 04 00 00 8b 52 3c 8b 52 08 85 d2 75 11 ba 01 00 ff ff 0f c1 10 85 d2 0f 85 fd 11 00 00 c3 <0f> 0b 20 00 20 76 49 c0 eb e5 90 8d b4 26 00 00 00 00 8b 44 24 
Nov 16 11:05:13 debbie kernel: kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:32!
Nov 16 11:05:13 debbie kernel: invalid operand: 0000 [#1]
Nov 16 11:05:13 debbie kernel: Modules linked in: airo_cs airo snd_es1938 snd_pcm snd_page_alloc snd_opl3_lib snd_timer snd_hwdep snd_mpu401_uart snd_rawmidi snd_seq_device snd esssolo1 gameport
Nov 16 11:05:13 debbie kernel: CPU:    0
Nov 16 11:05:13 debbie kernel: EIP:    0060:[get_exclusive_access+46/64]    Not tainted VLI
Nov 16 11:05:13 debbie kernel: EFLAGS: 00010282   (2.6.10-rc1-mm5-debbie) 
Nov 16 11:05:13 debbie kernel: EIP is at get_exclusive_access+0x2e/0x40
Nov 16 11:05:13 debbie kernel: eax: ca65c498   ebx: 00000001   ecx: 00000000   edx: cac7c840
Nov 16 11:05:13 debbie kernel: esi: 00000000   edi: ca65c498   ebp: ca65c4f0   esp: caf11dfc
Nov 16 11:05:13 debbie kernel: ds: 007b   es: 007b   ss: 0068
Nov 16 11:05:13 debbie kernel: Process apt-get (pid: 2459, threadinfo=caf10000 task=cb55ca80)
Nov 16 11:05:13 debbie kernel: Stack: c02053a1 ca65c498 b711f000 0080d8d0 00000001 caf11e34 003a5661 caf10000 
Nov 16 11:05:13 debbie kernel:        63706b67 00000001 00000001 0080d8d0 00000000 00000008 00008000 c1150560 
Nov 16 11:05:13 debbie kernel:        c114d9e0 c114b980 c10e99a0 c10e99c0 c10e99e0 c10e9a00 c114a900 00000000 
Nov 16 11:05:13 debbie kernel: Call Trace:
Nov 16 11:05:13 debbie kernel:  [write_unix_file+465/1088] write_unix_file+0x1d1/0x440
Nov 16 11:05:13 debbie kernel:  [init_context+108/160] init_context+0x6c/0xa0
Nov 16 11:05:13 debbie kernel:  [reiser4_write+119/208] reiser4_write+0x77/0xd0
Nov 16 11:05:13 debbie kernel:  [vfs_write+200/368] vfs_write+0xc8/0x170
Nov 16 11:05:13 debbie kernel:  [sys_write+81/128] sys_write+0x51/0x80
Nov 16 11:05:13 debbie kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
Nov 16 11:05:13 debbie kernel: Code: ff ff 8b 44 24 04 21 e2 8b 12 8b 92 b8 04 00 00 8b 52 3c 8b 52 08 85 d2 75 11 ba 01 00 ff ff 0f c1 10 85 d2 0f 85 fd 11 00 00 c3 <0f> 0b 20 00 20 b7 46 c0 eb e5 90 8d b4 26 00 00 00 00 8b 44 24 
#1 lore raw
Quoted 5 lines · Kacper Wysocki

Hello,

I decided to try out reiser4 yesterday, when I got a new harddrive for my laptop. In the process, I had some terrible problems, and gave up after a good full day of trying to make it work.

[snip]

Quoted 6 lines

Steps to reproduce: run 'apt-get update' (or any apt-get command really, and some other apps as well). 'apt-get update' will fetch all the index files and then oops on 'reading package lists..' First time after reboot: recoverable kernel oops. Second time: process enters unkillable sleep, as does strace and gdb when attempting to attach to it.

[snip]

Hi,

I'm replying to my own message here, but I made some progress on this today: after basically restoring the filesystem again, I used the missing context fix patch from the thread
"Re: 2.6.10-rc2-mm1: oops when accessing reiser4 fs's(maybe fix provided)" on this very same list, since Mathieu Segaud seemed to have problems similar to mine. This did indeed fix my bootup oopsing problems, however the filesystem still oopses+segfaults some important applications - ie apt-get as described in the previous post.

I'm not posting the new (slightly different)oops here, as I noticed that the previous oopses were a little hard to read due to all the syslog crap, and I'm not sure anyone's interested, since I did not receive any replies to my previous post. Also, my reiserfs (v3) partition seems to be working fine (this mere fact rules out a corrupted file system due to usb tranfer errors and most possibilities of physical problems with my new harddrive).

However, should anyone more knowledgable about reiser4 have any ideas as to what's causing this oops, I'd be more than happy to debug a little further.

Cheers,
Kacper

#2 lore raw
Quoted 1 line

However, should anyone more knowledgable about reiser4 have any

ideas >as to what's causing this oops, I'd be more than happy to
debug a >little further.

Just so you don't feel so alone: I'm having the same problems (apt-get update), so you're not alone. I haven't spoken up earlier because as yet, I don't have anything constructive to offer. But I'm trying!

cheers, Cal
.

#3 lore raw

Cal <[email protected]> disait dernièrement que :

Quoted 8 lines
Quoted 1 line

However, should anyone more knowledgable about reiser4 have any

ideas >as to what's causing this oops, I'd be more than happy to
debug a >little further.

Just so you don't feel so alone: I'm having the same problems (apt-get update), so you're not alone. I haven't spoken up earlier because as yet, I don't have anything constructive to offer. But I'm trying!

Could you try 2.6.10-rc2-mm2, reiser4 is pretty stable in this tree, and contains more fix bits.

Quoted 4 lines

cheers, Cal
.

Signature · 4 lines
"Looks clean and obviously correct to me, but then _everything_ I write
 always looks obviously correct yo me."

	- Linus
#4 lore raw

and then at Fri, 19 Nov 2004 12:42:45 +0100, it was written ...

Quoted 1 line

Could you try 2.6.10-rc2-mm2, reiser4 is pretty stable in this tree,

and >contains more fix bits.

Lost in the alchemy, I didn't notice the update, so thanks for the update pointer. The problem still happens in 2.6.10-rc2-mm2:-

kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:58! invalid operand: 0000 [#1]
PREEMPT SMP

Modules linked in: snd_emu10k1 snd_rawmidi snd_seq_device
snd_ac97_codec snd_pcm snd_rtctimer snd_timer snd_page_alloc
snd_util_mem snd_hwdep snd soundcore i2c_viapro i2c_core usbhid
uhci_hcd usbcore 8139too mii crc32 pcspkr CPU:    1
EIP:    0060:[<c0215f09>]    Not tainted VLI
EFLAGS: 00210282   (2.6.10-rc2-mm2) 

EIP is at get_nonexclusive_access+0x29/0x40
eax: f6fbdf1c ebx: f5e42c58 ecx: f78a2040 edx: f5e42be0
esi: f5e42c18 edi: f5e42be0 ebp: f6d508b4 esp: f6fbdc40
ds: 007b es: 007b ss: 0068
Process apt-get (pid: 2314, threadinfo=f6fbc000 task=f784b570)

Stack: c0214be0 f5e42be0 f7906400 00000000 00000000 00000000 00000000
00000000        00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000        00000000 00000000 00000000 00000000 00000000
00000000 00000000 00000000 Call Trace:
 [<c0214be0>] unix_file_filemap_nopage+0x50/0xa0
 [<c0148c1e>] do_no_page+0xce/0x3a0
 [<c02fb958>] io_schedule+0x28/0x40
 [<c014911e>] handle_mm_fault+0x10e/0x1b0
 [<c0147475>] follow_page+0x25/0x30
 [<c01475f8>] get_user_pages+0x138/0x3c0
 [<c0214037>] reiser4_get_user_pages+0x97/0xd0
 [<c0214714>] read_unix_file+0x2f4/0x310
 [<c016362d>] inode_get_bytes+0x3d/0x60
 [<c01cf8dc>] init_context+0x6c/0xa0
 [<c01e77f7>] reiser4_read+0x77/0xc0
 [<c0158b3d>] vfs_read+0xed/0x190
 [<c0158eb1>] sys_read+0x51/0x80
 [<c0102983>] syscall_call+0x7/0xb
Code: 00 00 b8 00 e0 ff ff 8b 54 24 04 21 e0 8b 00 8b 80 e0 04 00 00

8b 40 4c 8b 48 10 85 c9 75 0c 89 d0 f0 ff 00 0f 88 52 12 00 00 c3 <0f> 0b 3a 00 00 7e 32 c0 eb ea 8d b6 00 00 00 00 8d bc 27 00
00

Last night, with a blend of about 60/40 alchemy/engineering, I merged base 2.6.10-rc2 with 2.6.10-rc2-bk3, reiser4-for-2.6.10-rc1, selected fixes from 2.6.10-mm1 and the reiserfs mailing list, plus ck patches.
So far that build performs just fine. Now I guess I need to figure
out the difference between that and 2.6.10-mm2. That said, I cheerfully acknowledge that the mm series is the best place to be if using reiser4.

cheers, Cal

#5 lore raw
Quoted 2 lines · Cal

and then at Fri, 19 Nov 2004 12:42:45 +0100, it was written ...

Quoted 1 line

Could you try 2.6.10-rc2-mm2, reiser4 is pretty stable in this tree, and >contains more fix bits.

Didn't have the time yet, but seems Cal has..

Quoted 2 lines

Lost in the alchemy, I didn't notice the update, so thanks for the update pointer. The problem still happens in 2.6.10-rc2-mm2:-

[snip kernel oops]

Quoted 2 lines

Last night, with a blend of about 60/40 alchemy/engineering, I
merged base 2.6.10-rc2 with 2.6.10-rc2-bk3, reiser4-for-2.6.10-rc1, selected fixes from 2.6.10-mm1 and the reiserfs mailing list, plus ck patches. So far that build performs just fine. Now I guess I need to figure out the difference between that and 2.6.10-mm2. That said, I cheerfully acknowledge that the mm series is the best place to be if using reiser4.

Wow... while you're figuring out which part fixes it, do you mind diffing your tree against 2.6.10-rc2-mm2 and posting the patch? I'll gladly try it out... might even take a look at the difference in the reiser code to see what's been changed (on the assumption that it's reiser4 that's causing the problem, and not some sideeffect).

Cheers,
Kacper

Signature · 4 lines
Please do not cc: me. I'm on the list. I read the list, really I do.
I do not need HTML email, virus warnings or unsolicited forwards.
Get my GnuPG public key from pgp.mit.edu.
Signed mail preferred. Please encrypt where appropriate.
#6 lore raw
In reply to Kacper Wysocki

----------
and then at Fri, 19 Nov 2004 07:41:24 +0000, it was written ...

Quoted 6 lines

"Re: 2.6.10-rc2-mm1: oops when accessing reiser4 fs's(maybe fix provided)" on this very same list, since Mathieu Segaud seemed to
have >problems similar to mine. This did indeed fix my bootup
oopsing problems, however the filesystem still oopses+segfaults
some important >applications - ie apt-get as described in the
previous post.

Still getting the "apt-get update" BUG failure with 2.6.10-rc2-mm3. As reported under a different thread, there seems to be a "sometimes" factor involved, which doesn't help at all.

cheers, Cal