From owner-freebsd-stable@FreeBSD.ORG Fri Apr 8 16:55:19 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CBB6516A4CE for ; Fri, 8 Apr 2005 16:55:19 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CCF343D31 for ; Fri, 8 Apr 2005 16:55:19 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 62CC672DE5; Fri, 8 Apr 2005 09:55:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 5DF2172DE4; Fri, 8 Apr 2005 09:55:19 -0700 (PDT) Date: Fri, 8 Apr 2005 09:55:19 -0700 (PDT) From: Doug White To: Mars Trading In-Reply-To: <200504051523.42034.marstrade@gmail.com> Message-ID: <20050408095240.A63303@carver.gumbysoft.com> References: <200504051523.42034.marstrade@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-stable@freebsd.org Subject: Re: 5.4-STABLE kernel panic - usb related? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 16:55:19 -0000 On Tue, 5 Apr 2005, Mars Trading wrote: > > Got a kernel panic starting mgetty on ucom devices from 5.4-STABLE > as of 5-APR-0400 UTC. Wasn't able to copy the panic message though. > > Here's the kgdb backtrace: > > #0 doadump () at pcpu.h:159 > #1 0xc04bd35e in boot (howto=260) > at /usr/src/sys/kern/kern_shutdown.c:410 > #2 0xc04bd686 in panic (fmt=0xc063db27 "%s") > at /usr/src/sys/kern/kern_shutdown.c:566 > #3 0xc0620690 in trap_fatal (frame=0xcbee19ec, eva=0) > at /usr/src/sys/i386/i386/trap.c:809 > #4 0xc06203a3 in trap_pfault (frame=0xcbee19ec, usermode=0, eva=76) > at /usr/src/sys/i386/i386/trap.c:727 > #5 0xc061ff7d in trap (frame= > {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 0, tf_esi = > -1043925120, tf_ebp = -873588140, tf_isp = -873588200, tf_ebx = > -1040863232, tf_edx = 0, tf_ecx = -1046884544, tf_eax = 0, > tf_trapno = 12, tf_err = 0, tf_eip = -1069063351, tf_cs = 8, > tf_eflags = 66118, tf_esp = -1046896640, tf_ss = -873588152}) > at /usr/src/sys/i386/i386/trap.c:417 > #6 0xc060e2aa in calltrap () > at /usr/src/sys/i386/i386/exception.s:140 > #7 0x00000018 in ?? () > #8 0x00000010 in ?? () > #9 0x00000010 in ?? () > #10 0x00000000 in ?? () > #11 0xc1c6f780 in ?? () > #12 0xcbee1a54 in ?? () > #13 0xcbee1a18 in ?? () > #14 0xc1f5b000 in ?? () > #15 0x00000000 in ?? () > #16 0xc199cf40 in ?? () > #17 0x00000000 in ?? () > #18 0x0000000c in ?? () > #19 0x00000000 in ?? () > #20 0xc0476349 in usb_transfer_complete (xfer=0xc1f5b000) > at /usr/src/sys/dev/usb/usbdi.c:833 > #21 0xc046e784 in uhci_abort_xfer (xfer=0xc1f5b000, > status=USBD_NORMAL_COMPLETION) > at /usr/src/sys/dev/usb/uhci.c:2022 > #22 0xc046e5d9 in uhci_device_bulk_abort (xfer=0x0) > at /usr/src/sys/dev/usb/uhci.c:1921 > #23 0xc0476259 in usbd_ar_pipe (pipe=0xc1c6f780) > at /usr/src/sys/dev/usb/usbdi.c:762 > #24 0xc0475f01 in usbd_abort_pipe (pipe=0x0) > at /usr/src/sys/dev/usb/usbdi.c:556 > #25 0xc0c1f307 in ?? () > #26 0xc1c6f780 in ?? () > #27 0xcbee1ad8 in ?? () > #28 0xc0c1edc8 in ?? () > #29 0xc1a19400 in ?? () > #30 0x00000001 in ?? () > #31 0xc1a1a400 in ?? () > #32 0x00000003 in ?? () > #33 0xc18fb180 in ?? () > #34 0xcbee1af0 in ?? () > #35 0xc04f18a4 in ttyflush (tp=0xc1a19400, rw=-1046371328) > at /usr/src/sys/kern/tty.c:1420 > Previous frame inner to this frame (corrupt stack?) > > Funny thing is i only got it the first time. Tried it again after a > reboot and it worked. Hope this info will be of some use. This is a known bug. ucom does some funky USB gyrations to force the port to flush and it trips over itself. I don't have the PR handy but there's one filed with a description of the underlying issue from bde. > > dmesg: > Copyright (c) 1992-2005 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 5.4-STABLE #0: Tue Apr 5 14:11:56 PHT 2005 > root@go.ubc.pldt.net:/usr/obj/usr/src/sys/GO > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Athlon(tm) Processor (751.33-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x642 Stepping = 2 > > Features=0x183f9ff > AMD Features=0xc0440000 > real memory = 268369920 (255 MB) > avail memory = 248782848 (237 MB) > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on > acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > acpi_button0: on acpi0 > pcib0: port > 0x6000-0x607f,0x5000-0x500f,0x4080-0x40ff,0x4000-0x407f,0xcf8-0xcff > on acpi0 > pci0: on pcib0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > nvidia0: mem > 0xd8000000-0xd807ffff,0xd0000000-0xd7ffffff,0xe2000000-0xe2ffffff > irq 10 at device 0.0 on pci1 > uhci0: port 0xc000-0xc01f irq 5 at > device 5.0 on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > uhci1: port 0xc400-0xc41f irq 11 at > device 5.1 on pci0 > usb1: on uhci1 > usb1: USB revision 1.0 > uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub1: 2 ports with 2 removable, self powered > ehci0: mem 0xe5001000-0xe50010ff irq > 10 at device 5.2 on pci0 > usb2: EHCI version 1.0 > usb2: companion controllers, 2 ports each: usb0 usb1 > usb2: on ehci0 > usb2: USB revision 2.0 > uhub2: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 > uhub2: 4 ports with 4 removable, self powered > xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xc800-0xc87f mem > 0xe5000000-0xe500007f irq 11 at device 6.0 on pci0 > miibus0: on xl0 > ukphy0: on miibus0 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > xl0: Ethernet address: 00:04:75:98:bb:d3 > lnc0: port 0xcc00-0xcc1f mem > 0xe5002000-0xe500201f irq 10 at device 7.0 on pci0 > lnc0: Attaching PCNet/PCI Ethernet adapter > lnc0: Ethernet address: 00:00:f4:ae:0f:2d > lnc0: if_start running deferred for Giant > lnc0: PCnet-PCI > isab0: at device 20.0 on pci0 > isa0: on isab0 > atapci0: port > 0xd000-0xd00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 20.1 on > pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > uhci2: port 0xd400-0xd41f irq 11 at > device 20.2 on pci0 > usb3: on uhci2 > usb3: USB revision 1.0 > uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub3: 2 ports with 2 removable, self powered > pcm0: port 0xe400-0xe403,0xe000-0xe003,0xdc00-0xdcff > irq 5 at device 20.5 on pci0 > pcm0: > fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 > on acpi0 > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 > on acpi0 > sio0: type 16550A > ppc0: port 0x378-0x37f irq 7 on > acpi0 > ppc0: Generic chipset (EPP/NIBBLE) in COMPATIBLE mode > ppbus0: on ppc0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > atkbdc0: port 0x64,0x60 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > psm0: irq 12 on atkbdc0 > psm0: model Generic PS/2 mouse, device ID 0 > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on > isa0 > ucom0: Prolific Technology Inc. USB-Serial Controller, rev > 1.10/3.00, addr 2 > ucom1: Prolific Technology Inc. USB-Serial Controller, rev > 1.10/3.00, addr 3 > Timecounter "TSC" frequency 751333486 Hz quality 800 > Timecounters tick every 10.000 msec > ad0: 39205MB [79656/16/63] at ata0-master > UDMA66 > acd0: DVDROM at ata1-slave UDMA33 > Mounting root from ufs:/dev/ad0s1a > > Dennis > -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org