Your message dated Tue, 17 May 2005 21:47:58 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#308444: noflushd: Core dump
has caused the attached Bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--------------------------------------
Received: (at submit) by bugs.debian.org; 8 May 2005 21:39:15 +0000
>From [EMAIL PROTECTED] Sun May 08 14:39:15 2005
Return-path: <[EMAIL PROTECTED]>
Received: from laximos.fiasko.dyndns.org (fiasko.dyndns.org) [213.133.123.125]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DUtUY-0002b1-00; Sun, 08 May 2005 14:39:15 -0700
Received: from localhost ([127.0.0.1])
by laximos.fiasko.dyndns.org with esmtp (Exim 4.50)
id 1DUtUX-0001ZI-A9
for [EMAIL PROTECTED]; Sun, 08 May 2005 23:39:13 +0200
Received: from laximos.fiasko.dyndns.org ([127.0.0.1])
by localhost (laximos.fiasko.dyndns.org [127.0.0.1]) (amavisd-new, port
10024)
with ESMTP id 00398-08 for <[EMAIL PROTECTED]>;
Sun, 8 May 2005 23:39:12 +0200 (CEST)
Received: from uucp by laximos.fiasko.dyndns.org with BSMTP (Exim 4.50)
id 1DUtUW-000809-Oq
for [EMAIL PROTECTED]; Sun, 08 May 2005 23:39:12 +0200
Received: from kelvin.lan.fiasko.dyndns.org ([10.0.0.205]
helo=fiasko.dyndns.org)
by tarantoga.lan.fiasko.dyndns.org with smtp (Exim 4.32)
id 1DUtUJ-0004s8-0c
for [EMAIL PROTECTED]; Sun, 08 May 2005 23:38:59 +0200
Received: (nullmailer pid 5788 invoked by uid 1000);
Sun, 08 May 2005 21:38:57 -0000
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Thomas Liske <[EMAIL PROTECTED]>
To: Debian Bug Tracking System <[EMAIL PROTECTED]>
Subject: noflushd: not working with kernel software RAID support
X-Mailer: reportbug 3.8
Date: Sun, 08 May 2005 23:38:56 +0200
Message-Id: <[EMAIL PROTECTED]>
X-Virus-Scanned: at fiasko.dyndns.org
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
Package: noflushd
Version: 2.7.4-1
Severity: important
Tags: patch
Hi,
when running noflushd on a kernel with software RAID support it exits with a
BUG:
kelvin:~# noflushd -v -d -n 5 /dev/hda
Kernel talks oldstyle dev
Probing for valid blkdev at /dev/hda
Detected oldstyle dev at /dev/hda
Kernel talks oldstyle dev
Added entry for /dev/hda (3, 0)
Added disk /dev/hda, current timeout 300, state 2
Controlling pdflush daemon
Kernel talks linux 2.5-style stat
pdflush stopped
Check interval 5
Allocated stat entry for (1, 0)
[...]
Allocated stat entry for (3, 0)
BUG at disk_stat.c line 517: No entry for (9,0)
pdflush restarted with interval 500.
Speicherzugriffsfehler
kelvin:~#
The bug is triggered since the stat file reports the device md0 (in
update_io_25) and the
called alloc_entry_new function returns always NULL for virtual (MD and LVM)
devices, so
the BUG is triggered.
The following small patch adds a check for virtual block devices before
triggering a BUG:
=====================================[CUT
HERE]=====================================
diff -rNu noflushd-2.7.4/src/disk_stat.c noflushd-2.7.4.mdfix/src/disk_stat.c
--- noflushd-2.7.4/src/disk_stat.c 2004-08-08 17:06:29.000000000 +0200
+++ noflushd-2.7.4.mdfix/src/disk_stat.c 2005-05-08 23:30:20.248325040
+0200
@@ -400,7 +400,8 @@
di->newio.reads = rblk;
di->newio.writes = wblk;
} else {
- BUG("No entry for (%d,%d)", major, index);
+ if (major != MD_MAJOR && major != LVM_BLK_MAJOR)
+ BUG("No entry for (%d,%d)", major,
index);
}
}
@@ -514,7 +515,8 @@
di->newio.reads = rblk;
di->newio.writes = wblk;
} else {
- BUG("No entry for (%d,%d)", major, minor);
+ if (major != MD_MAJOR && major != LVM_BLK_MAJOR)
+ BUG("No entry for (%d,%d)", major, minor);
}
}
}
=====================================[CUT
HERE]=====================================
Thomas
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-fiasko-ide-pentium-iii
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
Versions of packages noflushd depends on:
ii debconf [debconf-2.0] 1.4.30.13 Debian configuration management sy
ii ed 0.2-20 The classic unix line editor
ii libc6 2.3.2.ds1-21 GNU C Library: Shared libraries an
-- debconf information:
noflushd/expert: false
* noflushd/disks: /dev/hda
* noflushd/timeout: 5
noflushd/params:
---------------------------------------
Received: (at 308444-done) by bugs.debian.org; 17 May 2005 19:48:09 +0000
>From [EMAIL PROTECTED] Tue May 17 12:48:09 2005
Return-path: <[EMAIL PROTECTED]>
Received: from antares.tat.physik.uni-tuebingen.de [134.2.170.62]
by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
id 1DY82z-0001YE-00; Tue, 17 May 2005 12:48:09 -0700
Received: from localhost (localhost [127.0.0.1])
by antares.tat.physik.uni-tuebingen.de (Postfix) with ESMTP id
C08E24A633
for <[EMAIL PROTECTED]>; Tue, 17 May 2005 21:48:07 +0200 (CEST)
Received: from antares.tat.physik.uni-tuebingen.de ([127.0.0.1])
by localhost (antares [127.0.0.1]) (amavisd-new, port 10024)
with LMTP id 05987-08 for <[EMAIL PROTECTED]>;
Tue, 17 May 2005 21:47:59 +0200 (CEST)
Received: by antares.tat.physik.uni-tuebingen.de (Postfix, from userid 1000)
id 3ECD74AD65; Tue, 17 May 2005 21:47:58 +0200 (CEST)
Date: Tue, 17 May 2005 21:47:58 +0200
From: Daniel Kobras <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: Bug#308444: noflushd: Core dump
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[EMAIL PROTECTED]>
User-Agent: Mutt/1.5.9i
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at
tat.physik.uni-tuebingen.de
Delivered-To: [EMAIL PROTECTED]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02
(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER
autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level:
On Tue, May 10, 2005 at 12:56:21PM +0300, Harri Haataja wrote:
> % apt-cache policy noflushd
> noflushd:
> Installed: 2.7.5-1
> Candidate: 2.7.5-1
> Version Table:
> *** 2.7.5-1 0
> 100 /var/lib/dpkg/status
> 2.7.4-1 0
> 600 http://ftp.fi.debian.org testing/main Packages
> 2.6.1-2 0
> 990 http://ftp.fi.debian.org stable/main Packages
>
> I copied the package over and it hasn't crashed after a moment now, at
> least.
Version 2.7.5-1 has made it to sarge as well in the meantime, so this
issue is now completely resolved. Closing the bug.
Regards,
Daniel.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]