Date: Sun, 17 Dec 2006 05:15:10 +0800 From: hshh <hunreal@gmail.com> To: "LI Xin" <delphij@delphij.net> Cc: freebsd-stable@freebsd.org Subject: Re: SMP Kernel Panic while heavy load. Message-ID: <9b6b59500612161315w58d01d25n902f12e3a4f4b2b2@mail.gmail.com> In-Reply-To: <9b6b59500612150646k4f902e65qb5ef6efa86dbc7c6@mail.gmail.com> References: <9b6b59500612150001p706b361ava92ad96cdcd4791@mail.gmail.com> <45826FCA.2010709@delphij.net> <9b6b59500612150646k4f902e65qb5ef6efa86dbc7c6@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
As LI Xin's said, I modified sys/kern/kern_descrip.c, [root@www] /web/dump# diff -c kern_descrip.c.bak /sys/kern/kern_descrip.c *** kern_descrip.c.bak Sun Dec 17 05:10:51 2006 --- /sys/kern/kern_descrip.c Sun Dec 17 02:37:01 2006 *************** *** 197,202 **** --- 197,203 ---- static int fdisused(struct filedesc *fdp, int fd) { + MPASS(fdp->fd_map != NULL); KASSERT(fd >= 0 && fd < fdp->fd_nfiles, ("file descriptor %d out of range (0, %d)", fd, fdp->fd_nfiles)); return ((fdp->fd_map[NDSLOT(fd)] & NDBIT(fd)) != 0); New backtrace: http://upload.hshh.org/homes/hshh/temp/panic/kgdb-1217.log Kernel config: http://upload.hshh.org/homes/hshh/temp/panic/kernel-1217.log On 12/15/06, hshh <hunreal@gmail.com> wrote: > After recompile kernel with new conf: > http://upload.hshh.org/homes/hshh/temp/panic/kernel-1215.log > It still panic while SMP enabled. > kgdb backtrace: > http://upload.hshh.org/homes/hshh/temp/panic/kgdb-1215.log > > On 12/15/06, LI Xin <delphij@delphij.net> wrote: > > hshh wrote: > > > Hi, > > > My FreeBSD server panic while running SMP kernel. All work fine if > > > disable SMP feature. > > > > > > uname log: http://upload.hshh.org/homes/hshh/temp/panic/uname.log > > > My kernel conf: http://upload.hshh.org/homes/hshh/temp/panic/kernel.log > > > Backtrace log: http://upload.hshh.org/homes/hshh/temp/panic/kgdb.log > > > > Would you please disable ZEROCOPY_SOCKETS and try if things gets improved? > > > > Cheers, > > -- > > Xin LI <delphij@delphij.net> http://www.delphij.net/ > > FreeBSD - The Power to Serve! > > > > > > > > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9b6b59500612161315w58d01d25n902f12e3a4f4b2b2>