On Thu, Dec 26, 2013 at 03:51:30PM +0100, Marin Ramesa wrote: > futex->futexed_threads = > (thread_t)kalloc((futex->num_futexed_threads+1)*sizeof(struct > thread)); > > When futexed_threads is a pointer to struct thread.
Why are you allocating a thread structure ?? I strongly suspect kalloc does what you want it to do, but something in your code makes an illegal access. In the worst case, use prints to find the faulty instruction. -- Richard Braun