Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Nov 2016 15:50:36 +0200
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Volker Lendecke <Volker.Lendecke@SerNet.DE>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: process shared mutexes?
Message-ID:  <20161121135036.GY54029@kib.kiev.ua>
In-Reply-To: <20161121133528.GA30947@sernet.de>
References:  <20161121133528.GA30947@sernet.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 21, 2016 at 02:35:28PM +0100, Volker Lendecke wrote:
> Hello!
> 
> For Samba's tdb I'm trying to get process shared robust mutexes to
> work. However, tdb has a usage pattern that seems to confuse FreeBSD
> 11 (32-bit x86 if that matters).
> 
> The attached program fails in the final pthread_mutex_lock call. If I
> comment out the call to
> 
> ptr = mmap(NULL, 0xb0, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0x1000);
> 
> it works.
> 
> FWIW, tdb uses robust shared mutexes on Linux successfully for a while
> now. I haven't tried Solaris yet, the only other platform I know about
> that has them.
> 
> What am I doing wrong?
> 
> Thanks,
> 

There is no attached program, please mail it either inline or put it
somewhere on web.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20161121135036.GY54029>