Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jul 2009 16:27:20 +0300
From:      Artis Caune <artis.caune@gmail.com>
To:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Panic when booting from USB+GPT and ZFS
Message-ID:  <9e20d71e0907160627v57e9bbd3r6d305aaa5694711c@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi,

I'm booting from USB GPT flash disk (amd64, 8.0-BETA2, r195712) and
I'm getting panic when running command "zpool import":

ZFS WARNING: Cannot open da0p2 for writting.
ZFS WARNING: Cannot open gptid/...... for writting.

Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address   = 0x48
fault code              = supervisor read data, page not present
...
current process         = 2 (g_event)



I'm looking at sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c,
and maybe I'm missing something, but in function:

 74 static void
 75 vdev_geom_orphan(struct g_consumer *cp)
 76 {

 83         vd = cp->private;
 84         gp = cp->geom;

 91         g_detach(cp);
 92         g_destroy_consumer(cp);

 98         vdev_geom_release(vd);


g_destroy_consumer() will free "cp", but vdev_geom_release() later
will user "cp->private"






-- 
Artis Caune

    Everything should be made as simple as possible, but not simpler.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e20d71e0907160627v57e9bbd3r6d305aaa5694711c>