Date: Wed, 26 Apr 2006 15:54:34 -0400 From: Anish Mistry <mistry.7@osu.edu> To: Robert Watson <rwatson@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: panic: mutex Giant not owned at /usr/src/sys/cam/cam_xpt.c:4837 Message-ID: <200604261554.50776.mistry.7@osu.edu> In-Reply-To: <20060426093356.V93543@fledge.watson.org> References: <200604260045.32557.mistry.7@osu.edu> <20060426093356.V93543@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart1911681.j9BLdI3dIB Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 26 April 2006 04:35, Robert Watson wrote: > On Wed, 26 Apr 2006, Anish Mistry wrote: > > #10 0xc04cc002 in panic (fmt=3D0xc06284f9 "mutex %s not owned at > > %s:%d") at /usr/src/sys/kern/kern_shutdown.c:549 > > #11 0xc04c3b43 in _mtx_assert (m=3D0xc06286ff, what=3D-1056878592, > > file=3D0xc06181c9 "/usr/src/sys/cam/cam_xpt.c", line=3D4837) > > at /usr/src/sys/kern/kern_mutex.c:768 > > ---Type <return> to continue, or q <return> to quit--- > > #12 0xc0432c65 in xpt_release_devq (path=3D0x0, count=3D1, > > run_queue=3D1) at /usr/src/sys/cam/cam_xpt.c:4837 > > #13 0xc043420e in xpt_action (start_ccb=3D0xc22f9530) > > at /usr/src/sys/cam/cam_xpt.c:3580 > > #14 0xc051091b in kern_sendit (td=3D0xc28f7870, s=3D4, mp=3D0xcca4bc6c, > > flags=3D0, > > control=3D0x0, segflg=3D3227694719) > > at /usr/src/sys/kern/uipc_syscalls.c:775 > > #15 0xc0511965 in sendit (td=3D0xc28f7870, s=3D4, mp=3D0xcca4bc6c, > > flags=3D0) at /usr/src/sys/kern/uipc_syscalls.c:715 > > Something really nasty happened to the stack between frame 14 and > frame 13. The above code path Should Never Happen. The CAM bit is > consistent with itself, and with the panic message, and the socket > bit is consistent with itself. That leaves a question about what > happened in between. Did you try running 'trace' under DDB? If > so, can you use dmesg on the core dump to see if the DDB trace > differs from the gdb trace? Nope, I didn't do a trace. So dmesg on the core file didn't show=20 anything useful. > > Robert N M Watson > > > #16 0xc0511c6e in sendto (td=3D0xc062b67f, uap=3D0xc1015000) > > at /usr/src/sys/kern/uipc_syscalls.c:833 > > #17 0xc05ff737 in syscall (frame=3D > > {tf_fs =3D 59, tf_es =3D 59, tf_ds =3D 59, tf_edi =3D 672381756, > > tf_esi =3D 134536657, tf_ebp =3D -1077945788, tf_isp =3D -861618844, > > tf_ebx =3D 672417536, tf_edx =3D 74, tf_ecx =3D 134541840, tf_eax =3D > > 133, tf_trapno =3D 12, tf_err =3D 2, tf_eip =3D 672270187, tf_cs =3D 51, > > tf_eflags =3D 534, tf_esp =3D -1077945820, tf_ss =3D 59}) > > at /usr/src/sys/i386/i386/trap.c:1016 > > #18 0xc05f0b4f in Xint0x80_syscall () > > at /usr/src/sys/i386/i386/exception.s:191 > > #19 0x00000033 in ?? () > > Previous frame inner to this frame (corrupt stack?) > > > > Dmesg: > > Copyright (c) 1992-2006 The FreeBSD Project. > > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, > > 1993, 1994 > > The Regents of the University of California. All rights > > reserved. > > FreeBSD 7.0-CURRENT #0: Wed Apr 19 13:18:18 EDT 2006 > > > > amistry@littleguy.am-productions.biz:/usr/obj/usr/src/sys/LITTLEG > >UY Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: Transmeta(tm) Crusoe(tm) Processor TM5800 (859.34-MHz > > 586-class CPU) > > Origin =3D "GenuineTMx86" Id =3D 0x543 Stepping =3D 3 > > Features=3D0x80893f<FPU,VME,DE,PSE,TSC,MSR,CX8,SEP,CMOV,MMX> > > real memory =3D 251527168 (239 MB) > > avail memory =3D 236593152 (225 MB) > > Crusoe LongRun support enabled, current mode: 2 <867MHz 1300mV > > 100%> kbd1 at kbdmux0 > > acpi0: <FUJ PAULING2> on motherboard > > acpi0: Power Button (fixed) > > acpi_ec0: <Embedded Controller: GPE 0> port 0x62,0x66 on acpi0 > > Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 > > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xff08-0xff0b on > > acpi0 cpu0: <ACPI CPU> on acpi0 > > acpi_throttle0: <ACPI CPU Throttling> on cpu0 > > pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 > > pci0: <ACPI PCI bus> on pcib0 > > pci0: <memory, RAM> at device 0.1 (no driver attached) > > pci0: <memory, RAM> at device 0.2 (no driver attached) > > ohci0: <AcerLabs M5237 (Aladdin-V) USB controller> mem > > 0xfc100000-0xfc100fff irq 11 at device 2.0 on pci0 > > ohci0: [GIANT-LOCKED] > > usb0: OHCI version 1.0, legacy support > > usb0: <AcerLabs M5237 (Aladdin-V) USB controller> on ohci0 > > usb0: USB revision 1.0 > > usbd_get_string: getting lang failed, using 0 > > uhub0: <AcerLabs OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> > > on usb0 > > uhub0: 2 ports with 2 removable, self powered > > pcm0: <Acer Labs M5451> port 0x1000-0x10ff mem > > 0xfc101000-0xfc101fff irq 9 at device 4.0 on pci0 > > pcm0: <SigmaTel STAC9756/57 AC97 Codec> > > pcm0: [GIANT-LOCKED] > > pci0: <bridge> at device 6.0 (no driver attached) > > isab0: <PCI-ISA bridge> at device 7.0 on pci0 > > isa0: <ISA bus> on isab0 > > cbb0: <TI1410 PCI-CardBus Bridge> irq 9 at device 12.0 on pci0 > > cardbus0: <CardBus bus> on cbb0 > > pccard0: <16-bit PCCard bus> on cbb0 > > atapci0: <AcerLabs M5229 UDMA66 controller> port > > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x1400-0x140f at device 15.0 > > on pci0 > > atapci0: using PIO transfers above 137GB as workaround for 48bit > > DMA access bug, expect reduced performance > > ata0: <ATA channel 0> on atapci0 > > ata1: <ATA channel 1> on atapci0 > > rl0: <RealTek 8139 10/100BaseTX> port 0x8000-0x80ff mem > > 0xfc102000-0xfc1020ff irq 9 at device 16.0 on pci0 > > miibus0: <MII bus> on rl0 > > rlphy0: <RealTek internal media interface> on miibus0 > > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > > rl0: Ethernet address: 00:e0:00:ae:45:08 > > fwohci0: <Texas Instruments TSB43AB21/A/AI/A-EP> mem > > 0xfc102800-0xfc102fff,0xfc104000-0xfc107fff irq 9 at device 19.0 > > on pci0 > > fwohci0: OHCI version 1.10 (ROM=3D0) > > fwohci0: No. of Isochronous channels is 4. > > fwohci0: EUI64 00:00:0e:10:00:b0:29:d0 > > fwohci0: Phy 1394a available S400, 1 ports. > > fwohci0: Link S400, max_rec 2048 bytes. > > firewire0: <IEEE1394(FireWire) bus> on fwohci0 > > dcons_crom0: <dcons configuration ROM> on firewire0 > > dcons_crom0: bus_addr 0xea34000 > > fwohci0: Initiate bus reset > > fwohci0: node_id=3D0x8800ffc0, gen=3D1, non CYCLEMASTER mode > > firewire0: 2 nodes, maxhop <=3D 1, cable IRM =3D 1 > > vgapci0: <VGA-compatible display> port 0x1800-0x18ff mem > > 0xfd000000-0xfdffffff,0xfc103000-0xfc103fff irq 9 at device 20.0 > > on pci0 > > acpi_video0: <ACPI video extension> on vgapci0 > > drm0: <Rage Mobility P/M> on vgapci0 > > info: [drm] Initialized mach64 1.0.0 20020904 > > acpi_button0: <Power Button> on acpi0 > > acpi_acad0: <AC Adapter> on acpi0 > > battery0: <ACPI Control Method Battery> on acpi0 > > battery1: <ACPI Control Method Battery> on acpi0 > > acpi_lid0: <Control Method Lid Switch> on acpi0 > > atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on > > acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 > > kbd0 at atkbd0 > > atkbd0: [GIANT-LOCKED] > > psm0: <PS/2 Mouse> flags 0x3000 irq 12 on atkbdc0 > > psm0: [GIANT-LOCKED] > > psm0: model Generic PS/2 mouse, device ID 0 > > acpi_fujitsu0: <Fujitsu Function Hotkeys FUJ02B1> on acpi0 > > pmtimer0 on isa0 > > orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd0fff > > pnpid ORM0000 on isa0 > > sc0: <System console> at flags 0x100 on isa0 > > sc0: VGA <16 virtual consoles, flags=3D0x300> > > vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff > > on isa0 > > Timecounter "TSC" frequency 859339043 Hz quality 800 > > Timecounters tick every 10.000 msec > > acpi_acad0: acline initialization start > > battery0: battery initialization start > > battery1: battery initialization start > > acpi_acad0: On Line > > acpi_acad0: acline initialization done, tried 1 times > > battery0: battery initialization done, tried 1 times > > ad0: 19077MB <TOSHIBA MK2018GAP M1.42 A> at ata0-master UDMA66 > > firewire0: bus manager 1 > > acd0: CDRW <TOSHIBA DVD-ROM SD-R2212/1F15> at ata1-master UDMA33 > > firewire0: New S400 device ID:0000d1008051e6dd > > Trying to mount root from ufs:/dev/ad0s2a > > WARNING: / was not properly dismounted > > WARNING: /tmp was not properly dismounted > > WARNING: /usr was not properly dismounted > > WARNING: /var was not properly dismounted > > battery1: battery initialization failed, giving up > > fuse4bsd: version 0.3.0, FUSE ABI 7.5 > > > > > > > > -- > > Anish Mistry =2D-=20 Anish Mistry --nextPart1911681.j9BLdI3dIB Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBET9AKxqA5ziudZT0RAikyAJ40kdkKfi9pJ/+8eEao7NRSuMM2NgCfTH8q mbQiv8yCRquuk/Kivo41ixY= =rUdu -----END PGP SIGNATURE----- --nextPart1911681.j9BLdI3dIB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604261554.50776.mistry.7>