kern/57044: sysctl -a panics, kern.disks shows detached umass device

Antti Louko alo at iki.fi
Sun Sep 21 01:00:43 PDT 2003


The following reply was made to PR kern/57044; it has been noted by GNATS.

From: alo at iki.fi (Antti Louko)
To: FreeBSD-gnats-submit at FreeBSD.org
Cc:  
Subject: Re: kern/57044: sysctl -a panics, kern.disks shows detached umass device
Date: 21 Sep 2003 07:58:39 -0000

 A further note:
 
 The problem only occurs if the attached disk has fdisk partition
 table.  But without slices and partitions, the disk is quite useless.
 
 Here is kern.geom.debugflags=1 dmesg.  I added notes of sysctl
 commands and attachments and detachments.  There is one newfs:ed
 filesystem on da0s1c.
 
 Sep 21 07:50:20 lexi2 root: sysctl -a
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f16c0, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f16e0, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7950, 0xc72f1680, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7950, 0xc72f1640, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d72e0, 0xc72f1660, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d72e0, 0xc72f1620, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7490, 0xc72f1600, 262146
 Sep 21 07:50:35 lexi2 kernel: g_post_event_x(0xc02d7490, 0xc72f15c0, 262146
 Sep 21 07:51:02 lexi2 root: attach da0
 Sep 21 07:51:10 lexi2 kernel: umass0: Apacer HandyDrive, rev 1.10/1.00, addr 2
 Sep 21 07:51:10 lexi2 kernel: g_post_event_x(0xc02d6e00, 0xc73c6050, 2
 Sep 21 07:51:10 lexi2 kernel: ref 0xc73c6050
 Sep 21 07:51:10 lexi2 kernel: g_post_event_x(0xc02da4b0, 0xc7622780, 2
 Sep 21 07:51:10 lexi2 kernel: da0 at umass-sim0 bus 0 target 0 lun 0
 Sep 21 07:51:10 lexi2 kernel: da0: <Apacer HandyDrive 2.08> Removable Direct Access SCSI-0 device 
 Sep 21 07:51:10 lexi2 kernel: da0: 1.000MB/s transfers
 Sep 21 07:51:10 lexi2 kernel: da0: 31MB (64000 512 byte sectors: 64H 32S/T 31C)
 Sep 21 07:51:10 lexi2 kernel: ref 0xc7622780
 Sep 21 07:51:10 lexi2 kernel: g_mbrext_taste(MBREXT,da0)
 Sep 21 07:51:10 lexi2 kernel: mbr_taste(MBR,da0)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 0, 0)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 1, 0)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 2, 0)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 3, 0)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 0, 1)
 Sep 21 07:51:10 lexi2 kernel: g_post_event_x(0xc02da4b0, 0xc7622800, 2
 Sep 21 07:51:10 lexi2 kernel: ref 0xc7622800
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 1, 1)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 2, 1)
 Sep 21 07:51:10 lexi2 kernel: g_slice_config(da0, 3, 1)
 Sep 21 07:51:10 lexi2 kernel: bsd_taste(BSD,da0)
 Sep 21 07:51:10 lexi2 kernel: g_slice_spoiled(0xc7616180/da0)
 Sep 21 07:51:10 lexi2 kernel: g_wither_geom(0xc7622b80(da0))
 Sep 21 07:51:10 lexi2 kernel: g_detach(0xc7616180)
 Sep 21 07:51:10 lexi2 kernel: g_destroy_consumer(0xc7616180)
 Sep 21 07:51:10 lexi2 kernel: g_destroy_geom(0xc7622b80(da0))
 Sep 21 07:51:10 lexi2 kernel: dev_taste(DEV,da0)
 Sep 21 07:51:10 lexi2 kernel: g_mbrext_taste(MBREXT,da0s1)
 Sep 21 07:51:10 lexi2 kernel: g_slice_spoiled(0xc7616200/da0s1)
 Sep 21 07:51:10 lexi2 kernel: g_wither_geom(0xc7622b00(da0s1))
 Sep 21 07:51:10 lexi2 kernel: g_detach(0xc7616200)
 Sep 21 07:51:10 lexi2 kernel: g_destroy_consumer(0xc7616200)
 Sep 21 07:51:10 lexi2 kernel: g_destroy_geom(0xc7622b00(da0s1))
 Sep 21 07:51:10 lexi2 kernel: mbr_taste(MBR,da0s1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_spoiled(0xc7410f00/da0s1)
 Sep 21 07:51:11 lexi2 kernel: g_wither_geom(0xc7622c00(da0s1))
 Sep 21 07:51:11 lexi2 kernel: g_detach(0xc7410f00)
 Sep 21 07:51:11 lexi2 kernel: g_destroy_consumer(0xc7410f00)
 Sep 21 07:51:11 lexi2 kernel: g_destroy_geom(0xc7622c00(da0s1))
 Sep 21 07:51:11 lexi2 kernel: bsd_taste(BSD,da0s1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 0, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 1, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 2, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 3, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 4, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 5, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 6, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 7, 0)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 0, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 1, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 2, 1)
 Sep 21 07:51:11 lexi2 kernel: g_post_event_x(0xc02da4b0, 0xc7622c00, 2
 Sep 21 07:51:11 lexi2 kernel: ref 0xc7622c00
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 3, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 4, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 5, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 6, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_config(da0s1, 7, 1)
 Sep 21 07:51:11 lexi2 kernel: g_slice_conf_hot(da0s1, idx: 0, off: 512, len: 276)
 Sep 21 07:51:11 lexi2 kernel: dev_taste(DEV,da0s1)
 Sep 21 07:51:11 lexi2 kernel: g_mbrext_taste(MBREXT,da0s1c)
 Sep 21 07:51:11 lexi2 kernel: mbr_taste(MBR,da0s1c)
 Sep 21 07:51:11 lexi2 kernel: g_slice_spoiled(0xc7616a00/da0s1c)
 Sep 21 07:51:11 lexi2 kernel: g_wither_geom(0xc7622680(da0s1c))
 Sep 21 07:51:11 lexi2 kernel: g_detach(0xc7616a00)
 Sep 21 07:51:11 lexi2 kernel: g_destroy_consumer(0xc7616a00)
 Sep 21 07:51:11 lexi2 kernel: g_destroy_geom(0xc7622680(da0s1c))
 Sep 21 07:51:11 lexi2 kernel: bsd_taste(BSD,da0s1c)
 Sep 21 07:51:11 lexi2 kernel: g_slice_spoiled(0xc7616580/da0s1c)
 Sep 21 07:51:11 lexi2 kernel: g_wither_geom(0xc7622b80(da0s1c))
 Sep 21 07:51:11 lexi2 kernel: g_detach(0xc7616580)
 Sep 21 07:51:11 lexi2 kernel: g_destroy_consumer(0xc7616580)
 Sep 21 07:51:11 lexi2 kernel: g_destroy_geom(0xc7622b80(da0s1c))
 Sep 21 07:51:11 lexi2 kernel: dev_taste(DEV,da0s1c)
 Sep 21 07:51:17 lexi2 root: attached da0
 Sep 21 07:51:30 lexi2 root: sysctl kern.disks
 Sep 21 07:51:32 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f1880, 262146
 Sep 21 07:51:32 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f1820, 262146
 Sep 21 07:51:41 lexi2 root: detach da0
 Sep 21 07:51:44 lexi2 kernel: umass0: at uhub1 port 1 (addr 2) disconnected
 Sep 21 07:51:44 lexi2 kernel: (da0:umass-sim0:0:0:0): lost device
 Sep 21 07:51:44 lexi2 kernel: (da0:umass-sim0:0:0:0): removing device entry
 Sep 21 07:51:44 lexi2 kernel: g_post_event_x(0xc02d6f60, 0xc7622600, 2
 Sep 21 07:51:44 lexi2 kernel: umass0: detached
 Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622600(da0))
 Sep 21 07:51:44 lexi2 kernel: g_orphan_provider(0xc7622780(da0), 6)
 Sep 21 07:51:44 lexi2 kernel: g_orphan_register(da0)
 Sep 21 07:51:44 lexi2 kernel: g_dev_orphan(0xc76161c0(da0))
 Sep 21 07:51:44 lexi2 kernel: g_detach(0xc76161c0)
 Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622600(da0))
 Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc76161c0)
 Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622a00(da0))
 Sep 21 07:51:44 lexi2 kernel: g_slice_orphan(0xc742a5c0/da0)
 Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc73f5300(da0))
 Sep 21 07:51:44 lexi2 kernel: g_orphan_provider(0xc7622800(da0s1), 6)
 Sep 21 07:51:44 lexi2 kernel: g_detach(0xc742a5c0)
 Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc742a5c0)
 Sep 21 07:51:44 lexi2 kernel: g_orphan_register(da0s1)
 Sep 21 07:51:44 lexi2 kernel: g_dev_orphan(0xc742a4c0(da0s1))
 Sep 21 07:51:44 lexi2 kernel: g_detach(0xc742a4c0)
 Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc73f5300(da0))
 Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc742a4c0)
 Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622b00(da0s1))
 Sep 21 07:51:44 lexi2 kernel: g_slice_orphan(0xc742aa40/da0s1)
 Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622080(da0s1))
 Sep 21 07:51:44 lexi2 kernel: g_orphan_provider(0xc7622c00(da0s1c), 6)
 Sep 21 07:51:44 lexi2 kernel: g_detach(0xc742aa40)
 Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc742aa40)
 Sep 21 07:51:44 lexi2 kernel: g_orphan_register(da0s1c)
 Sep 21 07:51:44 lexi2 kernel: g_dev_orphan(0xc76166c0(da0s1c))
 Sep 21 07:51:44 lexi2 kernel: g_detach(0xc76166c0)
 Sep 21 07:51:44 lexi2 kernel: g_wither_geom(0xc7622080(da0s1))
 Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622080(da0s1))
 Sep 21 07:51:44 lexi2 kernel: g_destroy_consumer(0xc76166c0)
 Sep 21 07:51:44 lexi2 kernel: g_destroy_geom(0xc7622900(da0s1c))
 Sep 21 07:51:46 lexi2 root: sysctl kern.disks
 Sep 21 07:51:48 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f16c0, 262146
 Sep 21 07:51:48 lexi2 kernel: g_post_event_x(0xc02d7000, 0xc72f1580, 262146
 
 After that sysctl -a panics in g_disk_dumpconf when gp->softc is NULL.


More information about the freebsd-bugs mailing list