Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 2005 23:39:03 +0100
From:      Simon Barner <barner@FreeBSD.org>
To:        Charlie Root <root@omega.nanophys.kth.se>
Cc:        barner@freebsd.org, freebsd-ports@freebsd.org
Subject:   Re: MPLAYER CRASHES on 6.0 STABLE: Fatal error 'Spinlock called when not threaded.'at line 87 in file/usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
Message-ID:  <20051219223903.GA27343@zi025.glh.mhn.de>
In-Reply-To: <20051219231022.Y76170@omega.nanophys.kth.se>
References:  <20051219231022.Y76170@omega.nanophys.kth.se>

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

--VS++wcV0S1rZb1Fb
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Charlie Root wrote:
> How can I debug and find that problematic library?
> here it is:

You have to look for libraries that are linked against stale versions
of (base system) libraries).

> /usr/local/lib/libpng.so.5:
> 	libm.so.3 =3D> /lib/libm.so.3 (0x29166000)
> 	libz.so.2 =3D> /lib/libz.so.2 (0x2917e000)

This one is bad. (should be linked with libm.so.4 and libz.so.3)

> /usr/X11R6/lib/libxmms.so.4:
> 	libgtk12.so.2 =3D> /usr/X11R6/lib/libgtk12.so.2 (0x28ae8000)
> 	libgdk12.so.2 =3D> /usr/X11R6/lib/libgdk12.so.2 (0x28c29000)
> 	libgmodule12.so.3 =3D> /usr/local/lib/libgmodule12.so.3 (0x28c61000)
> 	libgthread12.so.3 =3D> /usr/local/lib/libgthread12.so.3 (0x2918f000)
> 	libglib12.so.3 =3D> /usr/local/lib/libglib12.so.3 (0x28c64000)
> 	libc_r.so.5 =3D> /usr/lib/libc_r.so.5 (0x29192000)
> 	libintl.so.6 =3D> /usr/local/lib/libintl.so.6 (0x28c89000)
> 	libXi.so.6 =3D> /usr/X11R6/lib/libXi.so.6 (0x28c92000)
> 	libXext.so.6 =3D> /usr/X11R6/lib/libXext.so.6 (0x28c9a000)
> 	libX11.so.6 =3D> /usr/X11R6/lib/libX11.so.6 (0x28ca8000)
> 	libm.so.3 =3D> /lib/libm.so.3 (0x29166000)

This one too.

In the latter case, it might be possible that libxmms.so.4 is linked against
the wrong version of libm via another variable, so you should check
ldd -a /usr/X11R6/lib/libxmms.so.4 and so on.

So, you chould check all libaries (at least the ones in /usr/local/lib and
/usr/X11R6/lib) and rebuild them.

For example. the following might work (untested)

for i in /usr/local/bin/*.so;
ldd $i | grep libm.so.3 && echo $i >> /tmp/log
done;

cat /tmp/log | pkg_which | uniq gives you the list of packages that need to
be rebuilt.

If you do the same for libz.so.2 libc.so.5 libpthread.so and for
/usr/X11R6/lib /usr/local/bin /usr/X11R6/bin you have good chances to fix y=
our
system.

Note, that this is not the supported way of doing it (it would have been to
forcefully reinstall all ports).

--=20
Best regards / Viele Gr=FC=DFe,                             barner@FreeBSD.=
org
 Simon Barner                                                barner@gmx.de

--VS++wcV0S1rZb1Fb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDpzaGCkn+/eutqCoRAikZAKCbvDa+co3TTBUOcjTHuC5vNO4ICQCeOeDB
N7qcAkugBdfVbP3s6oMThGA=
=Psrk
-----END PGP SIGNATURE-----

--VS++wcV0S1rZb1Fb--



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