Date: Sun, 06 Oct 2002 23:14:26 -0700 From: Terry Lambert <tlambert2@mindspring.com> To: Stefan Farfeleder <e0026813@stud3.tuwien.ac.at>, John Baldwin <jhb@FreeBSD.org>, Juli Mallett <jmallett@FreeBSD.org>, current@FreeBSD.org Subject: Re: [PATCH] Re: Junior Kernel Hacker page updated... Message-ID: <3DA12642.28BB8E1@mindspring.com> References: <20021004132203.A78223@FreeBSD.org> <XFMail.20021004163317.jhb@FreeBSD.org> <20021005135504.GA254@frog.fafoe> <3D9F39BB.66126C35@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DA12642.28BB8E1>