Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Jul 2007 10:00:32 +0200
From:      Romain =?iso-8859-1?Q?Tarti=E8re?= <romain@blogreen.org>
To:        Joe Marcus Clarke <marcus@marcuscom.com>
Cc:        gnome@freebsd.org, Michael Nottebrock <lofi@freebsd.org>
Subject:   Re: Esound sink broken in pulseaudio 0.9.6?
Message-ID:  <20070712080032.GA223@marvin.blogreen.org>
In-Reply-To: <1184189869.21375.10.camel@shumai.marcuscom.com>
References:  <200707111932.31384.lofi@freebsd.org> <1184189869.21375.10.camel@shumai.marcuscom.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--J2SCkAp4GZ/dPZZf
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.

I've just tried with the default configuration provided with 0.9.6: the ser=
ver
aborts when I try to play a file:

First shell:
> $ pulseaudio
> > $ #  The daemon waits, let's play a sound from another shell
> > $ paplay /usr/local/share/wesnoth/sounds/zombie-attack.wav
> Assertion failed: (_r =3D=3D 0), function pa_mutex_free, file pulsecore/m=
utex-posix.c, line 70.
> zsh: abort      pulseaudio
> $

Alter a while, the client dies too:
> > Connection failure: Timeout
> > Assertion failed: (p->ref >=3D 1), function pa_packet_unref, file pulse=
core/packet.c, line 74.
> > zsh: abort (core dumped)  paplay /usr/local/share/wesnoth/sounds/zombie=
-attack.wav
> > $

On Wed, Jul 11, 2007 at 05:37:49PM -0400, Joe Marcus Clarke wrote :
> backtrace with debugging symbols?

$ gdb /usr/local/bin/pulseaudio
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain condition=
s.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) b pa_mutex_free
Function "pa_mutex_free" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (pa_mutex_free) pending.
(gdb) r
Starting program: /usr/local/bin/pulseaudio=20
warning: Unable to get location for thread creation breakpoint: generic err=
or
[New LWP 100342]
Breakpoint 2 at 0x280b4243: file pulsecore/mutex-posix.c, line 68.
Pending breakpoint "pa_mutex_free" resolved
E: pid.c: stale PID file, overwriting.
[New Thread 0x805a000 (LWP 100222)]

###############################################################
# The daemon waits, go play asound. I tried with musicpd too. #
###############################################################

[Switching to Thread 0x805a000 (LWP 100227)]

Breakpoint 2, pa_mutex_free (m=3D0x80533b0) at pulsecore/mutex-posix.c:68
68          assert(m);
(gdb) l
63          ASSERT_SUCCESS(pthread_mutex_init(&m->mutex, &attr));
64          return m;
65      }
66
67      void pa_mutex_free(pa_mutex *m) {
68          assert(m);
69
70          ASSERT_SUCCESS(pthread_mutex_destroy(&m->mutex));
71          pa_xfree(m);
72      }
(gdb) bt
#0  pa_mutex_free (m=3D0x80533b0) at pulsecore/mutex-posix.c:68
#1  0x2868da8b in pstream_free (p=3D0x806b600) at pulsecore/pstream.c:316
#2  0x2868f35a in pa_pstream_unref (p=3D0x806b600) at pulsecore/pstream.c:8=
93
#3  0x28682456 in connection_free (c=3D0x805d940) at pulsecore/protocol-nat=
ive.c:510
#4  0x28688d03 in pstream_die_callback (p=3D0x806b600, userdata=3D0x805d940=
) at pulsecore/protocol-native.c:2312
#5  0x2868d3e4 in do_something (p=3D0x806b600) at pulsecore/pstream.c:201
#6  0x2868d4b6 in io_callback (io=3D0x805d780, userdata=3D0x806b600) at pul=
secore/pstream.c:214
#7  0x28653eac in callback (m=3D0x8054444, e=3D0x805d800, fd=3D13, f=3D3, u=
serdata=3D0x805d780) at pulsecore/iochannel.c:121
#8  0x2808d876 in dispatch_pollfds (m=3D0x8054400) at pulse/mainloop.c:676
#9  0x2808e1ed in pa_mainloop_dispatch (m=3D0x8054400) at pulse/mainloop.c:=
889
#10 0x2808e315 in pa_mainloop_iterate (m=3D0x8054400, block=3D1, retval=3D0=
xbfbfe9ac) at pulse/mainloop.c:919
#11 0x2808e381 in pa_mainloop_run (m=3D0x8054400, retval=3D0xbfbfe9ac) at p=
ulse/mainloop.c:934
#12 0x0804da52 in main (argc=3D1, argv=3D0xbfbfea10) at daemon/main.c:651
(gdb) n
70          ASSERT_SUCCESS(pthread_mutex_destroy(&m->mutex));
(gdb) n
Assertion failed: (_r =3D=3D 0), function pa_mutex_free, file pulsecore/mut=
ex-posix.c, line 70.

Program terminated with signal SIGABRT, Aborted.
The program no longer exists.
(gdb)=20


Any direction for "where to poke around" or "what to try to get"?


Last detail, I run FreeBSD 6.2-STABLE #4: Thu Jun  7 00:56:26 CEST 2007

--=20
Romain Tarti=E8re <romain@blogreen.org>        http://romain.blogreen.org/
pgp: 8DAB A124 0DA4 7024 F82A  E748 D8E9 A33F FF56 FF43 (ID: 0xFF56FF43)
(plain text =3Dnon-HTML=3D PGP/GPG encrypted/signed e-mail much appreciated)

--J2SCkAp4GZ/dPZZf
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFGld+g2OmjP/9W/0MRAvYEAJ46KUBu09EedCu3OJFBwSvG0dfUIQCfcMJF
gS8MQN6pvD6uZxlwWwjzmnU=
=F1BR
-----END PGP SIGNATURE-----

--J2SCkAp4GZ/dPZZf--



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