Re: Loading atapicam causes panic on 8.0-BETA2 #0 r195818 (i386)

From: Alexandre \ <gaijin.k_at_gmail.com>
Date: Wed, 22 Jul 2009 17:53:59 -0400
On Wed, 2009-07-22 at 18:17 -0300, Gonzalo Nemmi wrote:
> On Wednesday 22 July 2009 4:47:33 pm Alexandre "Sunny" Kovalenko wrote:
> > System:
> > FreeBSD RabbitsDen.RabbitsLawn.verizon.net 8.0-BETA2 FreeBSD
> > 8.0-BETA2 #0 r195818: Wed Jul 22 13:50:22 EDT 2009
> > root_at_RabbitsDen.RabbitsLawn.verizon.net:/usr/obj/usr/src/sys/TPX60 
> > i386
> >
> > Hardware:
> > Master: acd0 <MATSHITADVD-RAM UJ-842/RB01> ATA/ATAPI revision 6
> > *NOTE*: Curiously enough, I can trigger this without drive being
> > present (it is in the media slice of ThinkPad x60)
> >
> > To reproduce:
> > kldload atapicd; kldload atapicam
> >
> > Crash summary:
> > http://members.verizon.net/~akovalenko/Misc/core.txt.1
> >
> > Backtrace:
> > (kgdb) bt
> > #0  doadump () at pcpu.h:246
> > #1  0xa0586614 in boot (howto=260)
> > at /usr/src/sys/kern/kern_shutdown.c:419
> > #2  0xa058692b in panic (fmt=Variable "fmt" is not available.
> > ) at /usr/src/sys/kern/kern_shutdown.c:575
> > #3  0xa076ddd5 in trap_fatal (frame=0xfa388678, eva=1180)
> > at /usr/src/sys/i386/i386/trap.c:933
> > #4  0xa076e0a3 in trap_pfault (frame=0xfa388678, usermode=0,
> > eva=1180) at /usr/src/sys/i386/i386/trap.c:846
> > #5  0xa076ebab in trap (frame=0xfa388678)
> > at /usr/src/sys/i386/i386/trap.c:528
> > #6  0xa075281b in calltrap () at
> > /usr/src/sys/i386/i386/exception.s:165 #7  0xaf5ad125 in atapi_action
> > (sim=0xaf4b3300, ccb=0xfa3887a0) at
> > /usr/src/sys/modules/ata/atapicam/../../../dev/ata/atapi-cam.c:390 #8
> >  0xa0453e58 in xpt_action_default (start_ccb=0xfa3887a0)
> > at /usr/src/sys/cam/cam_xpt.c:2580
> > #9  0xa044eb24 in xpt_action (start_ccb=0xfa3887a0)
> > at /usr/src/sys/cam/cam_xpt.c:2403
> > #10 0xa0450f77 in xpt_bus_register (sim=0xaf4b3300,
> > parent=0xaf4b4780, bus=0) at /usr/src/sys/cam/cam_xpt.c:3794
> > #11 0xaf5acce6 in atapi_cam_attach (dev=0xaf4b4780)
> > at /usr/src/sys/modules/ata/atapicam/../../../dev/ata/atapi-cam.c:221
> > #12 0xa05aff94 in device_attach (dev=0xaf4b4780) at device_if.h:178
> > #13 0xa05b0f5a in device_probe_and_attach (dev=0xaf4b4780)
> > at /usr/src/sys/kern/subr_bus.c:2552
> > #14 0xa05b1265 in bus_generic_driver_added (dev=0xa633d980,
> > driver=0xaf5aed7c) at /usr/src/sys/kern/subr_bus.c:3303
> > #15 0xa05ae5d4 in devclass_driver_added (dc=0xa61ccd40,
> > driver=0xaf5aed7c) at bus_if.h:183
> > #16 0xa05af9d7 in driver_module_handler (mod=0xa70bcc80, what=0,
> > arg=0xaf5aed64) at /usr/src/sys/kern/subr_bus.c:1036
> > #17 0xa057471e in module_register_init (arg=0xaf5aed4c)
> > at /usr/src/sys/kern/kern_module.c:124
> > #18 0xa056ccdf in linker_load_module (kldname=Variable "kldname" is
> > not available.
> > ) at /usr/src/sys/kern/kern_linker.c:233
> > #19 0xa056d1ed in kern_kldload (td=0xa65aab40, file=0xa61ff000
> > "atapicam", fileid=0xfa388c6c) at
> > /usr/src/sys/kern/kern_linker.c:1015 #20 0xa056d2bf in kldload
> > (td=0xa65aab40, uap=0xfa388cf8)
> > at /usr/src/sys/kern/kern_linker.c:1043
> > #21 0xa076e474 in syscall (frame=0xfa388d38)
> > at /usr/src/sys/i386/i386/trap.c:1073
> > #22 0xa07528b0 in Xint0x80_syscall ()
> > at /usr/src/sys/i386/i386/exception.s:261
> > #23 0x00000033 in ?? ()
> > Previous frame inner to this frame (corrupt stack?)
> > (kgdb)
> >
> > Please, let me know if I can provide any additional information.
> 
> I'm getting a fatal trap 12 every time I try to kldload atapicam on 
> BETA2 as well, but I'm not getting a vmcore or anything ...
> 
> acd0: DVDR <MATSHITA DVD+/-RW UJ-875S/D200> at ata0-master UDMA33
> 
> So, basically, I can confirm kldload atapicam crashes my system but I 
> can't provide any cores or anything .. Im probably missing something 
> and that's why Im getting nothing under /var/crash .. should anyone 
> want to enlighten me with a link to read how to get the vmcore, I'll 
> read it and try to get it so I can provide more info.
> 
> Best regards
> Gonzalo
> 
Would this help?

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html#KERNELDEBUG-OBTAIN

-- 
Alexandre Kovalenko (Олександр Коваленко)
Received on Wed Jul 22 2009 - 19:54:59 UTC

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