From owner-freebsd-i386@FreeBSD.ORG Tue May 27 07:40:09 2003 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6160237B401 for ; Tue, 27 May 2003 07:40:09 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5BB6343F75 for ; Tue, 27 May 2003 07:40:08 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4REe8Up016885 for ; Tue, 27 May 2003 07:40:08 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4REe8It016884; Tue, 27 May 2003 07:40:08 -0700 (PDT) Resent-Date: Tue, 27 May 2003 07:40:08 -0700 (PDT) Resent-Message-Id: <200305271440.h4REe8It016884@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mikhail Kruk Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F36237B401 for ; Tue, 27 May 2003 07:38:03 -0700 (PDT) Received: from begemot.dyndns.org (bis-cj.biscom.com [65.163.101.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9DE043FB1 for ; Tue, 27 May 2003 07:38:02 -0700 (PDT) (envelope-from meshko@begemot.dyndns.org) Received: from begemot.dyndns.org (localhost.dyndns.org [127.0.0.1]) by begemot.dyndns.org (8.12.6/8.12.6) with ESMTP id h4RAboxY000486 for ; Tue, 27 May 2003 10:37:52 GMT (envelope-from meshko@begemot.dyndns.org) Received: (from meshko@localhost) by begemot.dyndns.org (8.12.6/8.12.6/Submit) id h4OGw96J000725; Sat, 24 May 2003 16:58:09 GMT Message-Id: <200305241658.h4OGw96J000725@begemot.dyndns.org> Date: Sat, 24 May 2003 16:58:09 GMT From: Mikhail Kruk To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: i386/52722: lock order reversal message X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mikhail Kruk List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 14:40:09 -0000 >Number: 52722 >Category: i386 >Synopsis: lock order reversal message >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 27 07:40:07 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mikhail Kruk >Release: FreeBSD 5.1-BETA i386 >Organization: >Environment: System: FreeBSD begemot.dyndns.org 5.1-BETA FreeBSD 5.1-BETA #0: Fri May 23 12:28:16 GMT 2003 root@begemot.dyndns.org:/usr/src/sys/i386/compile/GENERIC i386 The userland on this machine is 5.0-RELEASE, only kernel is CURRENT >Description: Seems to happen when I start X (loads ATI Radeon module), but not yet 100% sure. It doesn't happen every time. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-i386@FreeBSD.ORG Tue May 27 08:00:30 2003 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A3C937B401 for ; Tue, 27 May 2003 08:00:30 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E15F243FA3 for ; Tue, 27 May 2003 08:00:29 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4RF0TUp017602 for ; Tue, 27 May 2003 08:00:29 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4RF0TpL017601; Tue, 27 May 2003 08:00:29 -0700 (PDT) Date: Tue, 27 May 2003 08:00:29 -0700 (PDT) Message-Id: <200305271500.h4RF0TpL017601@freefall.freebsd.org> To: freebsd-i386@FreeBSD.org From: Mikhail Kruk Subject: Re: i386/52722: lock order reversal message X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Mikhail Kruk List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 15:00:30 -0000 The following reply was made to PR i386/52722; it has been noted by GNATS. From: Mikhail Kruk To: Cc: Subject: Re: i386/52722: lock order reversal message Date: Tue, 27 May 2003 10:51:28 -0400 (EDT) oops, forgot the stack trace. Sorry! lock order reversal 1st 0xc2b01534 vm object (vm object) @ vm/vm_object.c:512 2nd 0xc082f110 system map (system map) @ vm/vm_kern.c:325 Stack backtrace: backtrace(c0501407,c082f110,c05135d6,c05135d6,c051347e) at backtrace+0x17 witness_lock(c082f110,8,c051347e,145,0) at witness_lock+0x697 _mtx_lock_flags(c082f110,0,c0513475,145,3) at _mtx_lock_flags+0xb1 _vm_map_lock(c082f0b0,c0513475,145,d1bbdab8,c0313be4) at _vm_map_lock+0x36 kmem_malloc(c082f0b0,1000,101,d1bbdb24,c0461f40) at kmem_malloc+0x66 page_alloc(c083a240,1000,d1bbdb17,101,c0554d80) at page_alloc+0x27 slab_zalloc(c083a240,101,c0514e13,66f,c083a924) at slab_zalloc+0x150 uma_zone_slab(c083a240,101,c0514e0a,66f,0) at uma_zone_slab+0xd8 uma_zalloc_internal(c083a240,0,101,6ef,0) at uma_zalloc_internal+0x55 uma_zfree_arg(c083a900,c2b02168,0,d1bbdbcc,c0449e18) at uma_zfree_arg+0x2cb dev_pager_putfake(c2b02168,0,c0512cb6,bc,c2b01534) at dev_pager_putfake+0x3a dev_pager_dealloc(c2b01534,1,c0514d19,10b,0) at dev_pager_dealloc+0xc8 vm_pager_deallocate(c2b01534,0,c0513f07,25e,c05c7d68) at vm_pager_deallocate+0x3 d vm_object_terminate(c2b01534,0,c0513f07,200,c2aa5528) at vm_object_terminate+0x1 f4 vm_object_deallocate(c2b01534,c2aa5528,c2b01534,c2aa5528,d1bbdc9c) at vm_object_ deallocate+0x20f vm_map_entry_delete(c2ac5000,c2aa5528,c0513644,86e,c04fcdf2) at vm_map_entry_del ete+0x3b vm_map_delete(c2ac5000,282ca000,282cc000,2000,282ca000) at vm_map_delete+0x453 vm_map_remove(c2ac5000,282ca000,282cc000,0,c27a5248) at vm_map_remove+0x58 munmap(c27105f0,d1bbdd10,c0518f96,3fb,2) at munmap+0x9e syscall(2f,2f,bfbf002f,8214390,8a3a800) at syscall+0x26e Xint0x80_syscall() at Xint0x80_syscall+0x1d --- syscall (73), eip = 0x2823f3d3, esp = 0xbfbff9bc, ebp = 0xbfbff9d8 --- From owner-freebsd-i386@FreeBSD.ORG Tue May 27 08:10:13 2003 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49D0D37B401 for ; Tue, 27 May 2003 08:10:13 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B03B743F3F for ; Tue, 27 May 2003 08:10:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4RFACUp021238 for ; Tue, 27 May 2003 08:10:12 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4RFACsd021237; Tue, 27 May 2003 08:10:12 -0700 (PDT) Date: Tue, 27 May 2003 08:10:12 -0700 (PDT) Message-Id: <200305271510.h4RFACsd021237@freefall.freebsd.org> To: freebsd-i386@FreeBSD.org From: "Simon L. Nielsen" Subject: Re: i386/52722: lock order reversal message X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: "Simon L. Nielsen" List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 15:10:13 -0000 The following reply was made to PR i386/52722; it has been noted by GNATS. From: "Simon L. Nielsen" To: Mikhail Kruk Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: i386/52722: lock order reversal message Date: Tue, 27 May 2003 17:02:58 +0200 --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2003.05.24 16:58:09 +0000, Mikhail Kruk wrote: >=20 > The userland on this machine is 5.0-RELEASE, only kernel is CURRENT It is not supported, though it works most of the time, to use userland and kernel which aren't in sync. > Seems to happen when I start X (loads ATI Radeon module), but not yet > 100% sure. It doesn't happen every time. Without a traceback it is impossible for anyone find out what the problem i= s. Some suggested reading material : http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.ht= ml http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kernel= debug.html --=20 Simon L. Nielsen --5QAgd0e35j3NYeGe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE+034h8kocFXgPTRwRAgS3AKDCtXsvrKg6Ocrad/4bAgpC7/wdHgCfafO6 H8HrmszIn6dE0DdlyaWyvCY= =j2o/ -----END PGP SIGNATURE----- --5QAgd0e35j3NYeGe-- From owner-freebsd-i386@FreeBSD.ORG Tue May 27 08:30:17 2003 Return-Path: Delivered-To: freebsd-i386@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5F1037B401 for ; Tue, 27 May 2003 08:30:17 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C13DE43FD7 for ; Tue, 27 May 2003 08:30:15 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h4RFUFUp022048 for ; Tue, 27 May 2003 08:30:15 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h4RFUFpF022047; Tue, 27 May 2003 08:30:15 -0700 (PDT) Resent-Date: Tue, 27 May 2003 08:30:15 -0700 (PDT) Resent-Message-Id: <200305271530.h4RFUFpF022047@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-i386@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, meshko@cs.brandeis.edu Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B100D37B401 for ; Tue, 27 May 2003 08:29:55 -0700 (PDT) Received: from begemot.dyndns.org (bis-cj.biscom.com [65.163.101.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CCA243F93 for ; Tue, 27 May 2003 08:29:52 -0700 (PDT) (envelope-from root@begemot.dyndns.org) Received: from begemot.dyndns.org (localhost.dyndns.org [127.0.0.1]) by begemot.dyndns.org (8.12.6/8.12.6) with ESMTP id h4RAboxU000486; Tue, 27 May 2003 10:37:51 GMT (envelope-from root@begemot.dyndns.org) Received: (from root@localhost) by begemot.dyndns.org (8.12.6/8.12.6/Submit) id h4PJLPsw000661; Sun, 25 May 2003 19:21:25 GMT Message-Id: <200305251921.h4PJLPsw000661@begemot.dyndns.org> Date: Sun, 25 May 2003 19:21:25 GMT From: meshko@cs.brandeis.edu To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: meshko@scorch2000.com Subject: i386/52724: crashes apparently due to a ACPI problem X-BeenThere: freebsd-i386@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: meshko@cs.brandeis.edu List-Id: I386-specific issues for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 15:30:18 -0000 >Number: 52724 >Category: i386 >Synopsis: crashes apparently due to a ACPI problem >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-i386 >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue May 27 08:30:15 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Mikhail Kruk >Release: FreeBSD 5.1-BETA i386 >Organization: private >Environment: System: FreeBSD begemot.dyndns.org 5.1-BETA FreeBSD 5.1-BETA #0: Fri May 23 12:28:16 GMT 2003 root@begemot.dyndns.org:/usr/src/sys/i386/compile/GENERIC i386 >Description: Problem starts with a number of lines outputed during boot, like this: ACPI-0432: *** Error: Handler for [EmbeddedControl] returned AE_ERROR (see attached dmesg.txt). Boot proceeds and system works for 10-15 minutes, then it panics with the following message: Fatal trap 12: page fault while in kernel mode fault virtual address = 0x80790ab0 fault code = supervisor read, page not present instruction pointer = 0x8:0xc06ea4d0 stack pointer = 0x10:0xcd10bbf0 frame pointer = 0x19:0xcd10bbf0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 6 (acpi_task1) kernel: type 12 trap, code=0 Stopped at AcpiNsMapHandleToNode+0x20: cmpb $0xaa,0(%edx) trace: AcpiNsMapHandleToNode contrib/dev/acpica/nsutils.c AcpiGetHandle acpi_pwer_switch_consumer dev/acpica/acpi_powerres.c acpi_tz_switch_cooler_on dev/acpica/acpi_thermal.c acpi_ForeachPackageObject dev/acpica/acpi_thermal.c acpi_tz_monitor atcpi_task_thread fork_exit fork_trampoline (I typed this in by hand, might be incorrect) I don't know how to open the core dump in the debugger, since the failure is in the module, not in kernel itself. I tried putting a debug output in AcpiNsMapHandleToNode an the Handle pointer in fact gets the bad address (see fault virutal address above). It's sort of strange that process name is not always the same (I saw acpi_task1,2 and acpi_thermal), but the trace is always as above. I then tried putting debug output in the acpi_tz_switch_cooler_on function in the /sys/dev/acpica/acpi_thermal.c, but I doesn't seem to even be compiled, at least I couldn't find any object file matching it. Would appreaciate if someone could walk me through this. (or at least give me a good push in the right direction). >How-To-Repeat: The best way to repeat this is to start make buildworld or compile kernel. Without an intense compilation session the system seems to be pretty stable. >Fix: --- dmesg.txt begins here --- Copyright (c) 1992-2003 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.1-BETA #0: Fri May 23 12:28:16 GMT 2003 root@begemot.dyndns.org:/usr/src/sys/i386/compile/GENERIC Preloaded elf kernel "/boot/kernel/kernel" at 0xc071a000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc071a0a8. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 2392946052 Hz CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2392.95-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf27 Stepping = 7 Features=0xbfebf9ff real memory = 267911168 (255 MB) avail memory = 252489728 (240 MB) Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 11 entries at 0xc00fdf10 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x1008-0x100b on acpi0 acpi_cpu0: on acpi0 acpi_tz0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xec000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) uhci0: port 0x1800-0x181f irq 10 at device 29.0 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pcib2: at device 30.0 on pci0 pci2: on pcib2 cbb0: irq 10 at device 2.0 on pci2 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 pci2: at device 3.0 (no driver attached) fwohci0: vendor=104c, dev=8026 fwohci0: <1394 Open Host Controller Interface> mem 0xe8200000-0xe8203fff,0xe8206000-0xe82067ff irq 10 at device 5.0 on pci2 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:e0:b8:04:01:01:ec:f1 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 if_fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:e0:b8:01:ec:f1 sbp0: on firewire0 fwohci0: Initiate bus reset fxp0: port 0x3c00-0x3c3f mem 0xe8205000-0xe8205fff irq 10 at device 8.0 on pci2 fxp0: Ethernet address 00:e0:b8:50:23:7b miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1820-0x182f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 mem 0xe8000000-0xe80003ff at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at device 31.3 (no driver attached) pci0: at device 31.6 (no driver attached) acpi_lid0: on acpi0 ACPI-1287: *** Error: Method execution failed [\\_SB_.LID_._PSW] (Node 0xc2622e80), AE_NOT_EXIST acpi_acad0: on acpi0 acpi_cmbat0: on acpi0 acpi_button0: on acpi0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model Generic PS/2 mouse, device ID 0 acpi_ec0: port 0x66,0x62 on acpi0 ppc0 port 0x778-0x77f,0x378-0x37f irq 7 drq 3 on acpi0 ppc0: Generic chipset (ECP/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 fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 orm0: