From owner-freebsd-current Sun Oct 6 23:16:13 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 EBDFB37B401; Sun, 6 Oct 2002 23:16:11 -0700 (PDT) Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 953CD43E97; Sun, 6 Oct 2002 23:16:11 -0700 (PDT) (envelope-from tlambert2@mindspring.com) Received: from pool0081.cvx40-bradley.dialup.earthlink.net ([216.244.42.81] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 17yRBW-0007MJ-00; Sun, 06 Oct 2002 23:16:06 -0700 Message-ID: <3DA12642.28BB8E1@mindspring.com> Date: Sun, 06 Oct 2002 23:14:26 -0700 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Stefan Farfeleder , John Baldwin , Juli Mallett , current@FreeBSD.org Subject: Re: [PATCH] Re: Junior Kernel Hacker page updated... References: <20021004132203.A78223@FreeBSD.org> <20021005135504.GA254@frog.fafoe> <3D9F39BB.66126C35@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Terry Lambert wrote: > Stefan Farfeleder wrote: > > (kgdb) l *kqueue_scan+0x242 > > 0xc01a1212 is in kqueue_scan > > (/freebsd/current/src/sys/kern/kern_event.c:716). > > 713 TAILQ_INSERT_TAIL(&kq->kq_head, &marker, kn_tqe); > > 714 while (count) { > > 715 kn = TAILQ_FIRST(&kq->kq_head); > > translates to: mov (%edi),%ebx > > 716 TAILQ_REMOVE(&kq->kq_head, kn, kn_tqe); > > translates to: cmpl $0x0,0x8(%ebx) > > > > This line causes the page fault because %ebx is 0. [ ... ] > Please try the attached patch. > > -- Terry Stefan: Did the patch fix it, or not? -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message