Subject: port-sparc/22676: threads don't work on sparc
To: None <gnats-bugs@gnats.netbsd.org>
From: Martin Husemann <martin@aprisoft.de>
List: netbsd-bugs
Date: 09/03/2003 18:53:10
>Number:         22676
>Category:       port-sparc
>Synopsis:       threads don't work on sparc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 03 16:54:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Martin Husemann
>Release:        NetBSD 1.6X
>Organization:
>Environment:
System: NetBSD krups.aprisoft.de 1.6X NetBSD 1.6X (MP3) #0: Tue Sep 2 14:10:42 CEST 2003 martin@emmas.aprisoft.de:/usr/src/sys/arch/sparc/compile/MP3 sparc
Architecture: sparc
Machine: sparc
>Description:
After some problems with mpg123 (bad error handling, no progress and tons of
bugs in the unreleased developement version) I started to look for a 
replacement. Triggered by some recent copyright discussion on tech-pkg I 
looked at audio/vorbistools and found they fit my needs pretty good - the
decoder uses floating point so should be fast enough on my Krups.

Unfortunately it does not work at all on sparc (current as of yesterday):

It hangs after printing a banner and won't stop on Ctrl-C:

UID   PID  PPID CPU PRI  NI  VSZ   RSS WCHAN    STAT TT     TIME COMMAND
205  9640 16851  24  52   0  604  2120 -        Ra+  uk0 3:52.71 ogg123 -b 1024 Rage - Paint It Black.ogg 

after killing it, it says:

ogg123: libpthread: sa_register failed.

No sound is output (I've directed libdao to output in sun/NetBSD format to
/dev/audio).

This works well on other archs (ok, there are some random floating point
exceptions on sparc64), so this must be a problem in the MD kernel or 
libpthread parts.

>How-To-Repeat:
s/a

>Fix:
n/a
>Release-Note:
>Audit-Trail:
>Unformatted: