Panic when booting from USB+GPT and ZFS

Artis Caune artis.caune at gmail.com
Thu Jul 16 13:59:50 UTC 2009


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.


More information about the freebsd-current mailing list