Re: mplayer borked with libpthread + feb4th Current

From: Joe Marcus Clarke <marcus_at_marcuscom.com>
Date: Fri, 06 Feb 2004 01:55:38 -0500
On Fri, 2004-02-06 at 02:22, John wrote:
> On Fri, Feb 06, 2004 at 01:46:13AM -0500, Joe Marcus Clarke wrote:
> > On Fri, 2004-02-06 at 02:08, John wrote:
> > > Well i installed a snapshot onto my laptop. i installed mplayeyer
> > > seem it seems to have problems. With mplayer i can't do anything without it 
> > > crashing. FYI after setting up libmap.conf to point to libc_r mplayer works
> > > fine.
> > > > mplayer
> > > Fatal error 'Spinlock called when not threaded.' at line 83 in file /usr/src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
> > > Abort (core dumped)
> > > > 
> > 
> > Looks like mplayer is linked to both libc_r and libpthread.  If you
> > switch your libmap.conf to map libc_r --> libpthread, does it also work?
> > 
> > Joe
> > 
> > > 
> > > (gdb) where
> > > #0  0x28666edf in kill () from /lib/libc.so.5
> > > #1  0x284ec966 in raise () from /usr/lib/libpthread.so.1
> > > #2  0x286d2052 in abort () from /lib/libc.so.5
> > > #3  0x28502e5f in pthread_testcancel () from /usr/lib/libpthread.so.1
> > > #4  0x284efe75 in _spinlock () from /usr/lib/libpthread.so.1
> > > #5  0x284efeff in _spinlock_debug () from /usr/lib/libpthread.so.1
> > > #6  0x2870cb5b in _thread_fd_table_init () from /usr/lib/libc_r.so.5
> > > #7  0x2870afe2 in _thread_init () from /usr/lib/libc_r.so.5
> > > #8  0x28700769 in _thread_init_hack () from /usr/lib/libc_r.so.5
> > > #9  0x2870df32 in _find_thread () from /usr/lib/libc_r.so.5
> > > #10 0x286fcb36 in _init () from /usr/lib/libc_r.so.5
> > > #11 0x28292973 in _rtld () from /libexec/ld-elf.so.1
> > > 
> > > XF-4 and mplayer were build from up todate ports from the 5th i think.
> > > 
> > > Here are all the packages i'm using.
> > > 
> > > ORBit-0.5.17_2                          lame-3.95.1_1
> > > XFree86-4.3.0,1                         lcms-1.09,1
> > > XFree86-FontServer-4.3.0_3              libiconv-1.9.1_3
> > > XFree86-Server-4.3.0_12                 libmng-1.0.5_1
> > > XFree86-clients-4.3.0_6                 libtool-1.3.5_1
> > > XFree86-documents-4.3.0                 libtool-1.5
> > > XFree86-font100dpi-4.3.0                linux-netscape-navigator-4.8
> > > XFree86-font75dpi-4.3.0                 linux_base-7.1_6
> > > XFree86-fontCyrillic-4.3.0              lynx-ssl-2.8.4.1d
> > > XFree86-fontDefaultBitmaps-4.3.0        m4-1.4_1
> > > XFree86-fontEncodings-4.3.0             mozilla-1.6_2,2
> > > XFree86-fontScalable-4.3.0              mplayer-0.92.0_5
> > > XFree86-libraries-4.3.0_6               mplayer-fonts-0.50
> > > Xft-2.1.2_1                             mplayerxp-0.1.9_2
> > > autoconf-2.13.000227_5                  nasm-0.98.38_1,1
> > > automake-1.4.5_9                        netscape-remote-1.0_1
> > > bash-2.05b.007                          netscape-wrapper-2000.07.07
> > > blackbox-0.65.0                         nspr-4.4.1_1
> > > boxtools-0.65.0                         perl-5.8.2_4
> > > cvsup-without-gui-16.1h                 pkgconfig-0.15.0
> > > dri-4.3.0,1                             png-1.2.5_3
> > > expat-1.95.6_1                          popt-1.6.4_2
> > > fontconfig-2.2.90_4                     racoon-20040116a
> > > freetype2-2.1.5_2                       rc_subr-1.16
> > > gettext-0.12.1                          rpm-3.0.6_9
> > > gettext-0.13.1                          ruby-1.6.8.2003.10.15
> > > glib-1.2.10_10                          unzip-5.50_2
> > > gmake-3.80_1                            win32-codecs-2.0.90_1,1
> > > gtk-1.2.10_11                           wrapper-1.0_3
> > > imake-4.3.0_2                           zip-2.3_1
> > > jpeg-6b_1
> > > 
> > > The only kernel config change i've made was to disable i486 and i586
> > > and add the following.
> > > # no reason to trust wep ;)
> > > options         IPSEC
> > > options         IPSEC_ESP
> > > _______________________________________________
> > > freebsd-current_at_freebsd.org mailing list
> > > http://lists.freebsd.org/mailman/listinfo/freebsd-current
> > > To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
> > -- 
> > PGP Key : http://www.marcuscom.com/pgp.asc
> 
> sure does, don't know why i didn't think about that ;).

By using ldd on mplayer, then all of its dependencies, you can track
down which library is bringing in the libc_r dependency (it maybe
mplayer itself).  Note: you should do this after doing a forced
reinstall of all of mplayer's dependencies:

portupgrade -Rf mplayer\*

(If you haven't done so already).  Once you find the culprit, email that
port's maintainer, and let them know the problem exists.

Joe

> 
> thanks
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
-- 
PGP Key : http://www.marcuscom.com/pgp.asc

Received on Thu Feb 05 2004 - 21:55:46 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:41 UTC