I'm not in the sd group but this bug looks similar to the bug described 
in an earlier e-mail to storage-discuss/zfs-discuss titled "Possible ZFS 
Bug - Causes    OpenSolaris Crash".  I haven't seen a core file for 
either one.  Going purely from the stack trace it's not clear to me how 
either panic is clearly an sd bug -- it *looks* like the scsi_pkt passed 
to scsi_transport is invalid but the fault address is non-NULL 
(0xfffffffecd873000) and the packet actually gets allocated via 
scsi_init_pkt.  scsi_init_pkt actually calls the HBA driver via 
(*tran_init_pkt) to allocate the packet.

If possible it would be useful to reproduce the failure (either one) 
with kmem_flags=0xf (add "set kmem_flags=0xf" to the end of 
/etc/system).  IMHO this looks like some kind of memory corruption or 
perhaps a stale scsi_pkt is getting passed around and hopefully setting 
kmem_flags would catch that.

-Peter

eric kustarz wrote:
> This looks like a bug in the sd driver (SCSI).
>
> Does this look familiar to anyway from the sd group?
>
> eric
>
> On Oct 10, 2007, at 10:30 AM, Claus Guttesen wrote:
>
>   
>> Hi.
>>
>> Just migrated to zfs on opensolaris. I copied data to the server using
>> rsync and got this message:
>>
>> Oct 10 17:24:04 zetta ^Mpanic[cpu1]/thread=ffffff0007f1bc80:
>> Oct 10 17:24:04 zetta genunix: [ID 683410 kern.notice] BAD TRAP:
>> type=e (#pf Page fault) rp=ffffff0007f1b640 addr=fffffffecd873000
>> Oct 10 17:24:04 zetta unix: [ID 100000 kern.notice]
>> Oct 10 17:24:04 zetta unix: [ID 839527 kern.notice] sched:
>> Oct 10 17:24:04 zetta unix: [ID 753105 kern.notice] #pf Page fault
>> Oct 10 17:24:04 zetta unix: [ID 532287 kern.notice] Bad kernel fault
>> at addr=0xfffffffecd873000
>> Oct 10 17:24:04 zetta unix: [ID 243837 kern.notice] pid=0,
>> pc=0xfffffffffbbc1a9f, sp=0xffffff0007f1b730, eflags=0x10286
>> Oct 10 17:24:04 zetta unix: [ID 211416 kern.notice] cr0:
>> 8005003b<pg,wp,ne,et,ts,mp,pe> cr4: 6b8<xmme,fxsr,pge,pae,pse,de>
>> Oct 10 17:24:04 zetta unix: [ID 354241 kern.notice] cr2:
>> fffffffecd873000 cr3: 3000000 cr8: c
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     rdi:
>> fffffffecd872f80 rsi:                a rdx: ffffff0007f1bc80
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     rcx:
>>     21  r8:      927454bc6fa  r9:      927445906ba
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     rax:
>>     20 rbx: fffffffefef2ea40 rbp: ffffff0007f1b770
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     r10:
>>  79602 r11: fffffffecd872e18 r12: fffffffecd872f80
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     r13:
>> fffffffecd872f88 r14: ffffffff04209380 r15: fffffffffb84ce30
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     fsb:
>>      0 gsb: fffffffec1c31500  ds:               4b
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]      es:
>>     4b  fs:                0  gs:              1c3
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]     trp:
>>      e err:                0 rip: fffffffffbbc1a9f
>> Oct 10 17:24:04 zetta unix: [ID 592667 kern.notice]      cs:
>>     30 rfl:            10286 rsp: ffffff0007f1b730
>> Oct 10 17:24:04 zetta unix: [ID 266532 kern.notice]       
>> ss:               38
>> Oct 10 17:24:04 zetta unix: [ID 100000 kern.notice]
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b520 unix:die+ea ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b630 unix:trap+135b ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b640 unix:_cmntrap+e9 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b770 scsi:scsi_transport+1f ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b7f0 sd:sd_start_cmds+2f4 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b840 sd:sd_core_iostart+17b ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b8a0 sd:sd_mapblockaddr_iostart+185 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b8f0 sd:sd_xbuf_strategy+50 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b930 sd:xbuf_iostart+103 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b960 sd:ddi_xbuf_qstrategy+60 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b9a0 sd:sdstrategy+ec ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1b9d0 genunix:bdev_strategy+77 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1ba00 genunix:ldi_strategy+54 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1ba50 zfs:vdev_disk_io_start+219 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1ba70 zfs:vdev_io_start+1d ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bab0 zfs:zio_vdev_io_start+123 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bad0 zfs:zio_next_stage_async+bb ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1baf0 zfs:zio_nowait+11 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bb50 zfs:vdev_queue_io_done+a5 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bb90 zfs:vdev_disk_io_done+29 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bbb0 zfs:vdev_io_done+1d ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bbd0 zfs:zio_vdev_io_done+1b ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bc60 genunix:taskq_thread+1a7 ()
>> Oct 10 17:24:04 zetta genunix: [ID 655072 kern.notice]
>> ffffff0007f1bc70 unix:thread_start+8 ()
>> Oct 10 17:24:04 zetta unix: [ID 100000 kern.notice]
>> Oct 10 17:24:04 zetta genunix: [ID 672855 kern.notice] syncing file  
>> systems...
>> Oct 10 17:24:04 zetta genunix: [ID 733762 kern.notice]  26
>> Oct 10 17:24:05 zetta genunix: [ID 733762 kern.notice]  3
>> Oct 10 17:24:06 zetta genunix: [ID 904073 kern.notice]  done
>>
>> Can I provide more information?
>>
>> -- 
>> regards
>> Claus
>>
>> When lenity and cruelty play for a kingdom,
>> the gentlest gamester is the soonest winner.
>>
>> Shakespeare
>> _______________________________________________
>> zfs-discuss mailing list
>> zfs-discuss@opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>>     
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
>   

_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to