NetBSD Problem Report #44746
From www@NetBSD.org Sun Mar 20 00:47:59 2011
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id A89E163BB10
for <gnats-bugs@gnats.NetBSD.org>; Sun, 20 Mar 2011 00:47:59 +0000 (UTC)
Message-Id: <20110319211022.7861D63BAC2@www.NetBSD.org>
Date: Sat, 19 Mar 2011 21:10:22 +0000 (UTC)
From: bbartlomiej@gmail.com
Reply-To: bbartlomiej@gmail.com
To: gnats-bugs@NetBSD.org
Subject: NetBSD 5.99.48 DomU crashes on using fdisk. (Xen 4, linux 2.6.32 Dom0 with pvops)
X-Send-Pr-Version: www-1.0
>Number: 44746
>Category: port-xen
>Synopsis: NetBSD 5.99.48 DomU crashes on using fdisk. (Xen 4, linux 2.6.32 Dom0 with pvops)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-xen-maintainer
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Mar 20 00:50:00 +0000 2011
>Closed-Date: Sat Apr 11 17:56:12 +0000 2020
>Last-Modified: Sat Apr 11 17:56:12 +0000 2020
>Originator: Bartek Krawczyk
>Release: 5.99.48
>Organization:
>Environment:
NetBSD netbsd 5.99.48 NetBSD 5.99.48 (XEN3PAE_DOMU) #0: Thu Mar 17 18:03:10 UTC 2011 builds@b7.netbsd.org:/home/builds/ab/HEAD/i386/201103171400Z-obj/home/builds/ab/HEAD/src/sys/arch/i386/compile/XEN3PAE_DOMU i386
>Description:
I have just installed NetBSD 5.99.48 DomU (due to network copy mode on Xen 4 Dom0) using loopback files. "/" is on /dev/xbd1a and I have added xbd0 to make swap partition on in. When I want to use fdisk on any of this disks i get this results:
netbsd# fdisk /dev/xbd0d
fdisk: primary partition table invalid, no magic in sector 0
fdisk: Cannot determine the number of heads
Disk: /dev/xbd0d
NetBSD disklabel disk geometry:
cylinders: 256, heads: 1, sectors/track: 2048 (2048 sectors/cylinder)
total sectors: 524288
BIOS disk geometry:
cylinders: 32, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
total sectors: 524288
Partitions aligned to 16065 sector boundaries, offset 63
Partition table:
0: <UNUSED>
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector disabled.
No active partition.
panic: kernel diagnostic assertion "rw_lock_held(&wl->wl_rwlock)" failed: file "/home/builds/ab/HEAD/src/sys/kern/vfs_wapbl.c", line 1628
cpu0: Begin traceback...
?(0,0,0,100400,1,4000,4000,8e08,0,cad20000) at 0xc0b89800
cpu0: End traceback...
dump to dev 142,9 not possible
rebooting...
On Dom0 xm dmesg shows:
(XEN) traps.c:2308:d9 Domain attempted WRMSR 00000277 from 00000501:00070406 to 00070106:00070106.
NetBSD DomU dmesg shows during boot:
xbd0 at xenbus0 id 51713: Xen Virtual Block Device Interface
xbd0: using event channel 5
xbd0: 256 MB, 512 bytes/sect x 524288 sectors
Or should I maybe create a disklabel directly without a DOS partition table?
Regards,
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: port-xen-maintainer@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: port-xen/44746: NetBSD 5.99.48 DomU crashes on using fdisk.
(Xen 4, linux 2.6.32 Dom0 with pvops)
Date: Tue, 3 May 2011 17:24:49 +0200
On Sun, Mar 20, 2011 at 12:50:01AM +0000, bbartlomiej@gmail.com wrote:
> >Description:
> I have just installed NetBSD 5.99.48 DomU (due to network copy mode on Xen 4 Dom0) using loopback files. "/" is on /dev/xbd1a and I have added xbd0 to make swap partition on in. When I want to use fdisk on any of this disks i get this results:
>
> netbsd# fdisk /dev/xbd0d
> fdisk: primary partition table invalid, no magic in sector 0
> fdisk: Cannot determine the number of heads
> Disk: /dev/xbd0d
> NetBSD disklabel disk geometry:
> cylinders: 256, heads: 1, sectors/track: 2048 (2048 sectors/cylinder)
> total sectors: 524288
>
> BIOS disk geometry:
> cylinders: 32, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
> total sectors: 524288
>
> Partitions aligned to 16065 sector boundaries, offset 63
>
> Partition table:
> 0: <UNUSED>
> 1: <UNUSED>
> 2: <UNUSED>
> 3: <UNUSED>
> Bootselector disabled.
> No active partition.
> panic: kernel diagnostic assertion "rw_lock_held(&wl->wl_rwlock)" failed: file "/home/builds/ab/HEAD/src/sys/kern/vfs_wapbl.c", line 1628
> cpu0: Begin traceback...
> ?(0,0,0,100400,1,4000,4000,8e08,0,cad20000) at 0xc0b89800
> cpu0: End traceback...
Hello,
can you try again with an up to date -current kernel ? there have been
fixes in the WAPBL area ...
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
State-Changed-From-To: open->feedback
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sat, 23 Jun 2018 18:29:38 +0000
State-Changed-Why:
Can you try with -current kernel (8.99.x) ? There have been WAPBL fixes
since 2011 which might have fixed this.
State-Changed-From-To: feedback->closed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sat, 11 Apr 2020 17:56:12 +0000
State-Changed-Why:
Doesn't seem to happen any more, tested with up-to-date kernel with
log-enabled xbd0
>Unformatted:
(Contact us)
$NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.