From owner-freebsd-current Fri Jul 26 10:59: 1 2002 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 48A2237B400 for ; Fri, 26 Jul 2002 10:58:50 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCC7A43E4A for ; Fri, 26 Jul 2002 10:58:49 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 9610 invoked from network); 26 Jul 2002 17:58:48 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 26 Jul 2002 17:58:48 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.5/8.12.5) with ESMTP id g6QHwluR043081; Fri, 26 Jul 2002 13:58:47 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3D418599.6000108@ort.lviv.net> Date: Fri, 26 Jul 2002 13:58:55 -0400 (EDT) From: John Baldwin To: andrew bliznak Subject: Re: I think X is making this whole thing unstable.. Cc: Peter Schultz , Alex Zepeda , current@FreeBSD.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 26-Jul-2002 andrew bliznak wrote: > John Baldwin wrote: >> On 26-Jul-2002 andrew bliznak wrote: >> >>>#14 0xc03179d8 in calltrap () at {standard input}:98 >>>#15 0xc01e4db5 in _mtx_lock_sleep (m=0x28, opts=0, file=0x0, line=0) >>> at /usr/home/andrew/C/src/sys/kern/kern_mutex.c:598 >> >> >> This is the bug, it's like it is dereferencing a null pointer to get >> a mutex or something. >> >> >>>#16 0xc026f71d in tcp_input (m=0xc0f10100, off0=20) >>> at /usr/home/andrew/C/src/sys/netinet/tcp_input.c:520 >> >> >> /* >> * Locate pcb for segment. >> */ >> INP_INFO_WLOCK(&tcbinfo); >> headlocked = 1; >> >> #define INP_INFO_WLOCK(ipi) mtx_lock(&(ipi)->ipi_mtx) >> >> I don't see why it should be a problem though, tcbinfo is a global >> var. > > Hm, little more debuging, m in sys/kern/kern_mutex.c:595 is wrong! It's wrong on the stack. Look at the _mtx_lock_sleep() line above. I would say print the value of m in gdb, but gdb doesn't always get local variables right (maybe the new gcc and dwarf stuff isn't subject to that). Actually, I think gdb has screwed up your backtrace some anyway. Back to the original fault messages: fault virtual address = 0x24 fault code = supervisor read, page not present instruction pointer = 0x8:0xc01e4b02 Can you do 'l *0xc01e4b02' in gdb and show the output? -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message