From owner-freebsd-current@FreeBSD.ORG Fri Apr 15 16:32:55 2005 Return-Path: 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 1D5CF16A4CE for ; Fri, 15 Apr 2005 16:32:55 +0000 (GMT) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3F5443D39 for ; Fri, 15 Apr 2005 16:32:54 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 30776 invoked from network); 15 Apr 2005 16:32:54 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 15 Apr 2005 16:32:52 -0000 Received: from [131.106.58.7] (p180.n-lapop01.stsn.com [12.129.240.180]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j3FGWf5w045787; Fri, 15 Apr 2005 12:32:42 -0400 (EDT) (envelope-from jhb@FreeBSD.org) In-Reply-To: <20050413125622.GA39802@squash.dsto.defence.gov.au> References: <20050413125622.GA39802@squash.dsto.defence.gov.au> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <2cfc4c75bbcc0e0d0774d69b9796a32c@FreeBSD.org> Content-Transfer-Encoding: 7bit From: John Baldwin Date: Fri, 15 Apr 2005 12:32:40 -0400 To: "Wilkinson, Alex" X-Mailer: Apple Mail (2.619.2) X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: matthew.thyer@dsto.defence.gov.au cc: freebsd-current@FreeBSD.org Subject: Re: panic upon bootstrap'ing - 6.0-CURRENT #4: Wed Apr 13 2005 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 15 Apr 2005 16:32:55 -0000 On Apr 13, 2005, at 8:56 AM, Wilkinson, Alex wrote: > FreeBSD 6.0-CURRENT #4: Wed Apr 13 21:06:05 CST 2005 > > FreeBSD/i386 bootstrap loader, Revision 1.1 > (root@hostname.dsto.defence.gov.au, Wed Apr 13 18:58:54 CST 2005) > Loading /boot/defaults/loader.conf > > /boot/kernel/kernel text=0x4e8874 data=0x7f7f0+0x9bd10 > syms=[0x4+0x59560+0x4+0x6da15] > /boot/kernel/linux.ko text=0x14ec8 data=0x1254+0x54 > syms=[0x4+0x28b0+0x4+0x263e] > /boot/kernel/agp.ko text=0xead4 data=0xc18+0x24 > syms=[0x4+0x1730+0x4+0x1fc6] > /boot/modules/nvidia.ko text=0x21a01c data=0x5d000+0x202a98 > syms=[0x4+0x1e5b0+0x4+0x16d12] > - > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > /boot/kernel/acpi.ko text=0x49ac0 data=0x2124+0x110c > syms=[0x4+0x77c0+0x4+0x9f1a] > GDB: no debug ports present > KDB: debugger backends: ddb > KDB: current backend: ddb > 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 6.0-CURRENT #4: Wed Apr 13 21:06:05 CST 2005 > root@hostname.dsto.defence.gov.au:/usr/obj/usr/src/sys/GENERIC > WARNING: WITNESS option enabled, expect reduced performance. > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (2793.20-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 > > Features=0xbfebfbff E,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE> > real memory = 1073741824 (1024 MB) > avail memory = 1033625600 (985 MB) > ACPI APIC Table: > ioapic0: Changing APIC ID to 1 > ioapic0 irqs 0-23 on motherboard > npx0: [FAST] > 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 0xf808-0xf80b on acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > pci_link0: irq 10 on acpi0 > pci_link1: irq 5 on acpi0 > pci_link2: irq 10 on acpi0 > pci_link3: irq 11 on acpi0 > pci_link4: irq 5 on acpi0 > pci_link5: irq 0 on acpi0 > pci_link6: irq 0 on acpi0 > pci_link7: irq 10 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 > nvidia0: mem > 0xf9000000-0xf9ffffff,0xf0000000-0xf7ffffff irq 18 at device 0.0 on > pci1 > WARNING: Device driver "lock order reversal > 1st 0xc09831e0 cdev (cdev) @ /usr/src/sys/kern/kern_conf.c:60 > 2nd 0xc0982f84 user map (user map) @ /usr/src/sys/vm/vm_map.c:2998 > KDB: stack backtrace: > witness_checkorder(c0982f84,9,c08d9700,bb6,b) at > witness_checkorder+0x5f1 > _sx_xlock(c0982f84,c08d9700,bb6,1000001,480000) at _sx_xlock+0x5c > vm_map_lookup(c1420728,480000,1,c142072c,c142071c) at > vm_map_lookup+0x2e > vm_fault(c0982f40,480000,1,0,c0982de0) at vm_fault+0x7b > trap_pfault(480008,c142083c,c0682d05,c183afe4,480008) at > trap_pfault+0x159 > trap(18,c1420010,c06a0010,480008,c08bb8f5) at trap+0x34d > calltrap() at calltrap+0x5 > --- trap 0xc, eip = 0xc06d6224, esp = 0xc142083c, ebp = 0xc142083c --- > strlen(480008,c1420924,1,6,18) at strlen+0x8 Looks like a bad pointer passed to strlen(). Looks like the nvidia driver was doing a printf("Warning Device driver\"%s\"", foo) and that foo is a bad pointer somehow. Actually, this looks like it's in the FreeBSD driver code rather than in the nvidia driver. In fact, it's probably this code: if (devsw->d_version != D_VERSION_01) { printf( "WARNING: Device driver \"%s\" has wrong version %s\n", devsw->d_name, "and is disabled. Recompile KLD module."); You probably need to recompile your nvidia driver as the kernel has changed the devsw ABI since the last time you compiled it. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org