Re: panic: g_read_data(): invalid length 0

From: Pawel Jakub Dawidek <pjd_at_FreeBSD.org>
Date: Mon, 23 Aug 2004 19:14:24 +0200
On Mon, Aug 23, 2004 at 01:52:37PM +0900, Jun Kuriyama wrote:
+> 
+> This is 6-current as of 2004.08.22.23.10.00.
+> 
+> It's fine with previous kernel configuration, but when I added "device
+> atapicam" and "device cd", kernel is panic.  I'm using gstripe(8) with
+> usual ATA HDDs.  If I added "device atapicam" only, this panic does
+> not happened.
+> 
+> -----
+> ...
+> GEOM_STRIPE: Device wrkdir created (id=948210174).
+> GEOM_STRIPE: Disk ad5s1d attached to wrkdir.
+> GEOM_STRIPE: Disk ad6s1d attached to wrkdir.
+> GEOM_STRIPE: Device wrkdir activated.
+> WARNING: Expected rawoffset 0, found 63
+> SMP: AP CPU #1 Launched!
+> cd0 at ata1 bus 0 target 0 lun 0
+> cd0: <TOSHIBA DVD-ROM SD-R1002 1030> Removable CD-ROM SCSI-0 device
+> cd0: 16.000MB/s transfers
+> cd0: Attempt to query device size failed: NOT READY, Medium not present
+> cd1 at ata1 bus 0 target 1 lun 0
+> cd1: <MATSHITA DVD-RAM LF-D310 A116> Removable CD-ROM SCSI-0 device
+> cd1: 33.000MB/s transfers
+> cd1: Attempt to query device size failed: NOT READY, Medium not present
+> panic: g_read_data(): invalid length 0
+> cpuid = 1
+> KDB: enter: panic
+> [thread 100013]
+> Stopped at      kdb_enter+0x2b: nop
+> db> trace
+> kdb_enter(c0689ada) at kdb_enter+0x2b
+> panic(c0684e9b,0,0,0,c3461900) at panic+0x127
+> g_read_data(c3923980,0,0,0,0) at g_read_data+0x30
+> g_stripe_read_metadata(c3923980,e4d3dc80,c3923980,c3461900,c3461800) at g_stripe_read_metadata+0x81
+> g_stripe_taste(c07e0c00,c3461900,0,c390d280,64) at g_stripe_taste+0xd3
+> g_new_provider_event(c3461900,0,66666667,e4d3dd04,c04cec59) at g_new_provider_event+0x6e
+> one_event(e4d3dd1c,c04d0019,3c,28,c34bc8c0) at one_event+0x14f
+> g_run_events(3c,28,c34bc8c0,c04cffdc,e4d3dd34) at g_run_events+0x9
+> g_event_procbody(0,e4d3dd48,0,c04cffdc,0) at g_event_procbody+0x3d
+> fork_exit(c04cffdc,0,e4d3dd48) at fork_exit+0xa4
+> fork_trampoline() at fork_trampoline+0x8
+> --- trap 0x1, eip = 0, esp = 0xe4d3dd7c, ebp = 0 ---

Ops, this provider has 0 sectorsize. I wonder if we should just skip
tasting for such providers. phk?

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd_at_FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

Received on Mon Aug 23 2004 - 15:14:26 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:07 UTC