reiser4 bug in 2.6.16-rc2-mm1
Hello,
reiser4 on linux 2.6.16-rc2-mm1 bugs for me in plugins/file/tail_conversion.c line 29, locking up a process sometimes, when it is reading a file.
Greetings,
Maarten Deprez
Quoted 10 lines · Maarten Deprez
Hello,
reiser4 on linux 2.6.16-rc2-mm1 bugs for me in
plugins/file/tail_conversion.cline 29, locking up a process sometimes, when it is reading a file.Greetings,
Maarten Deprez
Still present in 2.6.16-rc3-mm1:
------------[ cut here ]------------ kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:81! invalid opcode: 0000 [#1] PREEMPT last sysfs file: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-0/name CPU: 0 EIP: 0060:[get_nonexclusive_access+30/49] Not tainted VLI EFLAGS: 00010286 (2.6.16-rc3-mm1 #2)
EIP is at get_nonexclusive_access+0x1e/0x31
eax: cc2ec288 ebx: 00000000 ecx: cb87d4e8 edx: 00000000
esi: cb87d4e8 edi: 00000000 ebp: d30ba574 esp: d3934e00
ds: 007b es: 007b ss: 0068
Process kmail (pid: 21299, threadinfo=d3934000 task=d8577570)
Stack: <0>c01ca9ae d94d157c d3934ed8 cb87d540 0000000f 00000000 00320af1 00000000
df136ef4 0000f000 00000000 d20b2494 00001000 d94d158c ffffffff ffffffff
ffffffff ffffffff 00000127 00000000 43f543c8 2ac0f373 00000000 d94d158c
Call Trace:
<c01ca9ae> write_extent+0x68d/0xbc3 <c01cd0e2> item_length_by_coord+0xb/0xf
<c01c8125> nr_units_extent+0x5/0xd <c01c94ef> init_coord_extension_extent+0x60/0xdf
<c01b5031> set_file_state+0x26/0x5b <c01b5128> find_file_item+0xc2/0xd4
<c01ca321> write_extent+0x0/0xbc3 <c01b6c46> write_flow+0x248/0x2df
<c01b74bc> write_unix_file+0x343/0x4cc <c01345f6> lru_cache_add_active+0x47/0x5d
<c01b7179> write_unix_file+0x0/0x4cc <c01488f5> vfs_write+0x83/0x122
<c014910e> sys_write+0x3c/0x63 <c0102ac7> sysenter_past_esp+0x54/0x75
Code: 81 c4 b0 00 00 00 89 e8 5b 5e 5f 5d c3 85 d2 89 c1 75 20 b8 00 f0 ff ff 21 e0 8b 00 8b 80 c4 04 00 00 8b 40 40 83 78 08 00 74 08 <0f> 0b 51 00 b8 b8 38 c0 89 c8 ff 00 0f 88 e1 06 00 00 c3 55 ba
<4><4>reiser4[kmail(21299)]: release_unix_file (fs/reiser4/plugin/file/file.c:2674)[vs-44]:WARNING: out of memory?
<4>reiser4[kmail(21299)]: release_unix_file (fs/reiser4/plugin/file/file.c:2674)[vs-44]:
WARNING: out of memory?
...
Is there a known issue with 2.6.16-xxx-mm1? I too am having severe and very random, but reproducible problems which will completely lock up my machine minutes after mounting an R4 partition if not seconds. I did try disabling 4K stacks in my .config. Also, this is an Athlon 64 X2 I'm running with so maybe there are SMP issues? One of my friends said that Reiser4 became unstable for him also when he upgraded to a dual core Athlon64...but until I test for myself that's just a wild theory that it's an SMP bug. This machine is otherwise stable in Memtest, in Windows playing the latest games, and on Linux compiling huge amounts of software.
If there are not known issues with the latest kernels then I will happily try to send detailed configurations and logs of what's happening this evening. I have two shiny new 250GB SATA drives on my machine and I can test freely with one of them until I need the space. I'd love to help squash any bugs that I can :)
Quoted 57 lines · Andrew James Wade
Quoted 10 lines · Maarten Deprez
Hello,
reiser4 on linux 2.6.16-rc2-mm1 bugs for me in
plugins/file/tail_conversion.cline 29, locking up a process sometimes, when it is reading a file.Greetings,
Maarten DeprezStill present in 2.6.16-rc3-mm1:
------------[ cut here ]------------ kernel BUG at fs/reiser4/plugin/file/tail_conversion.c:81! invalid opcode: 0000 [#1] PREEMPT last sysfs file: /devices/pci0000:00/0000:00:01.0/0000:01:00.0/i2c-0/name CPU: 0 EIP: 0060:[get_nonexclusive_access+30/49] Not tainted VLI EFLAGS: 00010286 (2.6.16-rc3-mm1 #2)EIP is at
get_nonexclusive_access+0x1e/0x31
eax:cc2ec288ebx: 00000000 ecx:cb87d4e8edx: 00000000
esi:cb87d4e8edi: 00000000 ebp:d30ba574esp:d3934e00
ds: 007b es: 007b ss: 0068
Process kmail (pid: 21299, threadinfo=d3934000 task=d8577570)Stack: <0>c01ca9ae d94d157c d3934ed8 cb87d540 0000000f 00000000 00320af1 00000000 df136ef4 0000f000 00000000 d20b2494 00001000 d94d158c ffffffff ffffffff ffffffff ffffffff 00000127 00000000 43f543c8 2ac0f373 00000000 d94d158c Call Trace: <c01ca9ae> write_extent+0x68d/0xbc3 <c01cd0e2> item_length_by_coord+0xb/0xf <c01c8125> nr_units_extent+0x5/0xd <c01c94ef> init_coord_extension_extent+0x60/0xdf <c01b5031> set_file_state+0x26/0x5b <c01b5128> find_file_item+0xc2/0xd4 <c01ca321> write_extent+0x0/0xbc3 <c01b6c46> write_flow+0x248/0x2df <c01b74bc> write_unix_file+0x343/0x4cc <c01345f6> lru_cache_add_active+0x47/0x5d <c01b7179> write_unix_file+0x0/0x4cc <c01488f5> vfs_write+0x83/0x122 <c014910e> sys_write+0x3c/0x63 <c0102ac7> sysenter_past_esp+0x54/0x75 Code: 81 c4 b0 00 00 00 89 e8 5b 5e 5f 5d c3 85 d2 89 c1 75 20 b8 00 f0 ffff 21 e0 8b 00 8b 80 c4 04 00 00 8b 40 40 83 78 08 00 74 08 <0f> 0b 51 00 b8 b8 38 c0 89 c8 ff 00 0f 88 e1 06 00 00 c3 55 ba <4><4>reiser4[kmail(21299)]:
release_unix_file(fs/reiser4/plugin/file/file.c:2674)[vs-44]:
WARNING: out of memory?
<4>reiser4[kmail(21299)]:release_unix_file(fs/reiser4/plugin/file/file.c:2674)[vs-44]:
WARNING: out of memory?
...
Hello
Quoted 5 lines · John Cohorn
Is there a known issue with 2.6.16-xxx-mm1? I too am having severe and very random, but reproducible problems which will completely lock up my machine minutes after mounting an R4 partition if not seconds. I did try disabling 4K stacks in my .config. Also, this is an Athlon 64 X2 I'm running with so maybe there are SMP issues?
no, it does not look so.
Quoted 6 lines
One of my friends said that Reiser4 became unstable for him also when he upgraded to a dual core Athlon64...but until I test for myself that's just a wild theory that it's an SMP bug. This machine is otherwise stable in Memtest, in Windows playing the latest games, and on Linux compiling huge amounts of software.
Quoted 6 lines
If there are not known issues with the latest kernels then I will happily try to send detailed configurations and logs of what's happening this evening. I have two shiny new 250GB SATA drives on my machine and I can test freely with one of them until I need the space. I'd love to help squash any bugs that I can :)
If you described the exact sequence of commands which makes reiser4 to crash - that would help a lot.
First off, thank you for taking the time to respond.
Basically any heavy activity on the partition seems to trigger it. Here's a short transcript:
dually ~ # cat /proc/version
Linux version 2.6.16-rc2-mm1 (root@localhost) (gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)) #7 SMP PREEMPT Thu Feb 16 21:19:53 Local time zone must be set--
dually ~ # mkfs.reiser4 --version
mkfs.reiser4 1.0.5
Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by reiser4progs/COPYING.
dually ~ # mkfs.reiser4 /dev/sdb1 --yes
dually ~ # mount /dev/sdb1 /data1
dually ~ # klogd -d -f ~/kernel.log
dually ~ # cd /data1
dually data1 # cp -ra /usr/src/linux-2.6.16-rc2-mm1/ .
dually data1 # tar cf linux.bz2 linux-2.6.16-rc2-mm1/
...after about half a minute of activity I receive the message which I've attached as a small JPEG
"reiser4 panicked cowardly: reiser4[tar(4078)] commit_current_atom (fs/reiser4/txnmgr.c:1130) [zam-597]:". I can't see whether it was line 1130 or 1138. I'll take a quick look myself, but I'm completely unfamiliar with reiser4 sources and the kernel sources in general.
After this my system is completely locked up. When I mount the partition after restarting it no longer contains any files. I have few or no problems when creating, mounting, and working on reiser4 partitions when booted from the System recovery liveCD so it must be something in the latest sources or in my kernel configuration(which is 100% stable for everything else under reiser3, but I haven't bothered to perfect yet).
Apologies about the JPEG, I could not figure out how to get the kernel output logged into a file(maybe it freezes before the file can flush to disk, i dunno). If you know of a way, I welcome instruction.
Quoted 30 lines · Vladimir V. Saveliev
Hello
Quoted 5 lines · John Cohorn
Is there a known issue with 2.6.16-xxx-mm1? I too am having severe and very random, but reproducible problems which will completely lock up my machine minutes after mounting an R4 partition if not seconds. I did try disabling 4K stacks in my .config. Also, this is an Athlon 64 X2 I'm running with so maybe there are SMP issues?
no, it does not look so.
Quoted 6 lines
One of my friends said that Reiser4 became unstable for him also when he upgraded to a dual core Athlon64...but until I test for myself that's just a wild theory that it's an SMP bug. This machine is otherwise stable in Memtest, in Windows playing the latest games, and on Linux compiling huge amounts of software.
Quoted 6 lines
If there are not known issues with the latest kernels then I will happily try to send detailed configurations and logs of what's happening this evening. I have two shiny new 250GB SATA drives on my machine and I can test freely with one of them until I need the space. I'd love to help squash any bugs that I can :)
If you described the exact sequence of commands which makes reiser4 to crash - that would help a lot.
Hello
Quoted 21 lines · John Cohorn
First off, thank you for taking the time to respond.
Basically any heavy activity on the partition seems to trigger it. Here's a short transcript:
dually ~ # cat
/proc/version
Linux version 2.6.16-rc2-mm1 (root@localhost) (gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)) #7 SMP PREEMPT Thu Feb 16 21:19:53 Local time zone must be set--
dually ~ # mkfs.reiser4 --version
mkfs.reiser4 1.0.5
Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
dually ~ # mkfs.reiser4/dev/sdb1--yes
dually ~ # mount/dev/sdb1/data1
dually ~ # klogd -d -f ~/kernel.log
dually ~ # cd /data1
dually data1 # cp -ra/usr/src/linux-2.6.16-rc2-mm1/. dually data1 # tar cf linux.bz2 linux-2.6.16-rc2-mm1/
Quoted 4 lines
...after about half a minute of activity I receive the message which I've attached as a small JPEG
"reiser4 panicked cowardly: reiser4[tar(4078)]commit_current_atom(fs/reiser4/txnmgr.c:1130) [zam-597]:".
Would you please try your test on ide disk?
Quoted 9 lines
I can't see whether it was line 1130 or 1138. I'll take a quick look myself, but I'm completely unfamiliar with reiser4 sources and the kernel sources in general.
After this my system is completely locked up. When I mount the partition after restarting it no longer contains any files. I have few or no problems when creating, mounting, and working on reiser4 partitions when booted from the System recovery liveCD so it must be something in the latest sources or in my kernel configuration
IIRC, there were changes (not in reiser4) which caused kernel to notice i/o errors on SCSI devices where older kernels did not see any problems.
Quoted 7 lines
(which is 100% stable for everything else under reiser3, but I haven't bothered to perfect yet).
Apologies about the JPEG, I could not figure out how to get the kernel output logged into a
file(maybe it freezes before the file can flush to disk, i dunno). If you know of a way, I welcome instruction.
[email protected] does not accept binary attachments. Please send the image to [email protected] and [email protected]
You should setup either serial or netconsole to catch kernel output. Please look at instructions:linux/Documentation/serial-console.txt linux/Documentation/networking/netconsole.txt
Sorry for the delay.
Quoted 25 lines · Vladimir V. Saveliev
Hello
Quoted 21 lines · John Cohorn
First off, thank you for taking the time to respond.
Basically any heavy activity on the partition seems to trigger it. Here's a short transcript:
dually ~ # cat
/proc/version
Linux version 2.6.16-rc2-mm1 (root@localhost) (gcc version 3.3.6 (Gentoo 3.3.6, ssp-3.3.6-1.0, pie-8.7.8)) #7 SMP PREEMPT Thu Feb 16 21:19:53 Local time zone must be set--
dually ~ # mkfs.reiser4 --version
mkfs.reiser4 1.0.5
Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
dually ~ # mkfs.reiser4/dev/sdb1--yes
dually ~ # mount/dev/sdb1/data1
dually ~ # klogd -d -f ~/kernel.log
dually ~ # cd /data1
dually data1 # cp -ra/usr/src/linux-2.6.16-rc2-mm1/. dually data1 # tar cf linux.bz2 linux-2.6.16-rc2-mm1/
Quoted 6 lines
Quoted 4 lines
...after about half a minute of activity I receive the message which I've attached as a small JPEG
"reiser4 panicked cowardly: reiser4[tar(4078)]commit_current_atom(fs/reiser4/txnmgr.c:1130) [zam-597]:".Would you please try your test on ide disk?
At your suggestion I plugged in a spare PATA IDE disk, formatted it with R4, and was about to copy several copies of the Linux kernel sources to the partition, tar them up, and move them around with no lockups or apparent corruption.
Quoted 4 lines
I can't see whether it was line 1130 or 1138. I'll take a quick look
Quoted 3 lines
myself, but I'm completely unfamiliar with reiser4 sources and the kernel sources in general.
Quoted 8 lines
Quoted 5 lines
After this my system is completely locked up. When I mount the partition after restarting it no longer contains any files. I have few or no problems when creating, mounting, and working on reiser4 partitions when booted from the System recovery liveCD so it must be something in the latest sources or in my kernel configuration
IIRC, there were changes (not in reiser4) which caused kernel to notice i/o errors on SCSI devices where older kernels did not see any problems.
Reiser3 is completely stable on my SATA drives...is R4 simply doing more error checking? Why should even a severe I/O error completely freeze my machine?
So it seems as though the problem is in the interaction between R4 and the SCSI code...are any workarounds to this apparent?
Quoted 10 lines
(which is 100% stable for everything else under reiser3, but I haven't
Quoted 6 lines
bothered to perfect yet).
Apologies about the JPEG, I could not figure out how to get the kernel output logged into a
file(maybe it freezes before the file can flush to disk, i dunno). If you know of a way, I welcome instruction.[email protected] does not accept binary attachments. Please send the image to [email protected] and [email protected]
done.
You should setup either serial or netconsole to catch kernel output.
Quoted 6 lines
Please look at instructions:
linux/Documentation/serial-console.txtlinux/Documentation/networking/netconsole.txt
Thanks for the suggestions. I'll see if I can set up logging kernel messages to my laptop.