fsck.reiser4 segfault with one partition
Hallo,
fsck.reiser4 segfaulted when I tried to check /dev/hda6 (see below).
HTH,
Helge
# fsck.reiser4 /dev/hda6 ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read REAMDE first. *******************************************************************
Fscking the /dev/hda6 block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
Continue?
(Yes/No): yes
***** Openning the fs.
Reiser4 journal (journal40) on /dev/hda6: 0 transactions replaied of the total 0 blocks.
Reiser4 fs was detected on the /dev/hda6.
Master super block (16):
magic: ReIsEr4 blksize: 4096 format: 0x0 (format40) label: <none>
Format super block (17):
plugin: format40 description: Disk-format for reiser4, ver. 0.5.3 magic: ReIsEr40FoRmAt flushes: 0 mkfs id: 0x6bb3bacf blocks: 1534672 free blocks: 983639 root block: 476311 tail policy: 0x4 (smart) next oid: 0x2ca9c file count: 110117 tree height: 4 key policy: LARGE
***** Tree Traverse Pass: scanning the reiser4 internal tree.
Read nodes 84931
Nodes left in the tree 84931
Leaves of them 83682, Twigs of them 1225
Time interval: Tue Jun 1 07:48:12 2004 - Tue Jun 1 07:49:19 2004
***** TwigScan Pass: checking extent pointers of all twigs.
Read twigs 1225
Time interval: Tue Jun 1 07:49:19 2004 - Tue Jun 1 07:49:20 2004***** Semantic Traverse Pass: reiser4 semantic tree checking. Segmentation fault
Quoted 1 line · Helge Hielscher
Hallo,
Hi,
Quoted 1 line
fsck.reiser4 segfaulted when I tried to check
/dev/hda6(see below).
which version do you have? the latest was 0.5.4 in www.namesys.com/snapshots/2004.04.21-internal.testing.fixed/ would you try it first?
Quoted 15 lines
# fsck.reiser4 /dev/hda6Fscking the
/dev/hda6block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
***** Tree Traverse Pass: scanning the reiser4 internal tree.
Read nodes 84931
Nodes left in the tree 84931
Leaves of them 83682, Twigs of them 1225
Time interval: Tue Jun 1 07:48:12 2004 - Tue Jun 1 07:49:19 2004
***** TwigScan Pass: checking extent pointers of all twigs.Read twigs 1225 Time interval: Tue Jun 1 07:49:19 2004 - Tue Jun 1 07:49:20 2004***** Semantic Traverse Pass: reiser4 semantic tree checking. Segmentation fault
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 7 lines · Vitaly Fertman
Quoted 1 line · Helge Hielscher
fsck.reiser4 segfaulted when I tried to check
/dev/hda6(see below).which version do you have? the latest was 0.5.4 in www.namesys.com/snapshots/2004.04.21-internal.testing.fixed/ would you try it first?
Tried it and got the same result: fsck.reiser4 segfaults at semantic tree checking.
Regards,
Helge
Quoted 9 lines · Vitaly Fertman
Quoted 8 lines · Helge Hielscher
Quoted 6 lines · Vitaly Fertman
Quoted 1 line · Helge Hielscher
fsck.reiser4 segfaulted when I tried to check
/dev/hda6(see below).which version do you have? the latest was 0.5.4 in www.namesys.com/snapshots/2004.04.21-internal.testing.fixed/ would you try it first?
Quoted 5 lines
Quoted 2 lines
Tried it and got the same result: fsck.reiser4 segfaults at semantic tree checking.
Can you provide the packed fs metadata for downloading? (debugfs.reiser4 -P
/dev/xxx| bzip2 -c > xxx.bz2)
The metadata is on its way. But what is strange, I have run fsck.reiser4 directly after fsck.reiser4 and here is what I get now (ups, just noticed that I use the old version again, hope that it does not matter much)
# fsck.reiser4 /dev/hda6 ******************************************************************* This is an EXPERIMENTAL version of fsck.reiser4. Read README first. *******************************************************************
Fscking the /dev/hda6 block device.
Will check the consistency of the Reiser4 SuperBlock.
Will check the consistency of the Reiser4 FileSystem.
Continue?
(Yes/No): yes
***** Opening the fs.
Reiser4 journal (journal40) on /dev/hda6: 0 transactions replayed of the total 0 blocks.
Reiser4 fs was detected on /dev/hda6.
Master super block (16):
magic: ReIsEr4 blksize: 4096 format: 0x0 (format40) label: <none>
Format super block (17):
plugin: format40 description: Disk-format for reiser4, ver. 0.5.4 magic: ReIsEr40FoRmAt flushes: 0 mkfs id: 0x6bb3bacf blocks: 1534672 free blocks: 737364 root block: 1366 tail policy: 0x4 (smart) next oid: 0x3651b file count: 139486 tree height: 4 key policy: LARGE
***** Tree Traverse Pass: scanning the reiser4 internal tree.
Error: Node (409174), item (4): item has the wrong length (62). Should be (56).
Error: Node (409174), item (4): broken item found.
Error: Node (409174): the node is broken. Pointed from the node (430549), item (7), unit (0). The whole subtree is skipped.
Read nodes 104414
Nodes left in the tree 104413
Leaves of them 102798, Twigs of them 1583
Broken of them 1
Leaves of them 1, Twigs of them 0
Time interval: Wed Jun 2 05:51:30 2004 - Wed Jun 2 05:53:04 2004
***** TwigScan Pass: checking extent pointers of all twigs.
Read twigs 1583
Time interval: Wed Jun 2 05:53:04 2004 - Wed Jun 2 05:53:05 2004Fatal corruptions were found. Semantic pass is skipped. Free block count 737364 found in the format is wrong. Sould be 737365. ***** fsck.reiser4 finished at Wed Jun 2 05:53:05 2004 Closing fs...done
1 fatal corruptions were detected in FileSystem. Run with --build-fs option to fix them.
Quoted 10 lines · Helge Hielscher
Quoted 6 lines · Vitaly Fertman
Quoted 1 line · Helge Hielscher
fsck.reiser4 segfaulted when I tried to check
/dev/hda6(see below).which version do you have? the latest was 0.5.4 in www.namesys.com/snapshots/2004.04.21-internal.testing.fixed/ would you try it first?
Tried it and got the same result: fsck.reiser4 segfaults at semantic tree checking.
Can you provide the packed fs metadata for downloading? (debugfs.reiser4 -P /dev/xxx | bzip2 -c > xxx.bz2)
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 9 lines · Raymond A. Meijer
Quoted 5 lines · Vitaly Fertman
Quoted 2 lines
Tried it and got the same result: fsck.reiser4 segfaults at semantic tree checking.
Can you provide the packed fs metadata for downloading? (debugfs.reiser4 -P
/dev/xxx| bzip2 -c > xxx.bz2)I have that problem too on one of my partitions! Do you want my metadata as well?
yes, where can I download it from?
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 5 lines · Vitaly Fertman
Quoted 2 lines
Tried it and got the same result: fsck.reiser4 segfaults at semantic tree checking.
Can you provide the packed fs metadata for downloading? (debugfs.reiser4 -P
/dev/xxx| bzip2 -c > xxx.bz2)
I have that problem too on one of my partitions! Do you want my metadata as well?
Cheers,
Ray
Quoted 9 lines · Raymond A. Meijer
Quoted 5 lines · Vitaly Fertman
Quoted 2 lines
Tried it and got the same result: fsck.reiser4 segfaults at semantic tree checking.
Can you provide the packed fs metadata for downloading? (debugfs.reiser4 -P
/dev/xxx| bzip2 -c > xxx.bz2)I have that problem too on one of my partitions! Do you want my metadata as well?
ok, the patch attached prevents fsck from segfaulting. however the convertion policy has been changed in the reiser4progs and the uptodate fsck would not have problems here.
I hope another reiser4progs snapshot will be available this week, when some debugging will be finished.
Signature · 2 lines
Thanks, Vitaly Fertman
===== plugin/object/reg40/reg40_repair.c 1.123 vs edited =====
plugin/object/reg40/reg40_repair.c +1 -5
@@ -281,9 +281,6 @@ static int reg40_conv_prepare(reg40_t *r info = ®->obj.info; -if (mode !=RM_BUILD ) -return 2 ; -/* The current item should be converted to the body plug. Gather all items of the same wrong plug and convert them all together at once later. */
@@ -301,8 +298,7 @@ static int reg40_conv_prepare(reg40_t *rplug_call (reg->body.key.plug->o.key_ops, get_offset, &hint->offset); -/* Convertion is postponed; do not bother with it for not RM_BUILD. */ -return mode ==RM_BUILD ?1 :2 ; +return 1 ; }/* Obtains the maxreal key of the given place.
Quoted 3 lines
The metadata is on its way. But what is strange, I have run fsck.reiser4 directly after fsck.reiser4 and here is what I get now (ups, just noticed that I use the old version again, hope that it does not matter much)
this is a different error -- now you have the internal reiser4 tree broken.
Quoted 6 lines
# fsck.reiser4 /dev/hda6 ***** Tree Traverse Pass: scanning the reiser4 internal tree. Error: Node (409174), item (4): item has the wrong length (62). Should be (56). Error: Node (409174), item (4): broken item found. Error: Node (409174): the node is broken. Pointed from the node (430549), item (7), unit (0). The whole subtree is skipped.
the previous problem was on the semantic pass, but now:
Quoted 1 line
Fatal corruptions were found. Semantic pass is skipped.
the only write that could happen is the journal replaying. did you umount the fs while fscking?
which reiser4 code are you using?
probably you have upgraded to some newer snapshot?
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 13 lines · Vitaly Fertman
Quoted 3 lines
The metadata is on its way. But what is strange, I have run fsck.reiser4 directly after fsck.reiser4 and here is what I get now (ups, just noticed that I use the old version again, hope that it does not matter much)
this is a different error -- now you have the internal reiser4 tree broken.
Quoted 6 lines
# fsck.reiser4 /dev/hda6 ***** Tree Traverse Pass: scanning the reiser4 internal tree. Error: Node (409174), item (4): item has the wrong length (62). Should be (56). Error: Node (409174), item (4): broken item found. Error: Node (409174): the node is broken. Pointed from the node (430549), item (7), unit (0). The whole subtree is skipped.
Quoted 4 lines
the previous problem was on the semantic pass, but now:
Quoted 1 line
Fatal corruptions were found. Semantic pass is skipped.
the only write that could happen is the journal replaying.
(I mean in progs here)
Quoted 3 lines
did you umount the fs while fscking?
which reiser4 code are you using?
probably you have upgraded to some newer snapshot?
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 6 lines · Vitaly Fertman
Quoted 3 lines
The metadata is on its way. But what is strange, I have run fsck.reiser4 directly after fsck.reiser4 and here is what I get now (ups, just noticed that I use the old version again, hope that it does not matter much)
this is a different error -- now you have the internal reiser4 tree broken.
Quoted 8 lines
Quoted 6 lines
# fsck.reiser4 /dev/hda6 ***** Tree Traverse Pass: scanning the reiser4 internal tree. Error: Node (409174), item (4): item has the wrong length (62). Should be (56). Error: Node (409174), item (4): broken item found. Error: Node (409174): the node is broken. Pointed from the node (430549), item (7), unit (0). The whole subtree is skipped.probably you have upgraded to some newer snapshot?
yes, the reiser4progs-0.5.4 does not know about the plugin set in StatData. You have to wait for the next reiser4progs snapshot. Or get rid of not standard plugins for now (i am talking about one file /boot/map here which was made 'extents only').
Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 2 lines · Vitaly Fertman
the previous problem was on the semantic pass, but now:
Quoted 1 line
Fatal corruptions were found. Semantic pass is skipped.
Aha, but I was running
1st: fsck.reiser4 -> error at semantic pass
2nd: debugfs.reiser4
3rd: -> got me the second error I posted
Quoted 2 lines
the only write that could happen is the journal replaying. did you umount the fs while fscking?
Sure. Just tried the last fsck.reiser4 again using the Gentoo LiveCD.
Quoted 1 line
which reiser4 code are you using?
latest stable.
Quoted 1 line
probably you have upgraded to some newer snapshot?
only installed the libaal-0.5.1.tar.gz and reiser4progs-0.5.4.tar.gz after you have been sugesting to try the latest version first, but I didnt uninstall the old version beforehand. maybe that was the mistake I made?
Regards,
Helge