Date: Sat, 03 Jul 2004 06:39:46 +0800 From: David Xu <davidxu@freebsd.org> To: Andrew Gallatin <gallatin@cs.duke.edu> Cc: freebsd-threads@freebsd.org Subject: Re: odd KSE panic Message-ID: <40E5E432.2020803@freebsd.org> In-Reply-To: <16613.45444.528419.643022@grasshopper.cs.duke.edu> References: <16613.45444.528419.643022@grasshopper.cs.duke.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
What scheduler are you using ? can you switch to another scheduler to see if the problem is still there ? David Xu Andrew Gallatin wrote: >I've got a character device which is used for OS-bypass NIC, and I've >got a problem.. > >We just started using a second thread in our userland library. The >idea is this worker thread ioctls into the driver, where he sleeps >waiting for an interrupt from the NIC. When he gets the interrupt, >he wakes up and returns from the ioctl, where he will process some >recently completed events. > >The problem happens when exiting. When main application thread >decides to exit, it does an ioctl into the driver to wakeup the >sleeping worker thread. The worker thread thread wakes up, and then >exits, then the main thread closes his file descriptor and exits. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40E5E432.2020803>