bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RFC] kern: simple futex for gnumach (version 5)


From: Richard Braun
Subject: Re: [RFC] kern: simple futex for gnumach (version 5)
Date: Thu, 26 Dec 2013 16:34:46 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]