qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] Mutex error checking (was: [PULL 00/26] Migration pull


From: Peter Maydell
Subject: Re: [Qemu-devel] Mutex error checking (was: [PULL 00/26] Migration pull request)
Date: Thu, 2 Jul 2015 13:58:40 +0100

On 2 July 2015 at 13:55, Markus Armbruster <address@hidden> wrote:
> From pthread_mutexattr_settype(3p):
>
>        PTHREAD_MUTEX_ERRORCHECK
>
>               This type of mutex provides error checking. A thread
>               attempting to relock this mutex without first unlocking it
>               shall return with an error. A thread attempting to unlock
>               a mutex which another thread has locked shall return with
>               an error. A thread attempting to unlock an unlocked mutex
>               shall return with an error.
>
> Not sure it detects this particular problem.
>
> Should we use it with --enable-debug or something?

It breaks when fork is involved, unfortunately:

https://lists.gnu.org/archive/html/qemu-devel/2015-06/msg06016.html

-- PMM



reply via email to

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