From owner-freebsd-current@FreeBSD.ORG Mon Jan 31 00:37:27 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 673BB16A4CF; Mon, 31 Jan 2005 00:37:27 +0000 (GMT) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E11443D2F; Mon, 31 Jan 2005 00:37:25 +0000 (GMT) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: from ednmsw503.dsto.defence.gov.au (ednmsw503.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id j0V0aAhP024830; Mon, 31 Jan 2005 11:06:10 +1030 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by ednmsw503.dsto.defence.gov.au (Content Technologies SMTPRS 4.3.10) with ESMTP id ; Mon, 31 Jan 2005 11:07:12 +1030 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81]) by muttley.dsto.defence.gov.au (8.11.3/8.11.3) with ESMTP id j0V0VmQ09595; Mon, 31 Jan 2005 11:01:48 +1030 (CST) Received: from squash.dsto.defence.gov.au ([131.185.40.212]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id YK387T05; Mon, 31 Jan 2005 11:01:07 +1030 Received: from squash.dsto.defence.gov.au (localhost [127.0.0.1]) by squash.dsto.defence.gov.au (8.12.11/8.12.11) with ESMTP id j0V0XTx5021441 ; Mon, 31 Jan 2005 11:03:29 +1030 (CST) (envelope-from wilkinsa@squash.dsto.defence.gov.au) Received: (from wilkinsa@localhost) by squash.dsto.defence.gov.au (8.12.11/8.12.11/Submit) id j0V0XTa2021440; Mon, 31 Jan 2005 11:03:29 +1030 (CST) (envelope-from wilkinsa) Date: Mon, 31 Jan 2005 11:03:29 +1030 From: "Wilkinson, Alex" To: Robert Watson Message-ID: <20050131003328.GA21227@squash.dsto.defence.gov.au> Mail-Followup-To: Robert Watson , "Wilkinson, Alex" , freebsd-current@FreeBSD.org, matthew.thyer@dsto.defence.gov.au References: <20050128043403.GA11316@squash.dsto.defence.gov.au> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: matthew.thyer@dsto.defence.gov.au cc: freebsd-current@freebsd.org cc: "Wilkinson, Alex" Subject: Re: [RELENG_5 panic] top(1) 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: Mon, 31 Jan 2005 00:37:27 -0000 0n Fri, Jan 28, 2005 at 10:02:18AM +0000, Robert Watson wrote: > >On Fri, 28 Jan 2005, Wilkinson, Alex wrote: > >> Fatal trap 12: page fault while in kernel mode >> fault virtual address = 0x24 >> fault code = supervisor read, page not present >> instruction pointer = 0x8:0xc05238d9 >> stack pointer = 0x10:0xe8745b2c >> frame pointer = 0x10:0xe8745b60 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, def32 1, gran 1 >> processor eflags = resume, IOPL = 0 >> current process = 1575 (top) >> [thread pid 1575 tid 100176 ] >> Stopped at turnstile_wait+0x269: movl 0x24(%eax),%eax >> >> db> tr >> Tracing pid 1575 tid 100176 td 0xc32ef960 >> turnstile_wait(c2964640,c32ec77c,c32ef640,c2964640,c30e1a00) at >> turnstile_wait+0 >> x269 >> _mtx_lock_sleep(c32ec77c,c32ef960,0,0,0) at _mtx_lock_sleep+0x81 >> sysctl_kern_proc(c06d1860,0,0,e8745c04,e8745c04) at >> sysctl_kern_proc+0x3ab > >If you have a kernel with debugging symbols, could you convert >sysctl_kern_proc+0x3ab to a line number? Thanks! # kgdb kernel.debug /export/bad_kernels/20050128/vmcore.3 [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". doadump () at pcpu.h:159 (kgdb) l *sysctl_kern_proc+0x3ab 0xc04f7963 is in sysctl_kern_proc (/usr/src/sys/kern/kern_proc.c:965). 960 if (p->p_state == PRS_NEW) { 961 mtx_unlock_spin(&sched_lock); 962 continue; 963 } 964 mtx_unlock_spin(&sched_lock); 965 PROC_LOCK(p); 966 /* 967 * Show a user only appropriate processes. 968 */ 969 if (p_cansee(curthread, p)) { (kgdb)