Date: Wed, 4 Jan 2006 13:32:13 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-current@freebsd.org Cc: Randy Bush <randy@psg.com>, Alexander Leidinger <Alexander@leidinger.net> Subject: Re: Fatal trap 18: integer divide fault while in kernel mode Message-ID: <200601041332.14788.jhb@freebsd.org> In-Reply-To: <20060104184153.5c59b660@Magellan.Leidinger.net> References: <17339.64774.805229.732725@roam.psg.com> <20060104184153.5c59b660@Magellan.Leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 04 January 2006 12:41 pm, Alexander Leidinger wrote: > On Wed, 4 Jan 2006 06:51:18 -1000 > > Randy Bush <randy@psg.com> wrote: > > Fatal trap 18: integer divide fault while in kernel mode > > cpuid = 0; apic id = 00 > > instruction pointer = 0x20:0xc05e6295 > > stack pointer = 0x28:0xc0820d04 > > frame pointer = 0x28:0xc0820d14 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, def32 1, gran 1 > > processor eflags = interrupt enabled, resume, IOPL = 0 > > current process = 0 () > > [thread pid 0 tid 0 ] > > Stopped at vm_coloring_init+0x35: idivl pq_cachenways,%eax > > db> trace > > Tracing pid 0 tid 0 td 0xc0692660 > > vm_coloring_init(3,c0820d60,c05e156a,c069d7a4,c065ad0e) at > > vm_coloring_init+0x35 vm_pageq_init(c069d7a4,c065ad0e,0,1,c04caf4b) at > > vm_pageq_init+0x9 vm_page_startup(c0c3d000,a,c0820d88,c049dbf5,0) at > > vm_page_startup+0x10a vm_mem_init(0,81e000,81ec00,81e000,0) at > > vm_mem_init+0x18 > > mi_startup() at mi_startup+0xb5 > > begin() at begin+0x2c > > Uhm... this looks like my fault... > > Can you please try the attached diff and report back if it works? > > If it doesn't work I need more debugging output: > - the content of pq_cachesize and pq_cachenways > - the line where it's panicing You should probably CTASSERT(PAGE_SIZE/1024 > 0). That should probably never be false. -- John Baldwin <jhb@FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601041332.14788.jhb>