Marin Ramesa, le Tue 24 Dec 2013 13:26:35 +0100, a écrit :
> extern task_t kernel_task;

Where is this supposed to come from?

> int main(void)
> {
>       task_t new_task;
>       task_create(kernel_task, 0, &new_task);

If kernel_task is not properly initialized, it is not really surprising
that you are getting a segfault.

See existing code using task_create, e.g. in the Hurd source code, it's
usually just using mach_task_self().

Samuel

Reply via email to