Panic when booting from USB+GPT and ZFS

From: Artis Caune <artis.caune_at_gmail.com>
Date: Thu, 16 Jul 2009 16:27:20 +0300
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.
Received on Thu Jul 16 2009 - 11:59:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:52 UTC