Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Nov 2004 17:19:14 +0300
From:      Mike Makonnen <mtm@identd.net>
To:        John Baldwin <jhb@freebsd.org>
Cc:        threads@freebsd.org
Subject:   Re: More mono + libpthread breakage..
Message-ID:  <20041103141914.GA2095@rogue.acs.lan>
In-Reply-To: <200411021712.11115.jhb@FreeBSD.org>
References:  <200411021712.11115.jhb@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 02, 2004 at 05:12:11PM -0500, John Baldwin wrote:
> This kicks in with mono because mono wants to call 
> 'sem_post()' (which is supposed to be signal safe) from a signal handler, but 
> sem_post() calls pthread_mutex_lock() which dies with an assertion error 
> about already being on a syncq since _cond_wait_backout() didn't happen.

Then the correct fix is for sem_post to disable signals around calls to
pthread functions. There are *no* async-signal safe pthread functions.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm@identd.net | Fingerprint: AC7B 5672 2D11 F4D0 EBF8  5279 5359 2B82 7CD4 1F55
mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !



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