Kevent/Kqueue causing kernel panics
Kevent/Kqueue causing kernel panics
- Subject: Kevent/Kqueue causing kernel panics
- From: Travis Athougies <email@hidden>
- Date: Fri, 5 Nov 2010 18:07:59 -0700
I have a application that uses the kevent and kqueue API to provide
asynchronous events to my application. Essentially, my program is
completely event driven. I have my own event handling system which
uses a global event queue to distribute events out to a number of
threads (as many as the number of processors in the system).
Periodically, kevent and kqueue are called to collect events on a
number of sockets (I've only tested with one socket, since I can't do
any more without a kernel panic), and then add these events to the
global event queue. The event queue system works fine (it can handle
thousands of simultaneous connections on linux using epoll*
functions), however on mac, regardless of what I do, if I run my test
program I get a KERNEL PANIC. Application bugs are one thing, but they
should NEVER cause a kernel panic. Just wanted to know if anyone else
has gotten this error and if they have, how they went about resolving
it. The kernel panic message is below and I can provide source code if
necessary.
I'm using the Boehm GC with pthreads, if that means anything to you
And this isn't a once in a while thing. This is every time I run the
application, within a few test client runs.
I've attached a kernel panic. I can provide sources, but keep in mind
I'm not ready to make this software open-source.
And the panic is always in the same place: locks_i386.c.
--
Travis Athougies
Attachment:
Kernel_2010-11-05-151425_Travis-Athougiess-MacBook-Pro.panic
Description: Binary data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden