From owner-freebsd-multimedia@FreeBSD.ORG Mon Aug 30 08:54:49 2004 Return-Path: Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E30016A4E8; Mon, 30 Aug 2004 08:54:49 +0000 (GMT) Received: from mindfields.energyhq.es.eu.org (73.Red-213-97-200.pooles.rima-tde.net [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B0FE43D3F; Mon, 30 Aug 2004 08:54:47 +0000 (GMT) (envelope-from flynn@energyhq.es.eu.org) Received: from scienide (scienide.energyhq.es.eu.org [192.168.100.1]) by mindfields.energyhq.es.eu.org (Postfix) with SMTP id 4E44735731; Mon, 30 Aug 2004 10:54:46 +0200 (CEST) Date: Mon, 30 Aug 2004 10:54:27 +0200 From: Miguel Mendez To: Doug White Message-Id: <20040830105427.30e2297a.flynn@energyhq.es.eu.org> In-Reply-To: <20040829181627.C69068@carver.gumbysoft.com> References: <20040829191615.2f10acf0.flynn@energyhq.es.eu.org> <20040829181627.C69068@carver.gumbysoft.com> X-Mailer: Sylpheed version 0.9.12-gtk2-20040622 (GTK+ 2.4.9; i386-portbld-freebsd5.2.1) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Mon__30_Aug_2004_10_54_27_+0200_c19gMzO4+keVu8QQ" cc: freebsd-multimedia@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: Attention beep-media-player users on FreeBSD 5.x X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Aug 2004 08:54:49 -0000 --Signature=_Mon__30_Aug_2004_10_54_27_+0200_c19gMzO4+keVu8QQ Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Sun, 29 Aug 2004 18:20:27 -0700 (PDT) Doug White wrote: Hi, > > If bmp crashes upon start with a libpthread related error, modify > > your/etc/libmap.conf and add this: > > Complaining about spin locks not initialized, I bet? The exact error is this: flynn@scienide% beep-media-player GThread-ERROR **: file gthread-posix.c: line 188 (): error 'Resource deadlock avoided' during 'pthread_mutex_trylock' aborting... Abort (core dumped) It happens pretty early when the program is about to load the skin. > > # Might crash if used with libpthread > > [beep-media-player] > > libc_r.so.5 libc_r.so.5 > > libc_r.so libc_r.so > > This looks like an attempt to hack around the crossed-thread-libraries > issue. I know how to fix this with KDE, but I'm not as experienced The problem was that I was mapping libc_r.so to libpthread.so. beepmp crashes with libpthread, so I had to undo the mapping. However, it's still true that people who linked beepmp with libpthread need to remap the lib, e.g. [beep-media-player] libpthread.so.1 libc_r.so.5 libpthread.so libc_r.so ... and so on. > with gnome. Generally it involves rebuilding X and all ports in a > particular order. With KDE you need to rebuild gmake fairly early > since it encodes build options that get used for qt and dependants. Interesting, I haven't experienced problems with KDE, at least not in 5.2, I'm waiting for 3.3 to come out to try it again (now on 5.3). > There may be some information in the -current archives on this issue, > particularly relating to gnome. Thanks, I'll have a look. > If you want to go hunting, run 'ldd' on the beepmp binary and make > sure libc_r and libpthread don't both show up. If they do, you need to > hunt through the dependant libraries to find the one depending on > libc_r and rebuild it. objdump -x is useful here; look for the NEEDED > entries in the dynamic section. beepmp links with libgthread and libc_r. If libc_r is mapped to libpthread the program aborts, it works fine with libc_r. I'll have a look at the offending code when I have some spare time. Cheers, -- Miguel Mendez http://www.energyhq.es.eu.org PGP Key: 0xDC8514F1 Note: All HTML and non-english mail goes to /dev/null --Signature=_Mon__30_Aug_2004_10_54_27_+0200_c19gMzO4+keVu8QQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFBMutHnLctrNyFFPERAtSxAKC74Bc4kTom2eJE9rKyzVGDA5CHBACgiE9H RC4mwWtyD29Xb8za7DnUzq4= =QiLt -----END PGP SIGNATURE----- --Signature=_Mon__30_Aug_2004_10_54_27_+0200_c19gMzO4+keVu8QQ--