NetBSD-Bugs archive

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

Re: kern/51999: pulseaudio does not work



The following reply was made to PR kern/51999; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/51999: pulseaudio does not work
Date: Tue, 21 Mar 2017 09:21:27 +0100

 I think this is a libpthread bug.
 
 A more obvisous failure mode is with mpg123 (install audio/pulseaudio,
 audio/mpg123-pulse, audio/mpg123):
 
  mpg123 -o pulse $any_mp3_file
 
 and see:
 
 High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
         version 1.23.8; written and copyright by Michael Hipp and others
         free software (LGPL) without any warranty but with best wishes
 Assertion 'r == 0 || r == 86' failed at pulsecore/mutex-posix.c:55, function pa_mutex_new(). Aborting.
 Abort (core dumped)
 
 
 The code in question is:
 
 #ifdef HAVE_PTHREAD_PRIO_INHERIT
     if (inherit_priority) {
         r = pthread_mutexattr_setprotocol(&attr, PTHREAD_PRIO_INHERIT);
         pa_assert(r == 0 || r == ENOTSUP);
     }
 #endif
 
 and according to my reading of Posix we should return ENOTSUP here instead
 of EINVAL, as PTHREAD_PRIO_INHERIT is a valid protocol, but we just do not
 support it.
 
 Martin
 


Home | Main Index | Thread Index | Old Index