The ULE issue
Now I got (partially) the point:
- A newly fork’ed thread grabs Giant
- Subsequently, the mutex procedure will call
turnstile_wait - However, the
tdis->td _sched ->ke _runq NULL(means that some part of the new thread is not initialized completely) - So boom! panic.
Interestingly this does not happen in !PREEMPTION case.
Now my question are:
- who forks?
- is it the child? the parent?
- why the initialization is not completed with a wrong result?
在线阅读本文并参与讨论 delphij's Chaos blog.delphij.net/posts/2005/06/the-ule-issue/