From owner-freebsd-current@FreeBSD.ORG Sat Apr 18 23:42:11 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D57B1065670 for ; Sat, 18 Apr 2009 23:42:11 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (brucec-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:c09::2]) by mx1.freebsd.org (Postfix) with ESMTP id C23ED8FC0C for ; Sat, 18 Apr 2009 23:42:10 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 08928245401 for ; Sun, 19 Apr 2009 00:42:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-2.6 required=8.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 Received: from gluon.draftnet (unknown [IPv6:2a01:348:10f:0:240:f4ff:fe57:9871]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA for ; Sun, 19 Apr 2009 00:42:12 +0000 (GMT) Date: Sun, 19 Apr 2009 00:42:03 +0100 From: Bruce Cran To: current@freebsd.org Message-ID: <20090419004203.6a95382b@gluon.draftnet> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.14.7; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Subject: panic when disconnecting cdce device just before powering off PC 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: Sat, 18 Apr 2009 23:42:11 -0000 I'm running a fairly recent -current and got a panic when shutting down. I'd pressed the power button on my GTA02 and at about the same time had pressed the power button on my PC too. It seems the GTA02 CDCE device powered off first, just before FreeBSD was going to power off: Waiting (max 60 seconds) for system process 'vnlru' to stop...done Waiting (max 60 seconds) for system process 'bufdaemon' to stop...done Waiting (max 60 seconds) for system process 'syncer' to stop... Syncing disks, vnodes remaining...1 1 1 0 0 0 done All buffers synced. Uptime: 10h12m10s ugen3.2: at usbus3 (disconnected) cdce0: at uhub3, port 2, addr 2 (disconnected) Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x288 fault code = supervisor read data, page not present instruction pointer = 0x20:0xffffffff80343d3e stack pointer = 0x28:0xfffffffe4001c8a0 frame pointer = 0x28:0xfffffffe4001c8c0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 1 (init) [thread pid 1 tid 100002 ] Stopped at _mtx_lock_sleep+0x4e: movl 0x288(%rcx),%esi db> bt Tracing pid 1 tid 100002 td 0xffffff00014d7a80 _mtx_lock_sleep() at _mtx_lock_sleep+0x4e _sleep() at _sleep+0x232 usb2_proc_mwait() at usb2_proc_mwait+0x46 usb2_ether_ifshutdown() at usb2_ether_ifshutdown+0xaf cdce_shutdown() at cdce_shutdown+0x11 bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a acpi_shutdown() at acpi_shutdown+0x9 bus_generic_shutdown() at bus_generic_shutdown+0x1a bus_generic_shutdown() at bus_generic_shutdown+0x1a root_bus_module_handler() at root_bus_module_handler+0x11b module_shutdown() at module_shutdown+0x84 boot() at boot+0x37b reboot() at reboot+0x46 syscall() at syscall+0x264 Xfast_syscall() at Xfast_syscall+0xd0 --- syscall (55, FreeBSD ELF64, reboot), rip = 0x40897c, rsp = 0x7fffffffe738, rbp = 0x402420 --- -- Bruce Cran