From owner-freebsd-current@FreeBSD.ORG Wed Aug 11 08:52:33 2004 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 0DA6916A4CE for ; Wed, 11 Aug 2004 08:52:33 +0000 (GMT) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 9323743D60 for ; Wed, 11 Aug 2004 08:52:32 +0000 (GMT) (envelope-from pho@holm.cc) Received: (qmail 58691 invoked from network); 11 Aug 2004 08:52:30 -0000 Received: from 0x50a43fc7.hknxx1.adsl-dhcp.tele.dk (HELO peter.osted.lan) (80.164.63.199) by relay.pair.com with SMTP; 11 Aug 2004 08:52:30 -0000 X-pair-Authenticated: 80.164.63.199 Received: from peter.osted.lan (localhost [127.0.0.1]) by peter.osted.lan (8.12.10/8.12.10) with ESMTP id i7B8qTRL062924 for ; Wed, 11 Aug 2004 10:52:29 +0200 (CEST) (envelope-from pho@peter.osted.lan) Received: (from pho@localhost) by peter.osted.lan (8.12.10/8.12.10/Submit) id i7B8qTVk062923 for current@freebsd.org; Wed, 11 Aug 2004 10:52:29 +0200 (CEST) (envelope-from pho) Date: Wed, 11 Aug 2004 10:52:29 +0200 From: Peter Holm To: current@freebsd.org Message-ID: <20040811085229.GA62668@peter.osted.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Fatal trap 12 in kern/kern_switch.c:436 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: Wed, 11 Aug 2004 08:52:33 -0000 While stress testing with kern.threads.virtual_cpu=256 I got this fault after a kill -9 of a hung test program. GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2004 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.2-CURRENT #0: Wed Aug 11 04:23:56 CEST 2004 root@peter.osted.lan:/usr/src/sys/i386/compile/PHO WARNING: WITNESS option enabled, expect reduced performance. ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU 1.80GHz (1799.14-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf13 Stepping = 3 Features=0x3febfbff real memory = 267583488 (255 MB) avail memory = 252190720 (240 MB) : ata1-master: DMA limited to UDMA33, non-ATA66 cable or device acd0: CDROM at ata1-master UDMA33 Mounting root from ufs:/dev/ad0s1a kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x54 fault code = supervisor write, page not present instruction pointer = 0x8:0xc066ab08 stack pointer = 0x10:0xd25c1c50 frame pointer = 0x10:0xd25c1c70 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 539 (pthread_setconcurre) [thread 101883] Stopped at setrunqueue+0x1e8: movl %edi,0x54(%edx) db> where setrunqueue(c1bac2c0,c1a957d0,c08b1292,484,c065038e) at setrunqueue+0x1e8 sched_switch(c1bac2c0,0,c08b06b2,123,d3526cf3) at sched_switch+0xa4 mi_switch(2,0,c08b2b56,f5,10000) at mi_switch+0x29f ast(d25c1d48) at ast+0x3fb doreti_ast() at doreti_ast+0x17 db> call doadump Dumping 255 MB panic: blockable sleep lock (sleep mutex) taskqueue @ kern/subr_taskqueue.c:132 cpuid = 0; Uptime: 34m36s panic: cv_wait: not TDS_RUNNING cpuid = 0; KDB: enter: panic [thread 101883] Stopped at kdb_enter+0x30: leave db> (kgdb) l *0xc066ab08 0xc066ab08 is in setrunqueue (../../../kern/kern_switch.c:436). 431 * put the new kse on whatever is next, 432 * which may or may not be us. 433 */ 434 td2 = TAILQ_NEXT(tda, td_runq); 435 kg->kg_last_assigned = td2; 436 td2->td_kse = ke; 437 ke->ke_thread = td2; 438 } 439 sched_add(ke->ke_thread); 440 } else { (kgdb) -- Peter Holm