Date: Wed, 1 Sep 2004 23:07:42 +0400 (MSD) From: Igor Sysoev <is@rambler-co.ru> To: John-Mark Gurney <gurney_j@resnet.uoregon.edu> Cc: freebsd-current@freebsd.org Subject: Re: panic caused by EVFILT_SIGNAL detaching in rfork()ed thread Message-ID: <20040901224828.Q97970@is.park.rambler.ru> In-Reply-To: <20040901173757.GF29902@funkthat.com> References: <20040901144705.K97970@is.park.rambler.ru> <20040901155304.GD29902@funkthat.com> <20040901173757.GF29902@funkthat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 1 Sep 2004, John-Mark Gurney wrote: > > > The problem is some how that the knote is being removed from the list > > > (or was never on the list), but not being marked detached... > > > > > > Hmmm. what are the options you are using for rfork? > > > > The worker process starts two worker threads created by > > rfork(RFPROC|RFTHREAD|RFMEM). Each thread opens kqueue and > > adds the EVFILT_SIGNAL event. > > > > If you like I can send to you the source tarball (I do not distribute > > the server right now, because it has not the documentation). The build > > process is simple. Then you need to press ^C and you will get the panic. > > I believe this panic may be possible w/o rfork, but I'm not possitive.. > It's probably an artifact of the fact that the kq was living longer > than the proc that had the signal kevent associated with it, which > normally does not happen... > > Attached is a patch.. And let me know if it fixes your panic... The patch fixed the panic (I tested on 5.3-BETA2, GENERIC, SMP, HTT, SCHED_ULE). Thank you. Could you make the similar patch for 4.x ? And one more, could you rename http://people.freebsd.org/~jmg/kqueue.man.html into kqueue_preliminary.man.html and place a modern (or at least from 4.1-RELEASE) kqueue man page in kqueue.man.html ? Google shows your man page at first position and it confuses people. I saw several times when people said that kqueue has the incompatible interface between BSDs and even between various FreeBSD verisons referring to this man page. Igor Sysoev http://sysoev.ru/en/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040901224828.Q97970>