Subject: pkg/11091: xmms pkg profoundly broken
To: None <gnats-bugs@gnats.netbsd.org>
From: None <gr@eclipsed.net>
List: netbsd-bugs
Date: 09/27/2000 06:57:27
>Number:         11091
>Category:       pkg
>Synopsis:       xmms pkg profoundly broken
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 27 07:03:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     gabriel rosenkoetter
>Release:        200009xx pkgsrc
>Organization:
	none to speak of
	
>Environment:
	
System: NetBSD ambriel 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (AMBRIEL) #0: Mon Sep 25 10:39:32 EDT 2000 gr@ambriel:/usr/src/sys/arch/i386/compile/AMBRIEL i386


>Description:
xmms builds happily and now launches without library compliants thanks
to Thomas Klausner (see PR 10446).

It even happily loads mp3s (though doesn't know how to find CDs on
NetBSD... it seems to be making presumptions about /dev/cdrom behaving
some way it does on Linux and doesn't for us), reads all the tag
information, and scrolls the title happily by.

Clicking play, however, hangs the program.

After a bit of discussion with Herr Klausner, I'm willing to believe
this is a pthreads issue (xmms was probably written presuming
preemptive threads, we only have cooperative threads unless you're on
the bleeding edge of the toolchain); the interface thread isn't giving
the playmusic thread time to act.

Since I'm in the act of learning pthreads anyway (btw, it'd be really
swell if the *kernel* were threaded ;^>), I'm taking a whack at fixing
it, but figured I'd file a PR just so no one trying to use xmms was
too confused.
>How-To-Repeat:
Build xmms from pkgsrc/audio/xmms, run it, push play, give up.
>Fix:
Give me a few days...
>Release-Note:
>Audit-Trail:
>Unformatted: