Subject: Re: Are posix semaphores broken on current?
To: Tobias Nygren <tnn@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: current-users
Date: 06/15/2007 19:30:14
Hi,

On Fri, Jun 15, 2007 at 05:56:48PM +0200, Tobias Nygren wrote:

> I am able to trigger a panic on ~current with this code:
> 
> #include <semaphore.h>
> #include <stdio.h>
> sem_t s1;
> int
> main(void)
> {
>         if (sem_init(&s1, 0, 1) == -1)
>                 printf("fail\n");
> 	return 0;
> }

I think this should be fixed with revision 1.21 of kern/uipc_sem.c.

Andrew