All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir V. Saveliev" <vs@namesys.com>
To: Laurent Riffard <laurent.riffard@free.fr>
Cc: reiserfs-list@namesys.com
Subject: Re: [reiser4] reiser4 panicked cowardly: zam-397
Date: Mon, 15 May 2006 17:16:23 +0400	[thread overview]
Message-ID: <1147698983.6956.10.camel@tribesman.namesys.com> (raw)
In-Reply-To: <44663B84.6070401@free.fr>

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]

hello

On Sat, 2006-05-13 at 22:03 +0200, Laurent Riffard wrote:
> Hello,
> 
> I've been hit by a couple of reiser4 panic due to zam-397 assertion. 
> It's more or less reproducible. How can I help debug this ? 

This looks like known bug in debugging code.
Please try to reproduce the problem with the attached patch.

> ~~
> laurent
> 

[-- Attachment #2: reiser4-fix-block-alloc-assertions.patch --]
[-- Type: text/x-patch, Size: 1119 bytes --]

 fs/reiser4/plugin/space/bitmap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN fs/reiser4/plugin/space/bitmap.c~reiser4-fix-block-alloc-assertions fs/reiser4/plugin/space/bitmap.c
--- linux-2.6.17-rc3-mm1/fs/reiser4/plugin/space/bitmap.c~reiser4-fix-block-alloc-assertions	2006-05-15 13:45:57.000000000 +0400
+++ linux-2.6.17-rc3-mm1-vs/fs/reiser4/plugin/space/bitmap.c	2006-05-15 13:51:30.000000000 +0400
@@ -1113,7 +1113,7 @@ alloc_blocks_forward(reiser4_blocknr_hin
 
 	assert("zam-398", super != NULL);
 	assert("zam-412", hint != NULL);
-	assert("zam-397", hint->blk < reiser4_block_count(super));
+	assert("zam-397", hint->blk <= reiser4_block_count(super));
 
 	if (hint->max_dist == 0)
 		search_end = reiser4_block_count(super);
@@ -1160,7 +1160,7 @@ static int alloc_blocks_backward(reiser4
 
 	assert("zam-969", super != NULL);
 	assert("zam-970", hint != NULL);
-	assert("zam-971", hint->blk < reiser4_block_count(super));
+	assert("zam-971", hint->blk <= reiser4_block_count(super));
 
 	search_start = hint->blk;
 	if (hint->max_dist == 0 || search_start <= hint->max_dist)

_

      reply	other threads:[~2006-05-15 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-13 20:03 [reiser4] reiser4 panicked cowardly: zam-397 Laurent Riffard
2006-05-15 13:16 ` Vladimir V. Saveliev [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1147698983.6956.10.camel@tribesman.namesys.com \
    --to=vs@namesys.com \
    --cc=laurent.riffard@free.fr \
    --cc=reiserfs-list@namesys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.