From owner-freebsd-current@FreeBSD.ORG Thu Mar 2 02:14:31 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0046116A420 for ; Thu, 2 Mar 2006 02:14:30 +0000 (GMT) (envelope-from pbowen@fastmail.fm) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2607943D49 for ; Thu, 2 Mar 2006 02:14:29 +0000 (GMT) (envelope-from pbowen@fastmail.fm) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 0CEBAD38A16 for ; Wed, 1 Mar 2006 21:14:28 -0500 (EST) Received: from frontend2.messagingengine.com ([10.202.2.151]) by frontend1.internal (MEProxy); Wed, 01 Mar 2006 21:14:28 -0500 X-Sasl-enc: ayeA072+6/BGZdJJpLbxSXEQOWsZ5NDv/svdcNOajypu 1141265649 Received: from [192.168.1.248] (unknown [205.246.14.236]) by frontend2.messagingengine.com (Postfix) with ESMTP id A731158A05D for ; Wed, 1 Mar 2006 21:14:07 -0500 (EST) Message-ID: <440654EA.7020207@fastmail.fm> Date: Wed, 01 Mar 2006 20:14:02 -0600 From: Patrick Bowen User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050920 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <4404AAF1.6090009@savvis.net> <20060228.201210.62398416.imp@bsdimp.com> In-Reply-To: <20060228.201210.62398416.imp@bsdimp.com> Content-Type: multipart/mixed; boundary="------------070806030806020001090400" Subject: Re: -current panics when usb device is detached X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Mar 2006 02:14:31 -0000 This is a multi-part message in MIME format. --------------070806030806020001090400 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit M. Warner Losh wrote: >In message: <4404AAF1.6090009@savvis.net> > Maksim Yevmenkin writes: >: is usb in -current broken? my laptop panics when i detach usb device. > >I'll take a look into this, since I think I may have broken this... > >Warner >_______________________________________________ >freebsd-current@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-current >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > Mr. Losh; Had the same thing happen on my machine; FreeBSD sg1.sgc.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Wed Mar 1 19:18:18 CST 2006 pbowen@sg1.sgc.org:/usr/obj/usr/src/sys/GENERIC i386 I don't remember if you got a backtrace from the OP, so I'm attaching that and a dmesg. Hope it helps. Thanks, Patrick --------------070806030806020001090400 Content-Type: text/plain; name="vmcore5.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vmcore5.txt" Script started on Wed Mar 1 20:04:43 2006 sg1# exitless sysctl.conf[7`scd /etc[6`kldload if_ath[6`mailexitmailkldload if_ath[6`cd /etc[6`lsess sysctl.conf[6`exitexitless sysctl.conf[7`scd /etc[6`kldload if_ath[6`mailexitvtcldiff pkginfo.34 pkginfo.35[7`f >>[22`[6`[5@pkg_info [27`[6`rm *~[6`pkg_info > pkginfo.35[6`df >[22`[7`[10@iff pkginfo.34[32`[6`vtclexitmailkldload if_ath[6`cd /etc[6`lsess sysctl.conf[6`exitkgdb kernel.debug /var/crash/vmcore.5 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". Unread portion of the kernel message buffer: umass0: at uhub0 port 1 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached panic: free: address 0xd449784c(0xd4497000) has not been allocated. cpuid = 0 KDB: enter: panic panic: from debugger cpuid = 0 Uptime: 2m0s Dumping 511 MB (2 chunks) chunk 0: 1MB (159 pages) ... ok chunk 1: 511MB (130779 pages) 495 479 463 447 431 415 399 383 367 351 335 319 303 287 271 255 239 223 207 191 175 159 143 127 111 95 79 63 47 31 15 #0 doadump () at pcpu.h:166 166 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) list 161 static __inline struct thread * 162 __curthread(void) 163 { 164 struct thread *td; 165 166 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); 167 return (td); 168 } 169 #define curthread (__curthread()) 170 (kgdb) bt #0 doadump () at pcpu.h:166 #1 0xc065fa88 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:402 #2 0xc065fd9d in panic (fmt=0xc0850bbb "from debugger") at /usr/src/sys/kern/kern_shutdown.c:558 #3 0xc046ba9d in db_panic (addr=-1066950085, have_addr=0, count=-1, modif=0xd4497a80 "") at /usr/src/sys/ddb/db_command.c:435 #4 0xc046ba34 in db_command (last_cmdp=0xc093c364, cmd_table=0x0, aux_cmd_tablep=0xc08b58c4, aux_cmd_tablep_end=0xc08b58e0) at /usr/src/sys/ddb/db_command.c:404 #5 0xc046bafc in db_command_loop () at /usr/src/sys/ddb/db_command.c:455 #6 0xc046d715 in db_trap (type=3, code=0) at /usr/src/sys/ddb/db_main.c:221 #7 0xc067a534 in kdb_trap (type=3, code=0, tf=0xd4497c14) at /usr/src/sys/kern/subr_kdb.c:485 #8 0xc081a87c in trap (frame= {tf_fs = -733413368, tf_es = -1066991576, tf_ds = -1064828888, tf_edi = -1064800276, tf_esi = 1, tf_ebp = -733381548, tf_isp = -733381568, tf_ebx = -733381504, tf_edx = 0, tf_ecx = -1056755712, tf_eax = 18, tf_trapno = 3, tf_err = 0, tf_eip = -1066950085, tf_cs = 32, tf_eflags = 524946, tf_esp = -733381516, tf_ss = -1067057841}) at /usr/src/sys/i386/i386/trap.c:622 #9 0xc0806daa in calltrap () at /usr/src/sys/i386/i386/exception.s:137 #10 0xc067a23b in kdb_enter (msg=0x12
) at cpufunc.h:60 #11 0xc065fd4f in panic ( fmt=0xc0886fec "free: address %p(%p) has not been allocated.\n") ---Type to continue, or q to quit--- at /usr/src/sys/kern/kern_shutdown.c:542 #12 0xc0655886 in free (addr=0xd449784c, mtp=0xc090e9e0) at /usr/src/sys/kern/kern_malloc.c:382 #13 0xc0600bcc in usb_disconnect_port (up=0xc341e530, parent=0xc341e480) at /usr/src/sys/dev/usb/usb_subr.c:1458 #14 0xc05f7ceb in uhub_explore (dev=0xc341e000) at /usr/src/sys/dev/usb/uhub.c:465 #15 0xc05fe4bb in usb_discover (v=0xc34202c0) at /usr/src/sys/dev/usb/usb.c:747 #16 0xc05fdf8a in usb_event_thread (arg=0xc34202c0) at /usr/src/sys/dev/usb/usb.c:433 #17 0xc064b730 in fork_exit (callout=0xc05fdf40 , arg=0xc34202c0, frame=0xd4497d38) at /usr/src/sys/kern/kern_fork.c:802 #18 0xc0806e0c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:198 (kgdb) q sg1# ^Dexit Script done on Wed Mar 1 20:05:43 2006 --------------070806030806020001090400 Content-Type: text/plain; name="dmesg.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="dmesg.txt" 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 Mar 1 19:18:18 CST 2006 pbowen@sg1.sgc.org:/usr/obj/usr/src/sys/GENERIC WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel Pentium III (751.71-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x68a Stepping = 10 Features=0x383f9ff real memory = 536719360 (511 MB) avail memory = 515604480 (491 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard Timecounter "ACPI-safe" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_acad0: on acpi0 battery0: on acpi0 battery1: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xec00-0xecff mem 0xf8000000-0xfbffffff,0xfdffc000-0xfdffffff irq 11 at device 0.0 on pci1 cbb0: at device 3.0 on pci0 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb1: at device 3.1 on pci0 cardbus1: on cbb1 pccard1: <16-bit PCCard bus> on cbb1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x860-0x86f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xdce0-0xdcff irq 11 at device 7.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered pci0: at device 7.3 (no driver attached) pcm0: port 0xd800-0xd8ff mem 0xf3ffe000-0xf3ffffff irq 5 at device 8.0 on pci0 pcm0: xl0: <3Com 3c556 Fast Etherlink XL> port 0xd400-0xd4ff mem 0xf3ffdc00-0xf3ffdc7f,0xf3ffd800-0xf3ffd87f irq 11 at device 16.0 on pci0 miibus0: on xl0 tdkphy0: on miibus0 tdkphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:04:76:48:c7:b2 pci0: at device 16.1 (no driver attached) acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 fdc0: port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FAST] ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 751707523 Hz quality 800 Timecounters tick every 1.000 msec ad0: 19077MB at ata0-master UDMA33 cardbus1: at device 0.0 (no driver attached) acd0: CDRW at ata1-master PIO4 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 /var: mount pending error: blocks 4 files 1 cpu0: too many short sleeps, backing off to C1 ath_hal: 0.9.16.16 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) ath0: mem 0x88000000-0x8800ffff at device 0.0 on cardbus1 ath0: Ethernet address: 00:13:46:b6:19:ea ath0: mac 7.8 phy 4.5 radio 5.6 ath0: link state changed to UP --------------070806030806020001090400--